UserDataElement support the adornment of a user data object on
an Element or Attribute instance such that the methods getData
setData(Object)will get and set the values of a user data object.
This can be useful for developers wishing to create XML trees and adorn the
trees with user defined objects.
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | clone()
Overrides org. Implements org.
|
| protected Element | |
| protected Element | |
| protected Object | Returns: DOCUMENT ME!If a deep copy of user data is required whenever the clone() or createCopy() methods are called on this element then this method should return a clone of the user data |
| public Object | getData()
Overrides org. Implements org. getText
|
| public void | setData(Object
DOCUMENT ME! data)Overrides org. Implements org. setTextif it doesn't
|
| public String | toString()
Overrides org. |
| data | back to summary |
|---|---|
| private Object data The user data object | |
| UserDataElement | back to summary |
|---|---|
| public UserDataElement(String name) | |
| UserDataElement | back to summary |
|---|---|
| public UserDataElement(QName qname) | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides org. Implements org. Doc from org.
| |
| createElement | back to summary |
|---|---|
| protected Element createElement(String name) Overrides org. | |
| createElement | back to summary |
|---|---|
| protected Element createElement(QName qName) Overrides org. | |
| getCopyOfUserData | back to summary |
|---|---|
| protected Object getCopyOfUserData() If a deep copy of user data is required whenever the clone() or createCopy() methods are called on this element then this method should return a clone of the user data
| |
| getData | back to summary |
|---|---|
| public Object getData() Overrides org. Implements org. Doc from org. Accesses the data of this element which may implement data typing
bindings such as XML Schema or Java Bean bindings or will return the same
value as
| |
| setData | back to summary |
|---|---|
| public void setData(Object data) Overrides org. Implements org. Doc from org. Sets the data value of this element if this element supports data binding
or calls
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
| |