|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Retention(value=RUNTIME) public @interface Attribute
The Attribute annotation represents a serializable XML
attribute within an XML element. An object annotated with this is
typically a primitive or enumerated type. Conversion from the
attribute to primitive type is done with the types single argument
constructor, that takes a string. For example an int
is converted with the Integer(String) constructor.
| Optional Element Summary | |
|---|---|
java.lang.String |
name
This represents the name of the XML attribute. |
boolean |
required
Determines whether the attribute is required within an XML element. |
public abstract java.lang.String name
public abstract boolean required
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||