We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow a pojo to convert to SDL using annotations:
@Tag("person") public static class Person { @Value private String username; @Attribute private String email; @Attribute("dob") private LocalDate dob; public Person(String username, String email, LocalDate dob) { this.username = username; this.email = email; this.dob = dob; } public String getEmail() { return email; } public LocalDate getDob() { return dob; } }
and then write to sdl with:
final Person p = new Person("testing", "[email protected]", LocalDate.of(2000, 1, 28)); SDL.toSDL(p, System.out); // similar to using GSON: 'new GSON().toJson(obj, writer);'
The text was updated successfully, but these errors were encountered:
add annotations sub module #9
2ff02b3
f718204
dabffaf
this is now in develop branch so will be a part of future releases
Sorry, something went wrong.
needs some further changes which are being worked on now in the comment-style branch
SingingBush
No branches or pull requests
Allow a pojo to convert to SDL using annotations:
and then write to sdl with:
The text was updated successfully, but these errors were encountered: