Package org.attoparser.dom
Interface INestableNode
-
- All Superinterfaces:
INode
- All Known Implementing Classes:
AbstractNestableNode
,Document
,Element
public interface INestableNode extends INode
Common interface for all nodes in DOM trees that can have children nodes.
- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addChild(INode newChild)
void
clearChildren()
java.util.List<INode>
getChildren()
<T extends INode>
java.util.List<T>getChildrenOfType(java.lang.Class<T> type)
INode
getFirstChild()
<T extends INode>
TgetFirstChildOfType(java.lang.Class<T> type)
boolean
hasChildren()
void
insertChild(int index, INode newChild)
void
insertChildAfter(INode after, INode newChild)
void
insertChildBefore(INode before, INode newChild)
int
numChildren()
void
removeChild(INode child)
-
-
-
Method Detail
-
hasChildren
boolean hasChildren()
-
numChildren
int numChildren()
-
getChildren
java.util.List<INode> getChildren()
-
getChildrenOfType
<T extends INode> java.util.List<T> getChildrenOfType(java.lang.Class<T> type)
-
getFirstChild
INode getFirstChild()
-
getFirstChildOfType
<T extends INode> T getFirstChildOfType(java.lang.Class<T> type)
-
addChild
void addChild(INode newChild)
-
insertChild
void insertChild(int index, INode newChild)
-
removeChild
void removeChild(INode child)
-
clearChildren
void clearChildren()
-
-