Class DataNodeIterator
- java.lang.Object
-
- org.opendaylight.yangtools.yang.model.util.DataNodeIterator
-
- All Implemented Interfaces:
Iterator<DataSchemaNode>
public class DataNodeIterator extends Object implements Iterator<DataSchemaNode>
DataNodeIterator is iterator, which walks down whole YANG DataNodeContainer and walks all instances ofDataSchemaNode
present in subtree.Iterator instance is eagerly created, walking happens on initialization. Iteration is not ordered.
-
-
Constructor Summary
Constructors Constructor Description DataNodeIterator(DataNodeContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ChoiceSchemaNode>
allChoices()
Returns list all choices present in subtree.List<ContainerSchemaNode>
allContainers()
Returns list all containers present in subtree.List<GroupingDefinition>
allGroupings()
Returns list all groupings present in subtree.List<ListSchemaNode>
allLists()
Returns list all lists present in subtree.List<TypeDefinition<?>>
allTypedefs()
Returns list all typedefs present in subtree.boolean
hasNext()
DataSchemaNode
next()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Constructor Detail
-
DataNodeIterator
public DataNodeIterator(DataNodeContainer container)
-
-
Method Detail
-
allContainers
public List<ContainerSchemaNode> allContainers()
Returns list all containers present in subtree.- Returns:
- Returns list all containers present in subtree.
-
allLists
public List<ListSchemaNode> allLists()
Returns list all lists present in subtree.- Returns:
- Returns list all containers present in subtree.
-
allChoices
public List<ChoiceSchemaNode> allChoices()
Returns list all choices present in subtree.- Returns:
- Returns list all containers present in subtree.
-
allGroupings
public List<GroupingDefinition> allGroupings()
Returns list all groupings present in subtree.- Returns:
- Returns list all containers present in subtree.
-
allTypedefs
public List<TypeDefinition<?>> allTypedefs()
Returns list all typedefs present in subtree.- Returns:
- Returns list all containers present in subtree.
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<DataSchemaNode>
-
next
public DataSchemaNode next()
- Specified by:
next
in interfaceIterator<DataSchemaNode>
-
-