Top Description Fields Methods
org.dom4j

public Interface CharacterData

extends Node
Known Direct Subinterfaces
org.dom4j.Comment, org.dom4j.Text, org.dom4j.CDATA
Known Direct Implementers
org.dom4j.tree.AbstractCharacterData
Annotations
@SuppressWarnings:unused

CharacterData is a marker interface for character based nodes such as the CDATA,Comment and Text nodes.
Author
James Strachan
Version
$Revision: 1.9 $

Field Summary

Inherited from org.dom4j.Node:
ANY_NODEATTRIBUTE_NODECDATA_SECTION_NODECOMMENT_NODEDOCUMENT_NODEDOCUMENT_TYPE_NODEELEMENT_NODEENTITY_REFERENCE_NODEMAX_NODE_TYPENAMESPACE_NODEPROCESSING_INSTRUCTION_NODETEXT_NODEUNKNOWN_NODE

Method Summary

Modifier and TypeMethod and Description
public void
appendText(String
the text to append
text
)

Appends the given text to this nodes text value.

Inherited from org.dom4j.Node:
acceptasXMLasXPathResultclonecreateXPathdetachgetDocumentgetNamegetNodeTypegetNodeTypeNamegetParentgetPathgetPathgetStringValuegetTextgetUniquePathgetUniquePathhasContentisReadOnlymatchesnumberValueOfselectNodesselectNodesselectNodesselectObjectselectSingleNodesetDocumentsetNamesetParentsetTextsupportsParentvalueOfwrite

Method Detail

appendTextback to summary
public void appendText(String text)

Appends the given text to this nodes text value. Calling this method is equivalent of the code node.setText(node.getText() + text) but allows for possible implementation optimisations (such as a text based node storing a StringBuffer internally

Parameters
text:String

the text to append