Class FlyweightText
java.lang.Object
org.dom4j.tree.AbstractNode
org.dom4j.tree.AbstractCharacterData
org.dom4j.tree.AbstractText
org.dom4j.tree.FlyweightText
- All Implemented Interfaces:
Serializable, Cloneable, CharacterData, Node, Text
- Direct Known Subclasses:
DefaultText
FlyweightText is a Flyweight pattern implementation of a
singly linked, read-only XML Text.
This node could be shared across documents and elements though it does not support the parent relationship.
- Version:
- $Revision: 1.7 $
- See Also:
-
Field Summary
FieldsFields inherited from class AbstractNode
NODE_TYPE_NAMESFields inherited from interface Node
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NodecreateXPathResult(Element parent) getText()Returns the text of this node.Methods inherited from class AbstractText
accept, asXML, getNodeType, toString, writeMethods inherited from class AbstractCharacterData
appendText, getPath, getUniquePathMethods inherited from class AbstractNode
asXPathResult, clone, createPattern, createXPath, createXPathFilter, detach, getDocument, getDocumentFactory, getName, getNodeTypeName, getParent, getPath, getStringValue, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, setParent, setText, supportsParent, valueOfMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface CharacterData
appendTextMethods inherited from interface Node
accept, asXML, asXPathResult, clone, createXPath, detach, getDocument, getName, getNodeType, getNodeTypeName, getParent, getPath, getPath, getStringValue, getUniquePath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, setParent, setText, supportsParent, valueOf, write
-
Field Details
-
text
Text of theTextnode
-
-
Constructor Details
-
FlyweightText
-
-
Method Details
-
getText
-
createXPathResult
- Overrides:
createXPathResultin classAbstractNode
-