|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=FIELD) public @interface XmlElementMap
An annotation stating that the annotated java field should be mapped to a xml element with map type during XML serialization and deserialization.
Required Element Summary | |
---|---|
MapKey |
key
A MapKey annotation describing the map keys. |
MapValue[] |
values
An array of MapValue annotations describing the map values. |
Optional Element Summary | |
---|---|
String[] |
constraints
The constraints to validate. |
boolean |
implicit
True, if there is no embracing element around the map entries; false otherwise. |
String |
name
The name of the element this annotation describes. |
int |
pos
The position of the xml element with the following semantic: If the position of a element A is less than the position of a element B, than element A comes (not necessarily directly) before element B. |
boolean |
required
True, if a value is required; false otherwise. |
Class<? extends Validator> |
validatorType
Specifies the validator type to be used. |
Element Detail |
---|
public abstract MapKey key
MapKey
annotation describing the map keys.
public abstract MapValue[] values
MapValue
annotations describing the map values.
public abstract String name
public abstract int pos
If the position of a element A is less than the position of a element B, than element A comes (not
necessarily directly) before element B.
All elements with the default position value (-1) will come after all elements with explicitly given
positions.
public abstract boolean implicit
public abstract boolean required
public abstract Class<? extends Validator> validatorType
public abstract String[] constraints
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |