Interface EffectiveModelContext
-
- All Superinterfaces:
ActionNodeContainer
,AddedByUsesAware
,AugmentationTarget
,ContainerLike
,CopyableNode
,DataNodeContainer
,DataSchemaNode
,DocumentedNode
,DocumentedNode.WithStatus
,Immutable
,MustConstraintAware
,MutationBehaviour<Immutable>
,NotificationNodeContainer
,SchemaContext
,SchemaNode
,SchemaTreeRoot
,WhenConditionAware
- All Known Implementing Classes:
EffectiveSchemaContext
@Beta public interface EffectiveModelContext extends SchemaContext, SchemaTreeRoot
EffectiveStatement
-based result of YANG parser compilation. Unlike a SchemaContext, which it extends, it gives access to individualModuleEffectiveStatement
s that comprise it. It also supports resolution of schema node identifiers viafindSchemaTreeNode(SchemaNodeIdentifier)
.- Author:
- Robert Varga
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
DocumentedNode.WithStatus
-
-
Field Summary
-
Fields inherited from interface org.opendaylight.yangtools.yang.model.api.SchemaContext
NAME
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @NonNull Optional<ModuleEffectiveStatement>
findModuleStatement(QName moduleName)
default @NonNull Optional<ModuleEffectiveStatement>
findModuleStatement(QNameModule moduleName)
default Optional<SchemaTreeEffectiveStatement<?>>
findSchemaTreeNode(SchemaNodeIdentifier path)
Find aschema tree
node based on its schema node identifier.default @NonNull ModuleEffectiveStatement
getModuleStatement(QName moduleName)
default @NonNull ModuleEffectiveStatement
getModuleStatement(QNameModule moduleName)
@NonNull Map<QNameModule,ModuleEffectiveStatement>
getModuleStatements()
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DataNodeContainer
dataChildByName, findDataChildByName, findDataChildByName, findDataTreeChild, findDataTreeChild, getChildNodes, getDataChildByName, getGroupings, getTypeDefinitions
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DataSchemaNode
isConfiguration
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
getUnknownSchemaNodes
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.NotificationNodeContainer
getNotifications
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.SchemaContext
effectiveConfig, findAction, findDataTreeChild, findModule, findModule, findModule, findModule, findModule, findModule, findModule, findModules, findModules, findNotification, getActions, getAvailableAugmentations, getDataDefinitions, getDerivedIdentities, getDescription, getExtensions, getModules, getMustConstraints, getOperations, getPath, getQName, getReference, getStatus, getUses, getWhenCondition, isAddedByUses, isAugmenting
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.stmt.SchemaTreeRoot
findSchemaTreeNode
-
-
-
-
Method Detail
-
getModuleStatements
@NonNull Map<QNameModule,ModuleEffectiveStatement> getModuleStatements()
-
findModuleStatement
default @NonNull Optional<ModuleEffectiveStatement> findModuleStatement(QNameModule moduleName)
-
findModuleStatement
default @NonNull Optional<ModuleEffectiveStatement> findModuleStatement(QName moduleName)
-
getModuleStatement
default @NonNull ModuleEffectiveStatement getModuleStatement(QNameModule moduleName)
-
getModuleStatement
default @NonNull ModuleEffectiveStatement getModuleStatement(QName moduleName)
-
findSchemaTreeNode
default Optional<SchemaTreeEffectiveStatement<?>> findSchemaTreeNode(SchemaNodeIdentifier path)
Find aschema tree
node based on its schema node identifier.- Specified by:
findSchemaTreeNode
in interfaceSchemaTreeRoot
- Parameters:
path
- Absolute schema node identifier- Returns:
- Found node, or empty
- Implementation Requirements:
- Default implementation defers locates the module corresponding to the first element of path and then defers
to
ModuleEffectiveStatement.findSchemaTreeNode(SchemaNodeIdentifier)
.
-
-