@Documented @Retention(value=RUNTIME) @Target(value=ANNOTATION_TYPE) public @interface Mapping
Mappings to specify the mapping of one
property.| Modifier and Type | Required Element and Description |
|---|---|
String |
value
The properties name.
|
| Modifier and Type | Optional Element and Description |
|---|---|
Class<? extends Converter<?>> |
convert
A custom converter which is used for the parsing and serialization of the
value.
|
Class<? extends InstanceCreator<?,?>> |
createWith
Whether to use an
InstanceCreator. |
String |
format
The format to use when converting the JSON data to the properties type.
|
Class<? extends PropertyGetter<?,?>> |
getter
A custom property getter for reading the property.
|
boolean |
native_
Wehther this property should be handled nativly.
|
String |
path
A "path" expression to select the JSON / XML data.
|
Class<? extends PropertySetter<?,?>> |
setter
A custom property setter for setting the property.
|
name.pehl.totoe.commons.client.WhitespaceHandling |
whitespace
How to handle how leading and trailing whitespace.
|
public abstract String value
public abstract String path
public abstract String format
public abstract name.pehl.totoe.commons.client.WhitespaceHandling whitespace
public abstract Class<? extends InstanceCreator<?,?>> createWith
InstanceCreator.public abstract Class<? extends Converter<?>> convert
NoopConverter which means no custom converter
should be used.public abstract Class<? extends PropertyGetter<?,?>> getter
NoopPropertyGetter which means that the property is read using
the field or a getter.public abstract Class<? extends PropertySetter<?,?>> setter
NoopPropertySetter which means that the property is set using the
field or a setter.public abstract boolean native_
Copyright © 2012 Harald Pehl. All Rights Reserved.