Interface ModuleImport
-
- All Superinterfaces:
DocumentedNode
public interface ModuleImport extends DocumentedNode
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 Modifier and Type Method Description String
getModuleName()
Returns the name of the module to import.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
-
-
-
-
Method Detail
-
getModuleName
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
String getPrefix()
Returns the prefix associated with the imported module.- Returns:
- Prefix used to point to imported module
-
-