|
||||||||||
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.DomComment
public class DomComment
Wrapper for the DOM node Comment.
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 | |
---|---|
DomComment(Page page,
String data)
Create an instance of DomComment |
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 void |
printXml(String indent,
PrintWriter printWriter)
recursively write the XML data for the node tree starting at node |
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 DomComment(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.COMMENT_NODE
public String getNodeName()
DomNode
getNodeName
in class DomNode
NODE_NAME
public String asText()
asText
in class DomNode
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 String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |