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
-
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)
-
findModuleStatements
default @NonNull Collection<@NonNull ModuleEffectiveStatement> findModuleStatements(String name)
Returns module instances (from the context) with a concrete name. Returned collection is required to have its iteration order guarantee that the latest revision is encountered first.- Parameters:
name
- string with the module name- Returns:
- set of module instances with specified name.
-
findModuleStatements
default @NonNull Collection<@NonNull ModuleEffectiveStatement> findModuleStatements(XMLNamespace namespace)
Returns module instance (from the context) with concrete namespace. Returned collection is required to have its iteration order guarantee that the latest revision is encountered first.- Parameters:
namespace
- XMLNamespace instance with specified namespace- Returns:
- module instance which has namespace equal to the
namespace
ornull
in other cases
-
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)
.
-
-