Interface DataTreeAwareEffectiveStatement<A,D extends DeclaredStatement<A>>
- Type Parameters:
A
- Argument typeD
- Class representing declared version of this statement.
- All Superinterfaces:
EffectiveStatement<A,
,D> ModelStatement<A>
,SchemaTreeAwareEffectiveStatement<A,
D>
- All Known Subinterfaces:
ActionEffectiveStatement
,CaseEffectiveStatement
,ChoiceEffectiveStatement
,ContainerEffectiveStatement
,GroupingEffectiveStatement
,InputEffectiveStatement
,ListEffectiveStatement
,ModuleEffectiveStatement
,NotificationEffectiveStatement
,OutputEffectiveStatement
,RpcEffectiveStatement
,SubmoduleEffectiveStatement
public interface DataTreeAwareEffectiveStatement<A,D extends DeclaredStatement<A>>
extends SchemaTreeAwareEffectiveStatement<A,D>
Interface implemented by all
SchemaTreeAwareEffectiveStatement
s which can contain a data tree
child.-
Method Summary
Modifier and TypeMethodDescription@NonNull Collection<DataTreeEffectiveStatement<?>>
Return the mapping ofdata tree
children of this statement.@NonNull Optional<DataTreeEffectiveStatement<?>>
findDataTreeNode
(@NonNull QName qname) Find adata tree
childDataTreeEffectiveStatement
, as identified by its QName argument.default <E> @NonNull Optional<E>
findDataTreeNode
(Class<E> type, @NonNull QName qname) Find adata tree
childDataTreeEffectiveStatement
, as identified by its QName argument.Methods inherited from interface org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement
collectEffectiveSubstatements, effectiveSubstatements, findFirstEffectiveSubstatement, findFirstEffectiveSubstatementArgument, getDeclared, statementOrigin, streamEffectiveSubstatements
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.meta.ModelStatement
argument, statementDefinition
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.stmt.SchemaTreeAwareEffectiveStatement
findSchemaTreeNode, findSchemaTreeNode, findSchemaTreeNode, findSchemaTreeNode, findSchemaTreeNode, findSchemaTreeNode, findSchemaTreeNode, findSchemaTreeNode, schemaTreeNodes
-
Method Details
-
dataTreeNodes
@NonNull Collection<DataTreeEffectiveStatement<?>> dataTreeNodes()Return the mapping ofdata tree
children of this statement. This is a subtree ofSchemaTreeAwareEffectiveStatement.schemaTreeNodes()
in that all data nodes are also schema nodes. The structure of the tree is different, though, aschoice
andcase
statements are glossed over and they do not contribute to the tree hierarchy -- only their children do.Note that returned statements are not necessarily direct substatements of this statement.
- Returns:
- All substatements participating on the
data tree
-
findDataTreeNode
Find adata tree
childDataTreeEffectiveStatement
, as identified by its QName argument.- Parameters:
qname
- Child identifier- Returns:
- Data tree child, or empty
- Throws:
NullPointerException
- ifqname
isnull
-
findDataTreeNode
Find adata tree
childDataTreeEffectiveStatement
, as identified by its QName argument.- Type Parameters:
E
- Effective substatement type- Parameters:
type
- Effective substatement classqname
- Child identifier- Returns:
- Data tree child, or empty
- Throws:
NullPointerException
- if any argument isnull
-