public final class CDATASectionImpl extends TextImpl implements CDATASection
Some of the fields may have package visibility, so other classes belonging to the DOM implementation can easily access them while maintaining the DOM tree structure.
buffer
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Constructor and Description |
---|
CDATASectionImpl(DocumentImpl document,
String data) |
Modifier and Type | Method and Description |
---|---|
String |
getNodeName()
The name of this node, depending on its type; see the table above.
|
short |
getNodeType()
A code representing the type of the underlying object, as defined above.
|
boolean |
needsSplitting()
Returns true if this CDATA section contains the illegal character
sequence "]]>".
|
TextImpl |
replaceWithText()
Replaces this node with a semantically equivalent text node.
|
void |
split()
Splits this CDATA node into parts that do not contain a "]]>" sequence.
|
getWholeText, isElementContentWhitespace, minimize, replaceWholeText, splitText
appendData, appendDataTo, deleteData, getData, getLength, getNodeValue, insertData, replaceData, setData, substringData
getNextSibling, getParentNode, getPreviousSibling
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getOwnerDocument, getPrefix, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getWholeText, isElementContentWhitespace, replaceWholeText, splitText
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
public CDATASectionImpl(DocumentImpl document, String data)
public String getNodeName()
Node
getNodeName
in interface Node
getNodeName
in class TextImpl
public short getNodeType()
Node
getNodeType
in interface Node
getNodeType
in class TextImpl
public void split()
public boolean needsSplitting()
split()
before they are
serialized.public TextImpl replaceWithText()