Class HtmlFragment

java.lang.Object
guideme.web.html.HtmlFragment

public final class HtmlFragment extends Object
A list of sibling nodes without a parent element.
  • Constructor Details

    • HtmlFragment

      public HtmlFragment()
    • HtmlFragment

      public HtmlFragment(HtmlNode... nodes)
  • Method Details

    • nodes

      public List<HtmlNode> nodes()
    • isEmpty

      public boolean isEmpty()
    • append

      public void append(HtmlNode node)
    • append

      public void append(String text)
      Appends text, which is escaped when written.
    • append

      public void append(HtmlFragment fragment)
    • outerHtml

      public String outerHtml()
      Returns the HTML of all nodes.
      Returns:
      the HTML of all nodes