java.lang.Object | |
↳ | org.apache.commons.betwixt.XMLBeanInfo |
XMLBeanInfo
represents the XML metadata information
used to map a Java Bean cleanly to XML. This provides a default
introspection mechansim, rather like java.beans.BeanInfo
which can be customized through some mechansim, either via Java code
or XSLT for example.
ID
and IDREF
Attribute NamesThese special attributes are defined in the xml specification. They are used by Betwixt to write bean graphs with cyclic references. In most cases, these will take the values 'id' and 'idref' respectively but these names can be varied in the DTD. Therefore, these names are specified by this class but default to the usual values.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Base constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the beans class that this XML info refers to
| |||||||||||
Gets descriptor for bean represention
| |||||||||||
Search attributes for one matching
ID attribute name | |||||||||||
Get name of | |||||||||||
Get | |||||||||||
Sets the beans class that this XML info refers to
| |||||||||||
Sets descriptor for bean represention
| |||||||||||
Set name of
ID attribute
This is used to write (for example) automatic ID
attribute values. | |||||||||||
Set
IDREF attribute name
This is used (for example) to deal with cyclic references. | |||||||||||
Gets log-friendly string representation.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Gets the beans class that this XML info refers to
Gets descriptor for bean represention
Search attributes for one matching ID
attribute name
Get name of ID
attribute.
This is used to write (for example) automatic ID
attribute values.
The default name is 'id'.
ID
attribute
Get IDREF
attribute name
This is used (for example) to deal with cyclic references.
The default name is 'idref'.
IDREF
attribute
Sets the beans class that this XML info refers to
beanClass | the class that this refers to |
---|
Sets descriptor for bean represention
elementDescriptor | descriptor for bean |
---|
Set name of ID
attribute
This is used to write (for example) automatic ID
attribute values.
The default name is 'id'.
idAttributeName | the attribute name for the special ID attribute
|
---|
Set IDREF
attribute name
This is used (for example) to deal with cyclic references.
The default name is 'idref'.
idrefAttributeName | the attribute name for the special IDREF attribute
|
---|
Gets log-friendly string representation.