DefaultAttribute implements a doubly linked node which
supports the parent relationship and is mutable.
| Modifier and Type | Field and Description |
|---|---|
| private Element | parent
The parent of this node |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | DefaultAttribute(String
is the name of the attribute name, String is the value of the attribute value)Creates the |
| public | DefaultAttribute(String
is the name of the attribute name, String is the value of the attribute value, Namespace is the namespace of the attribute namespace)Creates the |
| public | DefaultAttribute(Element
is the parent element parent, String is the name of the attribute name, String is the value of the attribute value, Namespace is the namespace of the attribute namespace)Creates the |
| Modifier and Type | Method and Description |
|---|---|
| public Element | getParent()
Overrides org. Implements org.
|
| public boolean | isReadOnly()
Overrides org. Implements org.
|
| public void | setParent(Element
is the new parent of this node. parent)Overrides org. Implements org.
|
| public void | setValue(String
is the new value of this attribute value)Overrides org. Implements org. UnsupportedOperationException if it is read-only.
|
| public boolean | supportsParent()
Overrides org. Implements org.
|
| parent | back to summary |
|---|---|
| private Element parent The parent of this node | |
| DefaultAttribute | back to summary |
|---|---|
| public DefaultAttribute(QName qname) | |
| DefaultAttribute | back to summary |
|---|---|
| public DefaultAttribute(QName qname, String value) | |
| DefaultAttribute | back to summary |
|---|---|
| public DefaultAttribute(Element parent, QName qname, String value) | |
| DefaultAttribute | back to summary |
|---|---|
| public DefaultAttribute(String name, String value) Creates the | |
| DefaultAttribute | back to summary |
|---|---|
| public DefaultAttribute(String name, String value, Namespace namespace) Creates the | |
| DefaultAttribute | back to summary |
|---|---|
| public DefaultAttribute(Element parent, String name, String value, Namespace namespace) Creates the | |
| 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
| |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly() Overrides org. Implements org. Doc from org.
| |
| setParent | back to summary |
|---|---|
| public void setParent(Element parent) Overrides org. Implements org. Doc from org.
This method should only be called from inside an
| |
| setValue | back to summary |
|---|---|
| public void setValue(String value) Overrides org. Implements org. Doc from org. Sets the value of this attribute or this method will throw an
| |
| supportsParent | back to summary |
|---|---|
| public boolean supportsParent() Overrides org. Implements org. Doc from org.
Some XML tree implementations are singly linked and only support downward navigation through children relationships. The default case is that both parent and children relationships are supported though for memory and performance reasons the parent relationship may not be supported.
| |