public class Comment extends Node
Constructor and Description |
---|
Comment(java.lang.String data,
java.lang.String baseUri)
Create a new comment node.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getData()
Get the contents of the comment.
|
java.lang.String |
nodeName()
Get the node name of this node.
|
java.lang.String |
toString() |
absUrl, addChildren, addChildren, after, after, attr, attr, attributes, baseUri, before, before, childNode, childNodes, childNodesAsArray, clone, doClone, equals, hasAttr, hashCode, indent, nextSibling, outerHtml, outerHtml, ownerDocument, parent, previousSibling, remove, removeAttr, removeChild, replaceChild, replaceWith, setBaseUri, setParentNode, setSiblingIndex, siblingIndex, siblingNodes, traverse, unwrap, wrap
public Comment(java.lang.String data, java.lang.String baseUri)
data
- The contents of the commentbaseUri
- base URIpublic java.lang.String nodeName()
Node
public java.lang.String getData()
Copyright © 2009-2012 Jonathan Hedley. All Rights Reserved.