Interface DomNode

All Known Subinterfaces:
DefaultDomNode, LinkDomNode, ListDomNode, TableCell, TableDomNode, TableRowDomNode, TextDomNode

public interface DomNode
Node of DomElement content.
Since:
4.2.15
See Also:
  • Method Details

    • getChildren

      Iterable<DomNode> getChildren()
      Returns all direct child nodes.
      Returns:
      children.
      Since:
      4.2.17
    • getChildren

      Iterable<DomNode> getChildren(boolean recursive)
      Returns children, maybe recursivly.
      Parameters:
      recursive - true to include all nodes recursivly in depth-first-order.
      Returns:
      children, maybe recursivly.
      Since:
      4.2.17
    • getNodeType

      DomNodeType getNodeType()
      Returns the node type.
      Since:
      4.2.17
    • getNextSibling

      @Nullable @Nullable DomNode getNextSibling()
      Returns the next sibling node or null if there is no such node.
      Since:
      4.2.17
    • getFirstChild

      @Nullable @Nullable DomNode getFirstChild()
      Returns the first child node or null if there is no such node.
      Since:
      4.2.17
    • removeChild

      void removeChild(@NotNull @NotNull DomNode child)
      Removes a child of the child list.
      Since:
      4.2.17
    • replaceChild

      @Nullable @Nullable DomNode replaceChild(DomNode child, @NotNull @NotNull String text)
      Replace a child with a new one at the same position the child list.
      Since:
      5.0.104
    • getParent

      @Nullable @Nullable DomNode getParent()
      Returns the parent node or null if this node is a root node.
      Returns:
      Parent node or null if this node is a root node.
      Since:
      4.2.15
    • getTagName

      @Nullable @Nullable String getTagName()
      Returns element's tag name. For text nodes it returns parent's tag name.
      Returns:
      element's tag name.
      Since:
      4.2.15
    • hasChildren

      boolean hasChildren()
      Returns true if this element has children, false otherwise.
      Returns:
      true if this element has children, false otherwise.
      Since:
      4.2.15
    • isSystemTemplate

      boolean isSystemTemplate()
      Returns:
      FormatTemplate.isSystem()
      Since:
      4.2.15
    • getFormatTemplate

      @Nullable @Nullable FormatTemplate getFormatTemplate()
      Returns node's FormatTemplate. For text nodes it returns parent's FormatTemplate.
      Maybe null in case of missing format templates or if this node is the root node.
      Returns:
      node's FormatTemplate.
      Since:
      4.2.15
    • getReferences

      Collection<Reference> getReferences(boolean release)
      Returns all references, including reference to node's FormatTemplate.
      Parameters:
      release - true to return release references, false to return references of current store.
      Returns:
      all references
      Since:
      4.2.15