Package de.pdark.decentxml.mapping
Annotation Type AttributeMapping
List the names of all elements which can be handled by this method. Also handy when
the element name contains characters which are illegal in Java.
"*" or "" will match any element.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]Values which should map tofalsefor boolean parameters.Parse format for types like numbers or dates.The name of the XML attribute which should me mapped to this parameterbooleanSet to true to make this a required parameter.String[]Values which should map totruefor boolean parameters.The name of the XML attribute which should me mapped to this parameter
-
Element Details
-
value
String valueThe name of the XML attribute which should me mapped to this parameter- Default:
""
-
name
String nameThe name of the XML attribute which should me mapped to this parameter- Default:
""
-
required
boolean requiredSet to true to make this a required parameter. Primitives are automatically required.- Default:
false
-
format
String formatParse format for types like numbers or dates.- Default:
""
-
trueValues
String[] trueValuesValues which should map totruefor boolean parameters.If only this field is specified, then every other value maps to
false.If both
trueValuesandfalseValuesis specified, then all other values will throw aMappingExceptionDefaults:
"1", "on", "true", "Y", "yes"- Default:
{}
-
falseValues
String[] falseValuesValues which should map tofalsefor boolean parameters.If only this field is specified, then every other value maps to
true.If both
trueValuesandfalseValuesis specified, then all other values will throw aMappingExceptionDefaults: Empty.
- Default:
{}
-