public class AttributeMetaData
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object |
deflt
Specifies the default value (to be automatically synchronized in future
with the annotations).
|
private java.lang.String |
name
Defines the name of the attribute, i.e. the name of the value in the
XML file and the related "method" of the annotation.
|
private java.lang.Class<?> |
type
Stores the type of the attribute.
|
| Constructor and Description |
|---|
AttributeMetaData(java.lang.reflect.Method method)
Creates a metadata object from a method.
|
AttributeMetaData(java.lang.String name,
java.lang.Object deflt,
java.lang.Class<?> type)
Creates an attribute metadata object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getDefault()
Returns the default value of the attribute / element.
|
java.lang.String |
getName()
Returns the name of the attribute / element.
|
java.lang.Class<?> |
getType()
Returns the type of the attribute / element.
|
boolean |
isNested()
Returns whether this attribute is nested into non-registered elements.
|
java.lang.String |
toString()
Returns a textual description.
|
private java.lang.String name
private java.lang.Object deflt
private java.lang.Class<?> type
public AttributeMetaData(java.lang.reflect.Method method)
method - the method to extract the metadata frompublic AttributeMetaData(java.lang.String name,
java.lang.Object deflt,
java.lang.Class<?> type)
name - the name of the attributedeflt - the default value (null if none is defined)type - its typepublic java.lang.String getName()
public java.lang.Object getDefault()
public java.lang.Class<?> getType()
public boolean isNested()
false as defaultpublic java.lang.String toString()
toString in class java.lang.Object