|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.crimson.tree.NodeBase org.apache.crimson.tree.DataNode org.apache.crimson.tree.TextNode org.apache.crimson.tree.CDataNode
Node representing XML CDATA text, which is just like other text except for its delimiters (<[CDATA[text]]>). CDATA is used to embed markup, program source code, and other kinds of text that use XML markup delimiters (< and &) for their own nefarious purposes.
Nested Class Summary |
Nested classes inherited from class org.apache.crimson.tree.TextNode |
DataNode.NodeListImpl |
Field Summary |
Fields inherited from class org.apache.crimson.tree.TextNode |
childNodes, data, ownerDocument, readonly |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
CDataNode()
Constructs a CDATA text object with no text. |
|
CDataNode(char[] buf,
int offset,
int len)
Constructs CDATA text object by copying text from the input buffer. |
|
CDataNode(String s)
Constructs a CDATA text object by copying text from the string. |
Method Summary | |
org.w3c.dom.Node |
cloneNode(boolean deep)
Returns a new CDATA section with the same content as this. |
String |
getNodeName()
Returns the string "#cdata-section". |
short |
getNodeType()
DOM: Returns the CDATA_SECTION_NODE node type constant. |
void |
writeXml(XmlWriteContext context)
Writes the text, breaking this into multiple CDATA sections if necessary to escape [[< in the data. |
Methods inherited from class org.apache.crimson.tree.TextNode |
appendChild, appendData, deleteData, getAttributes, getChildNodes, getData, getFirstChild, getIndexOf, getInheritedAttribute, getLanguage, getLastChild, getLength, getLocalName, getMessage, getMessage, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentImpl, getParentNode, getPrefix, getPreviousSibling, getText, hasAttributes, hasChildNodes, insertBefore, insertData, isReadonly, isSupported, item, joinNextText, normalize, removeChild, replaceChild, replaceData, setData, setNodeValue, setOwnerDocument, setParentNode, setPrefix, setReadonly, setText, splitText, substringData, toString, writeChildrenXml |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Text |
splitText |
Methods inherited from interface org.w3c.dom.CharacterData |
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData |
Methods inherited from interface org.w3c.dom.Node |
appendChild, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Constructor Detail |
public CDataNode()
public CDataNode(char[] buf, int offset, int len)
public CDataNode(String s)
Method Detail |
public void writeXml(XmlWriteContext context) throws IOException
writeXml
in interface XmlWritable
writeXml
in class TextNode
IOException
public short getNodeType()
getNodeType
in interface org.w3c.dom.Node
getNodeType
in class TextNode
public org.w3c.dom.Node cloneNode(boolean deep)
cloneNode
in interface org.w3c.dom.Node
cloneNode
in class TextNode
public String getNodeName()
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class TextNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |