org.jsoup.nodes
Class Comment

java.lang.Object
  extended by org.jsoup.nodes.Node
      extended by org.jsoup.nodes.Comment

public class Comment
extends Node

A comment node.

Author:
Jonathan Hedley, [email protected]

Constructor Summary
Comment(String data, String baseUri)
          Create a new comment node.
 
Method Summary
 String getData()
          Get the contents of the comment.
 String nodeName()
          Get the node name of this node.
 String toString()
           
 
Methods inherited from class org.jsoup.nodes.Node
absUrl, addChild, attr, attr, attributes, baseUri, childNode, childNodes, equals, hasAttr, hashCode, indent, indexInList, nextSibling, nodeDepth, outerHtml, parent, previousSibling, removeAttr, removeChild, replaceChild, setBaseUri, setParentNode, siblingIndex, siblingNodes
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Comment

public Comment(String data,
               String baseUri)
Create a new comment node.

Parameters:
data - The contents of the comment
baseUri - base URI
Method Detail

nodeName

public String nodeName()
Description copied from class: Node
Get the node name of this node. Use for debugging purposes and not logic switching (for that, use instanceof).

Specified by:
nodeName in class Node
Returns:
node name

getData

public String getData()
Get the contents of the comment.

Returns:
comment content

toString

public String toString()
Overrides:
toString in class Node


Copyright © 2009-2010 Jonathan Hedley. All Rights Reserved.