public class FlyweightCDATA extends AbstractCDATA implements CDATA
FlyweightCDATA
is 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.
Modifier and Type | Field and Description |
---|---|
protected String |
text
Text of the
CDATA node |
NODE_TYPE_NAMES
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 and Description |
---|
FlyweightCDATA(String text)
DOCUMENT ME!
|
Modifier and Type | Method and Description |
---|---|
protected Node |
createXPathResult(Element parent) |
String |
getText()
Returns the text of this node.
|
accept, asXML, getNodeType, toString, write
appendText, getPath, getUniquePath
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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendText
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
protected String text
CDATA
nodepublic FlyweightCDATA(String text)
text
- is the CDATA textpublic String getText()
Node
Returns the text of this node.
getText
in interface Node
getText
in class AbstractNode
protected Node createXPathResult(Element parent)
createXPathResult
in class AbstractNode
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.