Interface INode
-
- All Known Subinterfaces:
ICustomElementNode,IDataNode,IDocumentNode,IDocumentTypeNode,IElementNode,ITextNode,IXmlDeclarationNode
- All Known Implementing Classes:
CssContextNode,CssPseudoElementNode,JsoupDataNode,JsoupDocumentNode,JsoupDocumentTypeNode,JsoupElementNode,JsoupNode,JsoupTextNode,JsoupXmlDeclarationNode,PageContextNode,PageMarginBoxContextNode
public interface INodeInterface for classes that describe a Node with a parent and children.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddChild(INode node)Adds a child node.java.util.List<INode>childNodes()Gets the child nodes.INodeparentNode()Gets the parent node.
-
-
-
Method Detail
-
childNodes
java.util.List<INode> childNodes()
Gets the child nodes.- Returns:
- a list of
INodeinstances.
-
addChild
void addChild(INode node)
Adds a child node.- Parameters:
node- a child node that will be added to the current node
-
parentNode
INode parentNode()
Gets the parent node.- Returns:
- the parent node
-
-