java.lang.Cloneable
, Node
AbstractCDATA
, AbstractComment
, AbstractCharacterData
, AbstractText
, DefaultCDATA
, DefaultComment
, DefaultText
, DOMCDATA
, DOMComment
, DOMText
, FlyweightCDATA
, FlyweightComment
, FlyweightText
public interface CharacterData extends Node
CharacterData
is a marker interface for character based nodes
such as the CDATA
,Comment
and
Text
nodes.ANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE
Modifier and Type | Method | Description |
---|---|---|
void |
appendText(java.lang.String text) |
Appends the given text to this nodes text value.
|
accept, asXML, asXPathResult, clone, createXPath, detach, getDocument, getName, getNodeType, getNodeTypeName, getParent, getPath, getPath, getStringValue, getText, getUniquePath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, setParent, setText, supportsParent, valueOf, write
void appendText(java.lang.String text)
node.setText(node.getText() + text)
but allows for possible implementation optimisations (such as a text
based node storing a StringBuffer internallytext
- the text to append