UserDataAttribute 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 | getData()
Overrides org. Implements org. XML Schema or Java Bean
bindings or will return the same value as Node#getText().
|
| public void | setData(Object
the attribute data data)Overrides org. Implements org. Node#setText(String)if it doesn't.
|
| data | back to summary |
|---|---|
| private Object data The user data object | |
| UserDataAttribute | back to summary |
|---|---|
| public UserDataAttribute(QName qname) | |
| UserDataAttribute | back to summary |
|---|---|
| public UserDataAttribute(QName qname, String text) | |
| getData | back to summary |
|---|---|
| public Object getData() Overrides org. Implements org. Doc from org. Accesses the data of this attribute which may implement data typing
bindings such as
| |
| setData | back to summary |
|---|---|
| public void setData(Object data) Overrides org. Implements org. Doc from org. Sets the data value of this attribute if this element supports data
binding or calls
| |