gnu.xml.dom

Class DomCDATA

Implemented Interfaces:
CDATASection, CharacterData, Cloneable, Comparable, DocumentEvent, EventTarget, Node, NodeList, Text

public class DomCDATA
extends DomText
implements CDATASection

"CDATASection" implementation. This is a non-core DOM class, supporting the "XML" feature. CDATA sections are just ways to represent text using different delimeters.

You are strongly advised not to use CDATASection nodes. The advantage of having slightly prettier ways to print text that may have lots of embedded XML delimiters, such as "&" and "<", can be dwarfed by the cost of dealing with multiple kinds of text nodes in all your algorithms.

Fields inherited from interface org.w3c.dom.Node

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 Summary

DomCDATA(DomDocument owner, String value)
Constructs a CDATA section node associated with the specified document and holding the specified data.
DomCDATA(DomDocument owner, buf[] , int off, int len)

Method Summary

String
getNodeName()
DOM L1 Returns the string "#cdata-section".

Methods inherited from class gnu.xml.dom.DomText

getNodeName, getWholeText, isElementContentWhitespace, replaceWholeText, splitText

Methods inherited from class gnu.xml.dom.DomCharacterData

appendData, deleteData, getBaseURI, getData, getLength, getNodeValue, insertData, replaceData, setData, setNodeValue, substringData

Methods inherited from class gnu.xml.dom.DomNode

addEventListener, appendChild, clone, cloneNode, compact, compareDocumentPosition, compareTo, createEvent, dispatchEvent, getAttributes, getBaseURI, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFeature, getFirstChild, getLastChild, getLength, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isReadonly, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, makeReadonly, nameAndTypeEquals, normalize, removeChild, removeEventListener, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData, toString, trimToSize

Constructor Details

DomCDATA

protected DomCDATA(DomDocument owner,
                   String value)
Constructs a CDATA section node associated with the specified document and holding the specified data.

This constructor should only be invoked by a Document as part of its createCDATASection functionality, or through a subclass which is similarly used in a "Sub-DOM" style layer.


DomCDATA

protected DomCDATA(DomDocument owner,
                   buf[] ,
                   int off,
                   int len)

Method Details

getNodeName

public final String getNodeName()
DOM L1 Returns the string "#cdata-section".
Specified by:
getNodeName in interface Node
Overrides:
getNodeName in interface DomText