org.dom4j.tree
Class FlyweightText
java.lang.Object
org.dom4j.tree.AbstractNode
org.dom4j.tree.AbstractCharacterData
org.dom4j.tree.AbstractText
org.dom4j.tree.FlyweightText
- All Implemented Interfaces:
- CharacterData, Cloneable, Node, Serializable, Text
- Direct Known Subclasses:
- DefaultText
- public class FlyweightText
- extends AbstractText
- implements Text
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 $
- Author:
- James Strachan
- See Also:
- Serialized Form
Field Summary |
protected String |
text
Text of the Text node |
Fields inherited from interface org.dom4j.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 |
Methods inherited from class org.dom4j.tree.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, valueOf |
Methods inherited from interface org.dom4j.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 |
text
protected String text
- Text of the
Text
node
FlyweightText
public FlyweightText(String text)
- DOCUMENT ME!
- Parameters:
text
- is the Text text
getText
public String getText()
- Description copied from interface:
Node
Returns the text of this node.
- Specified by:
getText
in interface Node
- Overrides:
getText
in class AbstractNode
createXPathResult
protected Node createXPathResult(Element parent)
- Overrides:
createXPathResult
in class AbstractNode
Copyright © 2001-2005 MetaStuff Ltd.. All Rights Reserved.