|
0.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) @Inherited public @interface XMLBind
Annotation to mark setters for data injection from an XML document. Only applicable to public, single argument, methods.
DOMFeeder.inject(Object)
,
CursorBind
Optional Element Summary | |
---|---|
java.lang.String |
attribute
If specified, will extract attribute's value from the element. |
boolean |
decimal
Flag for specifying that the current integer value is retrieved as a decimal number. |
java.lang.String |
element
The name of the XML tag. |
boolean |
mandatory
If set to true, will throw an error if element or attribute doesn't exist. |
public abstract java.lang.String element
public abstract boolean decimal
double
, before cast into the requested integer
type primitive.
This flag has no effect on setters that don't take an int
or long
as
argument.
public abstract java.lang.String attribute
public abstract boolean mandatory
DOMFeeder.setStrictChecking(boolean)
is enabled, no exception will be thrown if element doesn't exist, nor will
any XMLBindException
data be printed to the logcat.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |