Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| HTML Parser Home Page
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.htmlparser
Interface Remark

All Superinterfaces:
  Cloneable, Node

All Known Implementing Classes:
  RemarkNode

    public interface Remark

extends Node

This interface represents a comment in the HTML document.

Method Summary
`String` | `getText()` Returns the text contents of the comment tag.
`void` | `setText(String text)` Sets the string contents of the node.

Methods inherited from interface org.htmlparser.Node
`accept, clone, collectInto, doSemanticAction, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHtml, toHtml, toPlainTextString, toString`

Method Detail

### getText

    String getText()

  Returns the text contents of the comment tag.

  Specified by:
    `getText` in interface `Node`
  Returns:
    The contents of the text inside the comment delimiters.
  See Also:
    `setText(java.lang.String)`

### setText

    void setText(String text)

  Sets the string contents of the node. If the text has the remark delimiters (<!-- -->), these are stripped off.

  Specified by:
    `setText` in interface `Node`
  Parameters:
    `text` - The new text for the node.
  See Also:
    `getText()`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| © 2005 Derrick Oswald Jun 10, 2006
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

HTML Parser is an open source library released under LGPL. |