DefaultText is the default Text implementation. It is a doubly
linked node which supports the parent relationship and can be modified in
place.
| Modifier and Type | Field and Description |
|---|---|
| private Element | parent
The parent of this node |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| 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 | setText(String
is the new textual value of this node text)Overrides org. Implements org.
Sets the text data of this node or this method will throw an
|
| public boolean | supportsParent()
Overrides org. Implements org.
|
| parent | back to summary |
|---|---|
| private Element parent The parent of this node | |
| DefaultText | back to summary |
|---|---|
| public DefaultText(String text) DOCUMENT ME!
| |
| DefaultText | back to summary |
|---|---|
| public DefaultText(Element parent, String text) DOCUMENT ME! | |
| 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
| |
| setText | back to summary |
|---|---|
| public void setText(String text) Overrides org. Implements org. Doc from org.
Sets the text data of this node 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.
| |