Interface ModuleImport
-
- All Superinterfaces:
DocumentedNode
,EffectiveStatementEquivalent<ImportEffectiveStatement>
public interface ModuleImport extends DocumentedNode, EffectiveStatementEquivalent<ImportEffectiveStatement>
Interface describing YANG 'import' statement. The import statement makes definitions from one module available inside another module or submodule.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
DocumentedNode.WithStatus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @NonNull String
getModuleName()
Returns the name of the module to import.@NonNull String
getPrefix()
Returns the prefix associated with the imported module.Optional<Revision>
getRevision()
Returns the module revision to import.Optional<SemVer>
getSemanticVersion()
Returns the semantic version to import.-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
getDescription, getReference, getUnknownSchemaNodes
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.EffectiveStatementEquivalent
asEffectiveStatement
-
-
-
-
Method Detail
-
getModuleName
default @NonNull String getModuleName()
Returns the name of the module to import.- Returns:
- Name of the module to import
-
getRevision
Optional<Revision> getRevision()
Returns the module revision to import. May be null.- Returns:
- Revision of module to import
-
getSemanticVersion
Optional<SemVer> getSemanticVersion()
Returns the semantic version to import.- Returns:
- Semantic version of module to import
-
getPrefix
@NonNull String getPrefix()
Returns the prefix associated with the imported module.- Returns:
- Prefix used to point to imported module
-
-