Interface ModuleLike
- All Superinterfaces:
DataNodeContainer
,DocumentedNode
,Immutable
,NotificationNodeContainer
,QNameModuleAware
- All Known Implementing Classes:
AbstractEffectiveModule
@Beta
public interface ModuleLike
extends DataNodeContainer, DocumentedNode, Immutable, NotificationNodeContainer, QNameModuleAware
This interface contains common methods for getting the schema contents from a YANG module or submodule.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
DocumentedNode.WithStatus
-
Method Summary
Modifier and TypeMethodDescriptionCollection
<? extends @NonNull AugmentationSchemaNode> ReturnsAugmentationSchemaNode
instances which contain data fromaugment
statements defined in the module.Returns the module contact.Collection
<? extends @NonNull Deviation> ReturnsDeviation
instances which contain data fromdeviation
statements defined in the module.Collection
<? extends @NonNull ExtensionDefinition> ReturnsExtensionDefinition
instances which contain data fromextension
statements defined in the module.Collection
<? extends @NonNull FeatureDefinition> ReturnsFeatureDefinition
instances which contain data fromfeature
statements defined in the module.Collection
<? extends @NonNull IdentitySchemaNode> ReturnsIdentitySchemaNode
instances which contain data fromidentity
statements defined in the module.Collection
<? extends @NonNull ModuleImport> Returns imports which represents YANG modules which are imported to this module viaimport
statement.getName()
Returns the name of the module which is specified as argument of YANGmodule
statement.Returns the module organization.Returns the prefix of the module.Collection
<? extends @NonNull RpcDefinition> getRpcs()
ReturnsRpcDefinition
instances which contain data fromrpc
statements defined in the module.Collection
<? extends @NonNull Submodule> Returns the YANG version.Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DataNodeContainer
dataChildByName, 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
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.QNameModuleAware
getNamespace, getQNameModule, getRevision
-
Method Details
-
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
-
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
Returns the module organization.- Returns:
- string with the name of the organization specified in the module as the argument of YANG
organization
statement
-
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
Collection<? extends @NonNull 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.
-
getSubmodules
Collection<? extends @NonNull Submodule> getSubmodules() -
getFeatures
Collection<? extends @NonNull 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
Collection<? extends @NonNull 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
Collection<? extends @NonNull 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
Collection<? extends @NonNull Deviation> getDeviations()ReturnsDeviation
instances which contain data fromdeviation
statements defined in the module.- Returns:
- set of the deviation instances
-
getIdentities
Collection<? extends @NonNull 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
Collection<? extends @NonNull 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
-