public interface DomNode
DomElement
content.DomElement.getRoot()
,
TableCell
Modifier and Type | Method and Description |
---|---|
Iterable<DomNode> |
getChildren()
Returns all direct child nodes.
|
Iterable<DomNode> |
getChildren(boolean recursive)
Returns children, maybe recursivly.
|
DomNode |
getFirstChild()
Returns the first child node or
null if there is no such node. |
FormatTemplate |
getFormatTemplate()
Returns node's
FormatTemplate . |
DomNode |
getNextSibling()
Returns the next sibling node or
null if there is no such node. |
DomNodeType |
getNodeType()
Returns the node type.
|
DomNode |
getParent()
Returns parent node, maybe
null (e.g. if this node is the root node). |
Collection<Reference> |
getReferences(boolean release)
Returns all references, including reference to node's
FormatTemplate . |
String |
getTagName()
Returns element's tag name.
|
boolean |
hasChildren()
Returns
true if this element has children, false otherwise. |
boolean |
isSystemTemplate()
Returns
FormatTemplate.isSystem() . |
void |
removeChild(DomNode child)
Removes a child of the child list.
|
DomNode |
replaceChild(DomNode child,
String text)
Replace a child with a new one at the same position the child list.
|
Iterable<DomNode> getChildren()
Iterable<DomNode> getChildren(boolean recursive)
recursive
- true
to include all nodes recursivly in depth-first-order.DomNodeType getNodeType()
@Nullable DomNode getNextSibling()
null
if there is no such node.@Nullable DomNode getFirstChild()
null
if there is no such node.void removeChild(@NotNull DomNode child)
@Nullable DomNode replaceChild(DomNode child, @NotNull String text)
@Nullable DomNode getParent()
null
(e.g. if this node is the root node).@Nullable String getTagName()
boolean hasChildren()
true
if this element has children, false
otherwise.true
if this element has children, false
otherwise.boolean isSystemTemplate()
FormatTemplate.isSystem()
.FormatTemplate.isSystem()
@Nullable FormatTemplate getFormatTemplate()
FormatTemplate
. For text nodes it returns parent's FormatTemplate
.null
in case of missing format templates or if this node is the root node.FormatTemplate
.Collection<Reference> getReferences(boolean release)
FormatTemplate
.release
- true
to return release references, false
to return references of current store.Copyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408