com.ibm.xml.parser
Class TXCDATASection
java.lang.Object
|
+--com.ibm.xml.parser.Child
|
+--com.ibm.xml.parser.TXCharacterData
|
+--com.ibm.xml.parser.TXText
|
+--com.ibm.xml.parser.TXCDATASection
- Direct Known Subclasses:
- TreeFactory.TreeCDATASection
- public class TXCDATASection
- extends TXText
- implements org.w3c.dom.CDATASection
The TXCDATASection class implements the CDATASection interface as defined by the Document Object Model (DOM).
CDATA sections are Text Node extensions that are used to provide a region in which most of the XML delimiter
recognition does not take place. The primary purpose is for including material such as XML fragments, without
needing to escape all the delimiters.
An example of a CDATA section in which <greeting>
and </greeting>
are recognized as character data and not markup is:
<![CDATA[<greeting>Hello, world!</greeting>]]>
- Version:
- Revision: 98 1.5 src/com/ibm/xml/parser/TXCDATASection.java, parser, xml4j2, xml4j2_0_13
- See Also:
TXText
,
CDATASection
, Serialized Form
Fields inherited from class com.ibm.xml.parser.Child |
ATTDEF,
ATTLIST,
ELEMENT_DECL,
NAME_ATTDEF,
NAME_ATTLIST,
NAME_CDATA,
NAME_COMMENT,
NAME_DOCFRAGMENT,
NAME_DOCUMENT,
NAME_ELEMENT_DECL,
NAME_PSEUDONODE,
NAME_TEXT,
PSEUDONODE |
Constructor Summary |
TXCDATASection(java.lang.String data)
Constructor. |
Method Summary |
java.lang.Object |
clone()
Clone this CDATASection using the appropriate factory. |
boolean |
equals(org.w3c.dom.Node arg,
boolean deep)
|
java.lang.String |
getNodeName()
|
short |
getNodeType()
Returns that this object is a CDATASection Node. |
Methods inherited from class com.ibm.xml.parser.TXText |
acceptPost,
acceptPre,
getIsIgnorableWhitespace,
getLanguage,
getText,
makePrintable,
setIsIgnorableWhitespace,
splice,
splitText,
trim,
trim |
Methods inherited from class com.ibm.xml.parser.Child |
appendChild,
clearDigest,
cloneNode,
getAttributes,
getChildNodes,
getDigest,
getFactory,
getFirstChild,
getFirstWithoutReference,
getLastChild,
getLastWithoutReference,
getNextSibling,
getNextWithoutReference,
getOwnerDocument,
getParentNode,
getParentWithoutReference,
getPreviousSibling,
getPreviousWithoutReference,
getUserData,
hasChildNodes,
insertBefore,
makeXPointer,
print,
print,
removeChild,
replaceChild,
searchAncestors,
searchAncestors,
setFactory,
setUserData,
toXMLString,
toXMLString |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
TXCDATASection
public TXCDATASection(java.lang.String data)
- Constructor.
- Parameters:
data
- The actual content of the CDATASection Node.
clone
public java.lang.Object clone()
- Clone this CDATASection using the appropriate factory.
This method is defined by Child.
- Returns:
- Cloned CDATASection.
- Overrides:
- clone in class TXText
- See Also:
Child.clone()
equals
public boolean equals(org.w3c.dom.Node arg,
boolean deep)
- Overrides:
- equals in class TXText
getNodeType
public short getNodeType()
- Returns that this object is a CDATASection Node.
This method is defined by DOM.
- Returns:
- CDATASection Node indicator.
- Overrides:
- getNodeType in class TXText
getNodeName
public java.lang.String getNodeName()
- Overrides:
- getNodeName in class TXText