Interface ModuleEffectiveStatement
- All Superinterfaces:
DataTreeAwareEffectiveStatement<UnresolvedQName.Unqualified,,ModuleStatement> EffectiveStatement<UnresolvedQName.Unqualified,,ModuleStatement> ModelStatement<UnresolvedQName.Unqualified>,RootEffectiveStatement<ModuleStatement>,SchemaTreeAwareEffectiveStatement<UnresolvedQName.Unqualified,,ModuleStatement> SchemaTreeRoot,TypedefAwareEffectiveStatement<UnresolvedQName.Unqualified,ModuleStatement>
public non-sealed interface ModuleEffectiveStatement
extends DataTreeAwareEffectiveStatement<UnresolvedQName.Unqualified,ModuleStatement>, RootEffectiveStatement<ModuleStatement>, TypedefAwareEffectiveStatement<UnresolvedQName.Unqualified,ModuleStatement>, SchemaTreeRoot
Effective view of a
module statement.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum -
Method Summary
Modifier and TypeMethodDescriptionReturn the conformance type of this module.default @NonNull Collection<ExtensionEffectiveStatement>Namespace of available extensions.default @NonNull Collection<FeatureEffectiveStatement>features()Namespace of available features.@NonNull Optional<ExtensionEffectiveStatement>findExtension(@NonNull QName qname) Lookup anExtensionEffectiveStatementby itsQName.@NonNull Optional<FeatureEffectiveStatement>findFeature(@NonNull QName qname) Lookup anFeatureEffectiveStatementby itsQName.@NonNull Optional<IdentityEffectiveStatement>findIdentity(@NonNull QName qname) Lookup anIdentityEffectiveStatementby itsQName.default Optional<SchemaTreeEffectiveStatement<?>>Find aschema treenode based on its schema node identifier.@NonNull Optional<SubmoduleEffectiveStatement>findSubmodule(@NonNull UnresolvedQName.Unqualified submoduleName) Namespace mapping all included submodules.default @NonNull Collection<IdentityEffectiveStatement>Namespace of available identities.@NonNull QNameModuleGet the local QNameModule of this module.default @NonNull NamespaceEffectiveStatementReturn this statement'snamespacesubstatement.default @NonNull PrefixEffectiveStatementprefix()Return this statement'sprefixsubstatement.default StatementDefinitionStatement Definition of this statement.default @NonNull Collection<SubmoduleEffectiveStatement>All submodules included in this module, directly or transitively.Methods inherited from interface org.opendaylight.yangtools.yang.model.api.stmt.DataTreeAwareEffectiveStatement
dataTreeNodes, findDataTreeNode, findDataTreeNodeMethods inherited from interface org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement
collectEffectiveSubstatements, effectiveSubstatements, findFirstEffectiveSubstatement, findFirstEffectiveSubstatementArgument, getDeclared, statementOrigin, streamEffectiveSubstatementsMethods inherited from interface org.opendaylight.yangtools.yang.model.api.meta.ModelStatement
argumentMethods inherited from interface org.opendaylight.yangtools.yang.model.api.stmt.RootEffectiveStatement
findNamespacePrefix, findReachableModule, namespacePrefixes, reachableModulesMethods inherited from interface org.opendaylight.yangtools.yang.model.api.stmt.SchemaTreeAwareEffectiveStatement
findSchemaTreeNode, findSchemaTreeNode, findSchemaTreeNode, findSchemaTreeNode, findSchemaTreeNode, findSchemaTreeNode, findSchemaTreeNode, findSchemaTreeNode, schemaTreeNodesMethods inherited from interface org.opendaylight.yangtools.yang.model.api.stmt.SchemaTreeRoot
findSchemaTreeNodeMethods inherited from interface org.opendaylight.yangtools.yang.model.api.stmt.TypedefAwareEffectiveStatement
findTypedef, typedefs
-
Method Details
-
statementDefinition
Description copied from interface:ModelStatementStatement Definition of this statement.- Specified by:
statementDefinitionin interfaceModelStatement<UnresolvedQName.Unqualified>- Returns:
- definition of this statement.
-
namespace
Return this statement'snamespacesubstatement.- Returns:
- A
NamespaceEffectiveStatement - Implementation Requirements:
- Default implementation uses
EffectiveStatement.findFirstEffectiveSubstatement(Class)and throws aVerifyExceptionif a matching substatement is not found.
-
prefix
Return this statement'sprefixsubstatement.- Returns:
- A
PrefixEffectiveStatement - Implementation Requirements:
- Default implementation uses
EffectiveStatement.findFirstEffectiveSubstatement(Class)and throws aVerifyExceptionif a matching substatement is not found.
-
findSchemaTreeNode
Find aschema treenode based on its schema node identifier.- Specified by:
findSchemaTreeNodein interfaceSchemaTreeRoot- Parameters:
path- Absolute schema node identifier- Returns:
- Found node, or empty
- Implementation Requirements:
- Default implementation defers to
SchemaTreeAwareEffectiveStatement.findSchemaTreeNode(java.util.List).
-
localQNameModule
@NonNull QNameModule localQNameModule()Get the local QNameModule of this module. All implementations need to override this default method.- Returns:
- Local QNameModule
-
conformance
@NonNull ModuleEffectiveStatement.ConformanceType conformance()Return the conformance type of this module.- Returns:
- Conformance type.
-
extensions
Namespace of available extensions. According to RFC7950 section 6.2.1:All extension names defined in a module and its submodules share the same extension identifier namespace.- Returns:
- All
ExtensionEffectiveStatements defined in this module
-
findExtension
Lookup anExtensionEffectiveStatementby itsQName.- Parameters:
qname- identity name- Returns:
- Corresponding extension, or empty
- Throws:
NullPointerException- ifqnameisnull
-
features
Namespace of available features. According to RFC7950 section 6.2.1:All feature names defined in a module and its submodules share the same feature identifier namespace.- Returns:
- All
FeatureEffectiveStatements defined in this module
-
findFeature
Lookup anFeatureEffectiveStatementby itsQName.- Parameters:
qname- identity name- Returns:
- Corresponding feature, or empty
- Throws:
NullPointerException- ifqnameisnull
-
identities
Namespace of available identities. According to RFC7950 section 6.2.1:All identity names defined in a module and its submodules share the same identity identifier namespace.- Returns:
- All
IdentityEffectiveStatements defined in this module
-
findIdentity
Lookup anIdentityEffectiveStatementby itsQName.- Parameters:
qname- identity name- Returns:
- Corresponding identity, or empty
- Throws:
NullPointerException- ifqnameisnull
-
submodules
All submodules included in this module, directly or transitively.- Returns:
- All included submodules
-
findSubmodule
@NonNull Optional<SubmoduleEffectiveStatement> findSubmodule(@NonNull UnresolvedQName.Unqualified submoduleName) Namespace mapping all included submodules. The namespaces is keyed by submodule name, as represented byModelStatement.argument().- Returns:
- submoduleName Included submodule, or empty
- Throws:
NullPointerException- ifsubmoduleNameisnull
-