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.
    • Method Detail

      • getModuleName

        @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