BeanAttribute represents a mutable XML attribute which is
backed by a property of the JavaBean of its parent element.
| Modifier and Type | Field and Description |
|---|---|
| private final BeanAttributeList | beanList
The list of Bean attributes |
| private final int | index
The index in the Bean attribute list |
| Access | Constructor and Description |
|---|---|
| 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 Element | getParent()
Overrides org. Implements org.
|
| public QName | getQName()
Implements org. QName of this attribute which represents the
local name, the qualified name and the Namespace.
|
| public String | |
| public void | setData(Object
the attribute data data)Overrides org. Implements org. Node#setText(String)if it doesn't.
|
| public void | setValue(String
is the new value of this attribute data)Overrides org. Implements org. UnsupportedOperationException if it is read-only.
|
| beanList | back to summary |
|---|---|
| private final BeanAttributeList beanList The list of Bean attributes | |
| index | back to summary |
|---|---|
| private final int index The index in the Bean attribute list | |
| BeanAttribute | back to summary |
|---|---|
| public BeanAttribute(BeanAttributeList beanList, int index) | |
| 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
| |
| getParent | back to summary |
|---|---|
| public Element getParent() Overrides org. Implements org. Doc from org.
This method is an optional feature and may not be supported for all
| |
| getQName | back to summary |
|---|---|
| public QName getQName() Implements org. Doc from org. Returns the
| |
| getValue | back to summary |
|---|---|
| public String getValue() Implements org. Doc from org. Returns the value of the attribute. This method returns the same value as
the
| |
| 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
| |
| setValue | back to summary |
|---|---|
| public void setValue(String data) Overrides org. Implements org. Doc from org. Sets the value of this attribute or this method will throw an
| |