Package de.pdark.decentxml.mapping
Annotation Type AttributeMapping
-
@Retention(RUNTIME) @Target(PARAMETER) public @interface 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 Elements Modifier and Type Optional Element Description String[]
falseValues
Values which should map tofalse
for boolean parameters.String
format
Parse format for types like numbers or dates.String
name
The name of the XML attribute which should me mapped to this parameterboolean
required
Set to true to make this a required parameter.String[]
trueValues
Values which should map totrue
for boolean parameters.String
value
The name of the XML attribute which should me mapped to this parameter
-
-
-
Element Detail
-
value
String value
The name of the XML attribute which should me mapped to this parameter- Default:
- ""
-
-
-
name
String name
The name of the XML attribute which should me mapped to this parameter- Default:
- ""
-
-
-
format
String format
Parse format for types like numbers or dates.- Default:
- ""
-
-
-
trueValues
String[] trueValues
Values 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[] falseValues
Values 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:
- {}
-
-