|
|||||
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.
Field Summary | |
---|---|
static java.lang.String |
NODE_NAME
the symbolic node name |
Fields inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED |
Constructor Summary | |
---|---|
DomComment(HtmlPage page,
java.lang.String data)
Create an instance of DomComment |
Method Summary | |
---|---|
java.lang.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. |
java.lang.String |
getNodeName()
Get the name for the current node. |
short |
getNodeType()
Get the type of the current node. |
java.lang.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 com.gargoylesoftware.htmlunit.html.DomNode |
---|
addDomChangeListener, appendDomChild, asXml, cloneDomNode, getAllHtmlChildElements, getByXPath, getChildIterator, getEndColumnNumber, getEndLineNumber, getEventHandler, getFirstDomChild, getLastDomChild, getNextDomSibling, getPage, getParentDomNode, getPreviousDomSibling, getReadyState, getScriptObject, getStartColumnNumber, getStartLineNumber, insertBefore, remove, removeAllChildren, removeDomChangeListener, removeEventHandler, replace, setEventHandler, setEventHandler, setReadyState, setScriptObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NODE_NAME
Constructor Detail |
---|
public DomComment(HtmlPage page, java.lang.String data)
page
- The HtmlPage that contains this element.data
- the string data held by this nodeMethod Detail |
---|
public java.lang.String asText()
asText
in class DomNode
public java.lang.String getNodeName()
DomNode
getNodeName
in class DomNode
NODE_NAME
public short getNodeType()
DomNode
getNodeType
in class DomNode
Node.COMMENT_NODE
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |