JsonDeserialize#builder property of JsonDeserialize.
Annotation is typically used if the naming convention of a Builder class is different from defaults:
withPrefix() property.
In addition to configuration using this annotation, note that many other configuration
annotations are also applied to Builders, for example
com. can be used to ignore
"unknown" properties.
| Modifier and Type | Class and Description |
|---|---|
| public static class | JsonPOJOBuilder.
Simple value container for containing values read from
|
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String |
| Modifier and Type | Method and Description |
|---|---|
| public String | buildMethodName()
Property to use for re-defining which zero-argument method is considered the actual "build-method": method called after all data has been bound, and the actual instance needs to be instantiated. |
| public String | withPrefix()
Property used for (re)defining name prefix to use for auto-detecting "with-methods": methods that are similar to "set-methods" (in that they take an argument), but that may also return the new builder instance to use (which may be 'this', or a new modified builder instance). |
| DEFAULT_BUILD_METHOD | back to summary |
|---|---|
public static final String DEFAULT_BUILD_METHOD
| |
| DEFAULT_WITH_PREFIX | back to summary |
|---|---|
public static final String DEFAULT_WITH_PREFIX
| |
| buildMethodName | back to summary |
|---|---|
| public String buildMethodName() Property to use for re-defining which zero-argument method is considered the actual "build-method": method called after all data has been bound, and the actual instance needs to be instantiated. Default value is "build". | |
| withPrefix | back to summary |
|---|---|
| public String withPrefix() Property used for (re)defining name prefix to use for
auto-detecting "with-methods": methods that are similar to
"set-methods" (in that they take an argument), but that
may also return the new builder instance to use
(which may be 'this', or a new modified builder instance).
Note that in addition to this prefix, it is also possible
to use Default value is "with", so that method named "withValue()" would be used for binding JSON property "value" (using type indicated by the argument; or one defined with annotations. | |
JsonPOJOBuilder annotation instance.
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| buildMethodName | back to summary |
|---|---|
| public final String buildMethodName | |
| withPrefix | back to summary |
|---|---|
| public final String withPrefix | |
| Value | back to summary |
|---|---|
| public Value(JsonPOJOBuilder ann) | |
| Value | back to summary |
|---|---|
| public Value(String buildMethodName, String withPrefix) | |