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>ReturnsAugmentationSchemaNodeinstances which contain data fromaugmentstatements defined in the module.Returns the module contact.Collection<? extends @NonNull Deviation>ReturnsDeviationinstances which contain data fromdeviationstatements defined in the module.Collection<? extends @NonNull ExtensionDefinition>ReturnsExtensionDefinitioninstances which contain data fromextensionstatements defined in the module.Collection<? extends @NonNull FeatureDefinition>ReturnsFeatureDefinitioninstances which contain data fromfeaturestatements defined in the module.Collection<? extends @NonNull IdentitySchemaNode>ReturnsIdentitySchemaNodeinstances which contain data fromidentitystatements defined in the module.Collection<? extends @NonNull ModuleImport>Returns imports which represents YANG modules which are imported to this module viaimportstatement.getName()Returns the name of the module which is specified as argument of YANGmodulestatement.Returns the module organization.Returns the prefix of the module.Collection<? extends @NonNull RpcDefinition>getRpcs()ReturnsRpcDefinitioninstances which contain data fromrpcstatements 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, getUsesMethods inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
getDescription, getReference, getUnknownSchemaNodesMethods inherited from interface org.opendaylight.yangtools.yang.model.api.NotificationNodeContainer
findNotification, getNotificationsMethods 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 YANGmodulestatement.- 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
prefixstatement
-
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
organizationstatement
-
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
contactstatement
-
getImports
Collection<? extends @NonNull ModuleImport> getImports()Returns imports which represents YANG modules which are imported to this module viaimportstatement.- Returns:
- set of module imports which are specified in the module as the argument of YANG
importstatements.
-
getSubmodules
Collection<? extends @NonNull Submodule> getSubmodules() -
getFeatures
Collection<? extends @NonNull FeatureDefinition> getFeatures()ReturnsFeatureDefinitioninstances which contain data fromfeaturestatements 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
featurestatements.
-
getAugmentations
Collection<? extends @NonNull AugmentationSchemaNode> getAugmentations()ReturnsAugmentationSchemaNodeinstances which contain data fromaugmentstatements defined in the module.- Returns:
- set of the augmentation schema instances which are specified in the module as YANG
augmentstatement and are lexicographically ordered
-
getRpcs
Collection<? extends @NonNull RpcDefinition> getRpcs()ReturnsRpcDefinitioninstances which contain data fromrpcstatements defined in the module.- Returns:
- set of the RPC definition instances which are specified in the module as YANG
rpcstatements and are lexicographicaly ordered
-
getDeviations
Collection<? extends @NonNull Deviation> getDeviations()ReturnsDeviationinstances which contain data fromdeviationstatements defined in the module.- Returns:
- set of the deviation instances
-
getIdentities
Collection<? extends @NonNull IdentitySchemaNode> getIdentities()ReturnsIdentitySchemaNodeinstances which contain data fromidentitystatements defined in the module.- Returns:
- set of identity schema node instances which are specified in the module as YANG
identitystatements and are lexicographically ordered
-
getExtensionSchemaNodes
Collection<? extends @NonNull ExtensionDefinition> getExtensionSchemaNodes()ReturnsExtensionDefinitioninstances which contain data fromextensionstatements defined in the module.- Returns:
- set of extension definition instances which are specified in the module as YANG
extensionstatements and are lexicographically ordered
-