@Retention(value=RUNTIME)
public @interface Version
Version
annotation is used to specify an attribute
that is used to represent a revision of the class XML schema. This
annotation can annotate only floating point types such as double,
float, and the java primitive object types. This can not be used to
annotate strings, enumerations or other primitive types.Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
name
This represents the name of the XML attribute.
|
boolean |
required
Determines whether the version is required within an XML
element.
|
double |
revision
This represents the revision of the class.
|
public abstract java.lang.String name
public abstract double revision
public abstract boolean required