org.attoparser.markup.dom
Interface INestableNode

All Superinterfaces:
INode
All Known Subinterfaces:
IDocument, IElement
All Known Implementing Classes:
AbstractNestableNode, Document, Element

public interface INestableNode
extends INode

Common interface for all nodes in attoDOM trees that can have children nodes.

Since:
1.1
Author:
Daniel Fernández

Method Summary
 void addChild(INode newChild)
           
 void clearChildren()
           
 List<INode> getChildren()
           
<T extends INode>
List<T>
getChildrenOfType(Class<T> type)
           
 INode getFirstChild()
           
<T extends INode>
T
getFirstChildOfType(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)
           
 
Methods inherited from interface org.attoparser.markup.dom.INode
cloneNode, getCol, getLine, getParent, hasCol, hasLine, hasParent, setCol, setLine, setParent
 

Method Detail

hasChildren

boolean hasChildren()

numChildren

int numChildren()

getChildren

List<INode> getChildren()

getChildrenOfType

<T extends INode> List<T> getChildrenOfType(Class<T> type)

getFirstChild

INode getFirstChild()

getFirstChildOfType

<T extends INode> T getFirstChildOfType(Class<T> type)

addChild

void addChild(INode newChild)

insertChild

void insertChild(int index,
                 INode newChild)

insertChildBefore

void insertChildBefore(INode before,
                       INode newChild)

insertChildAfter

void insertChildAfter(INode after,
                      INode newChild)

removeChild

void removeChild(INode child)

clearChildren

void clearChildren()


Copyright © 2012 The ATTOPARSER team. All Rights Reserved.