Class DataNodeIterator
- java.lang.Object
-
- org.opendaylight.yangtools.yang.model.util.DataNodeAggregator
-
- org.opendaylight.yangtools.yang.model.util.DataNodeIterator
-
- All Implemented Interfaces:
Iterator<DataSchemaNode>
@Deprecated public class DataNodeIterator extends DataNodeAggregator implements Iterator<DataSchemaNode>
Deprecated.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)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
addChild(DataSchemaNode childNode)
Deprecated.protected void
addChoice(ChoiceSchemaNode choiceNode)
Deprecated.protected void
addContainer(ContainerSchemaNode containerNode)
Deprecated.protected void
addGrouping(GroupingDefinition grouping)
Deprecated.protected void
addList(ListSchemaNode list)
Deprecated.protected void
addTypedefs(Collection<? extends TypeDefinition<?>> typeDefs)
Deprecated.List<ChoiceSchemaNode>
allChoices()
Deprecated.Returns list all choices present in subtree.List<ContainerSchemaNode>
allContainers()
Deprecated.Returns list all containers present in subtree.List<GroupingDefinition>
allGroupings()
Deprecated.Returns list all groupings present in subtree.List<ListSchemaNode>
allLists()
Deprecated.Returns list all lists present in subtree.List<TypeDefinition<?>>
allTypedefs()
Deprecated.Returns list all typedefs present in subtree.boolean
hasNext()
Deprecated.DataSchemaNode
next()
Deprecated.-
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)
Deprecated.
-
-
Method Detail
-
allContainers
public List<ContainerSchemaNode> allContainers()
Deprecated.Returns list all containers present in subtree.- Returns:
- Returns list all containers present in subtree.
-
allLists
public List<ListSchemaNode> allLists()
Deprecated.Returns list all lists present in subtree.- Returns:
- Returns list all containers present in subtree.
-
allChoices
public List<ChoiceSchemaNode> allChoices()
Deprecated.Returns list all choices present in subtree.- Returns:
- Returns list all containers present in subtree.
-
allGroupings
public List<GroupingDefinition> allGroupings()
Deprecated.Returns list all groupings present in subtree.- Returns:
- Returns list all containers present in subtree.
-
allTypedefs
public List<TypeDefinition<?>> allTypedefs()
Deprecated.Returns list all typedefs present in subtree.- Returns:
- Returns list all containers present in subtree.
-
hasNext
public boolean hasNext()
Deprecated.- Specified by:
hasNext
in interfaceIterator<DataSchemaNode>
-
next
public DataSchemaNode next()
Deprecated.- Specified by:
next
in interfaceIterator<DataSchemaNode>
-
addChild
protected void addChild(DataSchemaNode childNode)
Deprecated.- Overrides:
addChild
in classDataNodeAggregator
-
addContainer
protected void addContainer(ContainerSchemaNode containerNode)
Deprecated.- Overrides:
addContainer
in classDataNodeAggregator
-
addList
protected void addList(ListSchemaNode list)
Deprecated.- Overrides:
addList
in classDataNodeAggregator
-
addChoice
protected void addChoice(ChoiceSchemaNode choiceNode)
Deprecated.- Overrides:
addChoice
in classDataNodeAggregator
-
addTypedefs
protected void addTypedefs(Collection<? extends TypeDefinition<?>> typeDefs)
Deprecated.- Overrides:
addTypedefs
in classDataNodeAggregator
-
addGrouping
protected void addGrouping(GroupingDefinition grouping)
Deprecated.- Overrides:
addGrouping
in classDataNodeAggregator
-
-