Interface Module
-
- All Superinterfaces:
DataNodeContainer
,DocumentedNode
,Immutable
,MutationBehaviour<Immutable>
,NamespaceRevisionAware
,NotificationNodeContainer
- All Known Implementing Classes:
AbstractEffectiveModule
public interface Module extends DataNodeContainer, DocumentedNode, Immutable, NotificationNodeContainer, NamespaceRevisionAware
This interface contains the methods for getting the data from the YANG module.
-
-
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 Set<AugmentationSchemaNode>
getAugmentations()
ReturnsAugmentationSchemaNode
instances which contain data fromaugment
statements defined in the module.Optional<String>
getContact()
Returns the module contact.Set<Deviation>
getDeviations()
ReturnsDeviation
instances which contain data fromdeviation
statements defined in the module.List<ExtensionDefinition>
getExtensionSchemaNodes()
ReturnsExtensionDefinition
instances which contain data fromextension
statements defined in the module.Set<FeatureDefinition>
getFeatures()
ReturnsFeatureDefinition
instances which contain data fromfeature
statements defined in the module.Set<IdentitySchemaNode>
getIdentities()
ReturnsIdentitySchemaNode
instances which contain data fromidentity
statements defined in the module.Set<ModuleImport>
getImports()
Returns imports which represents YANG modules which are imported to this module viaimport
statement.String
getName()
Returns the name of the module which is specified as argument of YANGmodule
statement.default URI
getNamespace()
Returns the namespace of the module which is specified as argument of YANGnamespace
keyword.Optional<String>
getOrganization()
Returns the module organization.String
getPrefix()
Returns the prefix of the module.QNameModule
getQNameModule()
Returns aQNameModule
, which contains the namespace and the revision of the module.default Optional<Revision>
getRevision()
Returns the revision date for the module.Set<RpcDefinition>
getRpcs()
ReturnsRpcDefinition
instances which contain data fromrpc
statements defined in the module.Optional<SemVer>
getSemanticVersion()
Returns the semantic version of YANG module.Set<Module>
getSubmodules()
YangVersion
getYangVersion()
Returns the YANG version.-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DataNodeContainer
findDataChildByName, findDataChildByName, findDataTreeChild, findDataTreeChild, findDataTreeChild, getChildNodes, getDataChildByName, getGroupings, getTypeDefinitions, getUses
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
getDescription, getReference, getUnknownSchemaNodes
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.NotificationNodeContainer
findNotification, getNotifications
-
-
-
-
Method Detail
-
getName
String getName()
Returns the name of the module which is specified as argument of YANGmodule
statement.- Returns:
- string with the name of the module
-
getQNameModule
QNameModule getQNameModule()
Returns aQNameModule
, which contains the namespace and the revision of the module.- Returns:
- QNameModule identifier.
-
getNamespace
default URI getNamespace()
Returns the namespace of the module which is specified as argument of YANGnamespace
keyword. If you need both namespace and revision, please consider usinggetQNameModule()
.- Specified by:
getNamespace
in interfaceNamespaceRevisionAware
- Returns:
- URI format of the namespace of the module
-
getRevision
default Optional<Revision> getRevision()
Returns the revision date for the module. If you need both namespace and revision, please consider usinggetQNameModule()
.- Specified by:
getRevision
in interfaceNamespaceRevisionAware
- Returns:
- date of the module revision which is specified as argument of YANG
revison
statement
-
getSemanticVersion
Optional<SemVer> getSemanticVersion()
Returns the semantic version of YANG module. If the semantic version is not specified, default semantic version of module is returned.- Returns:
- SemVer semantic version of YANG module which is specified as argument of
(urn:opendaylight:yang:extension:semantic-version?revision=2016-02-02)semantic-version
statement
-
getPrefix
String getPrefix()
Returns the prefix of the module.- Returns:
- string with the module prefix which is specified as argument of YANG
prefix
statement
-
getYangVersion
YangVersion getYangVersion()
Returns the YANG version.- Returns:
- YANG version of this module.
-
getOrganization
Optional<String> getOrganization()
Returns the module organization.- Returns:
- string with the name of the organization specified in the module as the argument of YANG
organization
statement
-
getContact
Optional<String> getContact()
Returns the module contact.The contact represents the person or persons to whom technical queries concerning this module should be sent, such as their name, postal address, telephone number, and electronic mail address.
- Returns:
- string with the contact data specified in the module as the argument of YANG
contact
statement
-
getImports
Set<ModuleImport> getImports()
Returns imports which represents YANG modules which are imported to this module viaimport
statement.- Returns:
- set of module imports which are specified in the module as the argument of YANG
import
statements.
-
getFeatures
Set<FeatureDefinition> getFeatures()
ReturnsFeatureDefinition
instances which contain data fromfeature
statements defined in the module.The feature is used to define a mechanism by which portions of the schema are marked as conditional.
- Returns:
- feature statements in lexicographical order which are specified in the module as the argument of YANG
feature
statements.
-
getAugmentations
Set<AugmentationSchemaNode> getAugmentations()
ReturnsAugmentationSchemaNode
instances which contain data fromaugment
statements defined in the module.- Returns:
- set of the augmentation schema instances which are specified in the module as YANG
augment
statement and are lexicographically ordered
-
getRpcs
Set<RpcDefinition> getRpcs()
ReturnsRpcDefinition
instances which contain data fromrpc
statements defined in the module.- Returns:
- set of the RPC definition instances which are specified in the module as YANG
rpc
statements and are lexicographicaly ordered
-
getDeviations
Set<Deviation> getDeviations()
ReturnsDeviation
instances which contain data fromdeviation
statements defined in the module.- Returns:
- set of the deviation instances
-
getIdentities
Set<IdentitySchemaNode> getIdentities()
ReturnsIdentitySchemaNode
instances which contain data fromidentity
statements defined in the module.- Returns:
- set of identity schema node instances which are specified in the module as YANG
identity
statements and are lexicographically ordered
-
getExtensionSchemaNodes
List<ExtensionDefinition> getExtensionSchemaNodes()
ReturnsExtensionDefinition
instances which contain data fromextension
statements defined in the module.- Returns:
- set of extension definition instances which are specified in the module as YANG
extension
statements and are lexicographically ordered
-
-