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.
bufferATTRIBUTE_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, splitTextappendData, appendDataTo, deleteData, getData, getLength, getNodeValue, insertData, replaceData, setData, substringDatagetNextSibling, getParentNode, getPreviousSiblingappendChild, 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, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWholeText, isElementContentWhitespace, replaceWholeText, splitTextappendData, deleteData, getData, getLength, insertData, replaceData, setData, substringDataappendChild, 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, setUserDatapublic CDATASectionImpl(DocumentImpl document, String data)
public String getNodeName()
NodegetNodeName in interface NodegetNodeName in class TextImplpublic short getNodeType()
NodegetNodeType in interface NodegetNodeType in class TextImplpublic void split()
public boolean needsSplitting()
split() before they are
serialized.public TextImpl replaceWithText()