Class Element

java.lang.Object
jodd.lagarto.dom.Node
jodd.lagarto.dom.Element
All Implemented Interfaces:
Cloneable

public class Element extends Node
Tag node.
  • Field Details

    • voidElement

      protected final boolean voidElement
    • selfClosed

      protected final boolean selfClosed
    • rawTag

      protected final boolean rawTag
  • Constructor Details

    • Element

      public Element(Document ownerNode, Tag tag, boolean voidElement, boolean selfClosed)
    • Element

      public Element(Document ownerDocument, String name)
    • Element

      public Element(Document ownerDocument, String name, boolean voidElement, boolean selfClosed, boolean rawTag)
  • Method Details

    • clone

      public Element clone()
      Specified by:
      clone in class Node
    • isVoidElement

      public boolean isVoidElement()
      Returns true if element is void.
    • isSelfClosed

      public boolean isSelfClosed()
      Returns true if element can self-close itself when empty.
    • isRawTag

      public boolean isRawTag()
      Returns true if tags content is RAW text.
    • visitNode

      protected void visitNode(NodeVisitor nodeVisitor)
      Description copied from class: Node
      Visits single node. Implementations just needs to call the correct visitor callback function.
      Specified by:
      visitNode in class Node
    • toString

      public String toString()
      Overrides:
      toString in class Object