|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.html.DomNode
com.gargoylesoftware.htmlunit.html.DomCharacterData
com.gargoylesoftware.htmlunit.html.DomCData
public class DomCData
Representation of a CDATA node in the Html DOM.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
DomNode.ChildIterator, DomNode.DescendantElementsIterator |
Field Summary | |
---|---|
static String |
NODE_NAME
the symbolic node name |
Fields inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
ATTRIBUTE_NODE, COMMENT_NODE, DOCUMENT_NODE, ELEMENT_NODE, PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED, TEXT_NODE |
Constructor Summary | |
---|---|
DomCData(Page page,
String data)
Create an instance of DomText |
Method Summary | |
---|---|
String |
asText()
Returns a text representation of this element that represents what would be visible to the user if this page was shown in a web browser. |
String |
getNodeName()
Get the name for the current node. |
short |
getNodeType()
Get the type of the current node. |
protected boolean |
isTrimmedText()
Returns a flag indicating whether or not this node should have any leading and trailing whitespace removed when asText() is called; mostly this should be true, but must be false for such things as text formatting tags |
protected void |
printXml(String indent,
PrintWriter printWriter)
recursively write the XML data for the node tree starting at node |
DomText |
splitDomText(int offset)
Split a DomText node in two. |
DomText |
splitText(int offset)
Deprecated. This method conflicts with the W3C DOM API since the return values are different. Use splitDomText instead. |
String |
toString()
Gives a simple representation to facilitate debugging |
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomCharacterData |
---|
appendData, deleteData, getData, getLength, getNodeValue, insertData, replaceData, setData, setNodeValue, substringData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String NODE_NAME
Constructor Detail |
---|
public DomCData(Page page, String data)
page
- The Page that contains this element.data
- the string data held by this nodeMethod Detail |
---|
public short getNodeType()
DomNode
getNodeType
in class DomNode
Node.CDATA_SECTION_NODE
public String getNodeName()
DomNode
getNodeName
in class DomNode
NODE_NAME
protected void printXml(String indent, PrintWriter printWriter)
node
printXml
in class DomNode
indent
- white space to indent child nodesprintWriter
- writer where child nodes are writtenpublic DomText splitText(int offset)
offset
- The character position at which to split the Text node.
public DomText splitDomText(int offset)
offset
- The character position at which to split the DomText node.
public String asText()
asText
in class DomNode
public String toString()
toString
in class Object
protected boolean isTrimmedText()
isTrimmedText
in class DomNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |