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 tofalse
for boolean parameters.Parse format for types like numbers or dates.The name of the XML attribute which should me mapped to this parameterboolean
Set to true to make this a required parameter.String[]
Values which should map totrue
for 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 totrue
for boolean parameters.If only this field is specified, then every other value maps to
false
.If both
trueValues
andfalseValues
is specified, then all other values will throw aMappingException
Defaults:
"1", "on", "true", "Y", "yes"
- Default:
{}
-
falseValues
String[] falseValuesValues which should map tofalse
for boolean parameters.If only this field is specified, then every other value maps to
true
.If both
trueValues
andfalseValues
is specified, then all other values will throw aMappingException
Defaults: Empty.
- Default:
{}
-