@Retention(value=RUNTIME)
@Target(value=PARAMETER)
public @interface AttributeMapping
"*" or "" will match any element.
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String[] |
falseValues
Values which should map to
false for boolean parameters. |
java.lang.String |
format
Parse format for types like numbers or dates.
|
java.lang.String |
name
The name of the XML attribute which should me mapped to this parameter
|
boolean |
required
Set to true to make this a required parameter.
|
java.lang.String[] |
trueValues
Values which should map to
true for boolean parameters. |
java.lang.String |
value
The name of the XML attribute which should me mapped to this parameter
|
public abstract java.lang.String value
public abstract java.lang.String name
public abstract boolean required
public abstract java.lang.String format
public abstract java.lang.String[] trueValues
true
for boolean parameters.
If only this field is specified, then every other value maps to false
.
If both trueValues
and falseValues
is specified, then
all other values will throw a MappingException
Defaults: "1", "on", "true", "Y", "yes"
public abstract java.lang.String[] falseValues
false
for boolean parameters.
If only this field is specified, then every other value maps to true
.
If both trueValues
and falseValues
is specified, then
all other values will throw a MappingException
Defaults: Empty.
Copyright © 2008-2013. All Rights Reserved.