Package org.dom4j.tree
Class FlyweightCDATA
- java.lang.Object
 - 
- org.dom4j.tree.AbstractNode
 - 
- org.dom4j.tree.AbstractCharacterData
 - 
- org.dom4j.tree.AbstractCDATA
 - 
- org.dom4j.tree.FlyweightCDATA
 
 
 
 
 
- 
- All Implemented Interfaces:
 Serializable,Cloneable,CDATA,CharacterData,Node
- Direct Known Subclasses:
 DefaultCDATA
public class FlyweightCDATA extends AbstractCDATA implements CDATA
FlyweightCDATAis a Flyweight pattern implementation of a singly linked, read-only XML CDATA.This node could be shared across documents and elements though it does not support the parent relationship.
- See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected StringtextText of theCDATAnode- 
Fields inherited from class org.dom4j.tree.AbstractNode
NODE_TYPE_NAMES 
- 
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 
 - 
 
- 
Constructor Summary
Constructors Constructor Description FlyweightCDATA(String text)DOCUMENT ME! 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NodecreateXPathResult(Element parent)StringgetText()Returns the text of this node.- 
Methods inherited from class org.dom4j.tree.AbstractCDATA
accept, asXML, getNodeType, toString, write 
- 
Methods inherited from class org.dom4j.tree.AbstractCharacterData
appendText, getPath, getUniquePath 
- 
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 class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface org.dom4j.CharacterData
appendText 
- 
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 
 - 
 
 - 
 
- 
- 
Field Detail
- 
text
protected String text
Text of theCDATAnode 
 - 
 
- 
Constructor Detail
- 
FlyweightCDATA
public FlyweightCDATA(String text)
DOCUMENT ME!- Parameters:
 text- is the CDATA text
 
 - 
 
- 
Method Detail
- 
getText
public String getText()
Description copied from interface:NodeReturns the text of this node.
- Specified by:
 getTextin interfaceNode- Overrides:
 getTextin classAbstractNode- Returns:
 - the text for this node.
 
 
- 
createXPathResult
protected Node createXPathResult(Element parent)
- Overrides:
 createXPathResultin classAbstractNode
 
 - 
 
 -