Interface Remark

  • All Superinterfaces:
    java.lang.Cloneable, Node
    All Known Implementing Classes:
    RemarkNode

    public interface Remark
    extends Node
    This interface represents a comment in the HTML document.
    • Method Detail

      • getText

        java.lang.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​(java.lang.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()