Interface HtmlTool.IdElement

  • Enclosing class:
    HtmlTool

    public static interface HtmlTool.IdElement
    Representation of a HTML element with ID and a text content. Other such elements can be nested within.
    Since:
    1.0
    Author:
    Andrius Velykis
    • Method Detail

      • getId

        String getId()
        Retrieves the ID of the HTML element (attribute id).
        Returns:
        element id value
      • getTagName

        String getTagName()
        Returns:
        Returns the tag name of element.
      • getText

        String getText()
        Retrieves the text contents of the HTML element (rendered for display).
        Returns:
        text contents of the element
      • getHeadingLevel

        int getHeadingLevel()
        Returns:
        Returns the level of heading.
      • getItems

        List<? extends HtmlTool.IdElement> getItems()
        Retrieves the children of the HTML element (nested within the element).
        Returns:
        nested items within the element