Skip to content

Plain text to POJO deserialisation through annotations. Useful for web scraping

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.template
Notifications You must be signed in to change notification settings

phughk/AnnotationRegexDeserialisation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARD, Annotation Regex Deserialisation

ARD was created as a way of deserialising chunks of text (HTML, but applies to other structured text as well) by annotating POJOs with Regex matchers.

Warning
This is garbage work in progress

Quickstart

Annotate your properties like so

@ObjectExpression("^.+$")
public class MySimplePojo {

    @FieldExpression("[Ff]irst.+[Pp]roperty")
    public String firstProperty;

    @FieldExpression("[Ss]econd.+[Pp]roperty")
    private String secondProperty;

    public void setSecondProperty(String value) {
        this.secondProperty = value;
    }
}

@FieldExpression - required annotation to capture value from input

@ObjectExpression - optional annotation to limit scope of capture from input

About

Plain text to POJO deserialisation through annotations. Useful for web scraping

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.template

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages