Package de.pdark.decentxml.mapping
Annotation Type AttributeMapping
-
@Retention(RUNTIME) @Target(PARAMETER) public @interface AttributeMappingList 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 java.lang.String[]falseValuesValues which should map tofalsefor boolean parameters.java.lang.StringformatParse format for types like numbers or dates.java.lang.StringnameThe name of the XML attribute which should me mapped to this parameterbooleanrequiredSet to true to make this a required parameter.java.lang.String[]trueValuesValues which should map totruefor boolean parameters.java.lang.StringvalueThe name of the XML attribute which should me mapped to this parameter
-
-
-
-
trueValues
java.lang.String[] trueValues
Values 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:
- {}
-
-