⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
gnu.xml.dom

Class DomCDATA

java.lang.Object
|
+--gnu.xml.dom.DomNode
   |
   +--gnu.xml.dom.DomCharacterData
      |
      +--gnu.xml.dom.DomText
         |
         +--gnu.xml.dom.DomCDATA

All Implemented Interfaces:
java.lang.Cloneable, CDATASection, CharacterData, 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.

Author:
David Brownell

Constructor Summary

DomCDATA(Document owner, java.lang.String value)

Constructs a CDATA section node associated with the specified document and holding the specified data.

DomCDATA(Document owner, char buf[] , int off, int len)

Method Summary

java.lang.String

getNodeName()

DOM L1 Returns the string "#cdata-section".

short

getNodeType()

DOM L1 Returns the constant CDATA_SECTION_NODE.

Constructor Details

DomCDATA

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

Parameters:
owner
off
len

DomCDATA

protected DomCDATA(Document owner, java.lang.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.

Parameters:
owner
value

Method Details

getNodeName

public final String getNodeName()

DOM L1 Returns the string "#cdata-section".


getNodeType

public final short getNodeType()

DOM L1 Returns the constant CDATA_SECTION_NODE.