@Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) public @interface Arg
Annotation specifies location where attribute should be stored.
You can annotate fields and methods. For methods, it must have only 1 format
argument. Use dest()
to specify which attribute to be assigned. If
it is empty, the name of the attribute or method will be used instead. If the
attribute value cannot be assigned to designated location, error will be
issued. If you want to ignore this error, use ignoreError()
.
Modifier and Type | Optional Element and Description |
---|---|
String |
dest
The name of attribute to be assigned.
|
boolean |
ignoreError
Set
true if you want to ignore the error in assignment. |
public abstract String dest
Copyright © 2012–2017. All rights reserved.