|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=FIELD) public @interface XmlElement
An annotation stating that the annotated java field should be mapped to a xml element during XML serialization and deserialization.
Optional Element Summary | |
---|---|
String[] |
constraints
The constraints to validate. |
Class<? extends SimpleTypeConverter> |
converterType
Specifies the converter type to be used for the xml element which must have a simple data type (no children, no data holding attributes). |
String |
dataTypeName
The name of the data type of the element this annotation describes. |
DefaultName |
defaultName
The type of default name if no explicit name is given. |
String[] |
format
The format to be used to construct a SimpleTypeConverter for the xml element which must have
a simple data type (no children, no data holding attributes). |
SimpleListItem |
listItem
In case of a simple type list this annotation parameter provides details about the list items. |
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. |
TextMode |
textMode
The text mode. |
Class<? extends Validator> |
validatorType
Specifies the validator type to be used. |
public abstract String name
public abstract DefaultName defaultName
public abstract String dataTypeName
It should be explicitly set if the type mapping should not be created from the annotations given in the class of the annotated field. This is useful when mixing explicit type mapping creation with annotation based type mapping creation.
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 TextMode textMode
public abstract String[] format
SimpleTypeConverter
for the xml element which must have
a simple data type (no children, no data holding attributes). The SimpleTypeConverter
class
will be determined using the type of the java field with this annotation.
public abstract Class<? extends SimpleTypeConverter> converterType
public abstract SimpleListItem listItem
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 |