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 Summary
Modifier and TypeMethodDescriptionReturns all direct child nodes.getChildren(boolean recursive) Returns children, maybe recursivly.@Nullable DomNodeReturns the first child node ornullif there is no such node.@Nullable FormatTemplateReturns node'sFormatTemplate.@Nullable DomNodeReturns the next sibling node ornullif there is no such node.Returns the node type.@Nullable DomNodeReturns the parent node ornullif this node is a root node.getReferences(boolean release) Returns all references, including reference to node'sFormatTemplate.@Nullable StringReturns element's tag name.booleanReturnstrueif this element has children,falseotherwise.booleanReturnsFormatTemplate.isSystem().voidremoveChild(@NotNull DomNode child) Removes a child of the child list.@Nullable DomNodereplaceChild(DomNode child, @NotNull String text) Replace a child with a new one at the same position the child list.
-
Method Details
-
getChildren
Returns all direct child nodes.- Returns:
- children.
- Since:
- 4.2.17
-
getChildren
Returns children, maybe recursivly.- Parameters:
recursive-trueto 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
Returns the next sibling node ornullif there is no such node.- Since:
- 4.2.17
-
getFirstChild
Returns the first child node ornullif there is no such node.- Since:
- 4.2.17
-
removeChild
Removes a child of the child list.- Since:
- 4.2.17
-
replaceChild
Replace a child with a new one at the same position the child list.- Since:
- 5.0.104
-
getParent
Returns the parent node ornullif this node is a root node.- Returns:
- Parent node or
nullif this node is a root node. - Since:
- 4.2.15
-
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()Returnstrueif this element has children,falseotherwise.- Returns:
trueif this element has children,falseotherwise.- Since:
- 4.2.15
-
isSystemTemplate
boolean isSystemTemplate()ReturnsFormatTemplate.isSystem().- Returns:
FormatTemplate.isSystem()- Since:
- 4.2.15
-
getFormatTemplate
Returns node'sFormatTemplate. For text nodes it returns parent'sFormatTemplate.
Maybenullin case of missing format templates or if this node is the root node.- Returns:
- node's
FormatTemplate. - Since:
- 4.2.15
-
getReferences
Returns all references, including reference to node'sFormatTemplate.- Parameters:
release-trueto return release references,falseto return references of current store.- Returns:
- all references
- Since:
- 4.2.15
-