AbstractCharacterData is an abstract base class for tree
implementors to use for implementation inheritence.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | appendText(String
the text to append text)Implements org. |
| public String | getPath(Element
is the parent context from which the relative path should
start. If the context is null or the context is not an
ancestor of this node then the path will be absolute and start
from the document and so begin with the '/' character. context)Implements org. |
| public String | getUniquePath(Element
is the parent context from which the path should start. If the
context is null or the context is not an ancestor of this node
then the path will start from the document and so begin with
the '/' character. context)Implements org. Returns the relative unique XPath expression from the given context which will return a nodeset of one node which is the current node. |
| AbstractCharacterData | back to summary |
|---|---|
| public AbstractCharacterData() | |
| appendText | back to summary |
|---|---|
| public void appendText(String text) Implements org. Doc from org. Appends the given text to this nodes text value. Calling this method is
equivalent of the code
| |
| getPath | back to summary |
|---|---|
| public String getPath(Element context) Implements org. Doc from org. Returns the relative XPath expression which will return a node set containing the given node such as a/b/@c. No indexing will be used to restrict the path if multiple elements with the same name occur on the path.
| |
| getUniquePath | back to summary |
|---|---|
| public String getUniquePath(Element context) Implements org. Doc from org. Returns the relative unique XPath expression from the given context which will return a nodeset of one node which is the current node. This method will use the XPath index operator to restrict the path if multiple elements with the same name occur on the path.
| |