Class Element

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class Element
    extends Node
    Tag node.
    • Field Detail

      • voidElement

        protected final boolean voidElement
      • selfClosed

        protected final boolean selfClosed
      • rawTag

        protected final boolean rawTag
    • Constructor Detail

      • Element

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

        public Element​(Document ownerDocument,
                       java.lang.String name)
      • Element

        public Element​(Document ownerDocument,
                       java.lang.String name,
                       boolean voidElement,
                       boolean selfClosed,
                       boolean rawTag)
    • Method Detail

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object