@Retention(value=RUNTIME)
public @interface Attribute
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.public abstract java.lang.String name
public abstract boolean required