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.
| Modifier and Type | Field and Description | 
|---|---|
protected java.lang.String | 
text
Text of the  
Text node | 
NODE_TYPE_NAMESANY_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 and Description | 
|---|
FlyweightText(java.lang.String text)
DOCUMENT ME! 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected Node | 
createXPathResult(Element parent)  | 
java.lang.String | 
getText()
 Returns the text of this node. 
 | 
accept, asXML, getNodeType, toString, writeappendText, getPath, getUniquePathasXPathResult, 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, valueOfequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappendTextaccept, 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, writepublic FlyweightText(java.lang.String text)
text - is the Text textpublic java.lang.String getText()
NodeReturns the text of this node.
getText in interface NodegetText in class AbstractNodeprotected Node createXPathResult(Element parent)
createXPathResult in class AbstractNode