@Immutable public interface Module extends DataNodeContainer, DocumentedNode, NotificationNodeContainer, NamespaceRevisionAware
module
module_name{
yang-version
"1";
namespace
"urn:module:namespace";
prefix
"prefix";
description
"description test";
reference
"reference test";
organization
"John Doe, john.doe@email.com";
contact
"http://www.opendaylight.org/";
feature
feature-test{
description "description of some feature";
}
notification
notification-test;
rpc
rpc-test;
identity
identity-test;
extension
extension-test;
revision
2011-08-27 {
import
other_module {
prefix "other_module_prefix"
revision-date 2011-08-27
}
container cont {
}
augment
"/cont" { ;
}
}
DocumentedNode.WithStatus
Modifier and Type | Method and Description |
---|---|
Set<AugmentationSchemaNode> |
getAugmentations()
Returns
AugmentationSchema instances which contain data from
augment statements defined in the module. |
Optional<String> |
getContact()
Returns the module contact.
|
Set<Deviation> |
getDeviations()
Returns
Deviation instances which contain data from
deviation statements defined in the module. |
List<ExtensionDefinition> |
getExtensionSchemaNodes()
Returns
ExtensionDefinition instances which contain data
from extension statements defined in the module. |
Set<FeatureDefinition> |
getFeatures()
Returns
FeatureDefinition instances which contain data from
feature statements defined in the module. |
Set<IdentitySchemaNode> |
getIdentities()
Returns
IdentitySchemaNode instances which contain data from
identity statements defined in the module. |
Set<ModuleImport> |
getImports()
Returns imports which represents YANG modules which are imported to this
module via import statement.
|
String |
getName()
Returns the name of the module which is specified as argument of YANG
module keyword. |
default URI |
getNamespace()
Returns the namespace of the module which is specified as argument of
YANG
namespace
keyword. |
Optional<String> |
getOrganization()
Returns the module organization.
|
String |
getPrefix()
Returns the prefix of the module.
|
QNameModule |
getQNameModule()
Returns a
QNameModule , which contains the namespace and
the revision of the module. |
default Optional<Revision> |
getRevision()
Returns the revision date for the module.
|
Set<RpcDefinition> |
getRpcs()
Returns
RpcDefinition instances which contain data from
rpc statements defined in the module. |
Optional<SemVer> |
getSemanticVersion()
Returns the semantic version of yang module.
|
Set<Module> |
getSubmodules() |
YangVersion |
getYangVersion()
Returns the YANG version.
|
findDataChildByName, findDataTreeChild, findDataTreeChild, findDataTreeChild, getChildNodes, getDataChildByName, getGroupings, getTypeDefinitions, getUses
getDescription, getReference, getUnknownSchemaNodes
getNotifications
String getName()
module
keyword.QNameModule getQNameModule()
QNameModule
, which contains the namespace and
the revision of the module.default URI getNamespace()
namespace
keyword. If you need both namespace and revision, please consider using
getQNameModule()
.getNamespace
in interface NamespaceRevisionAware
default Optional<Revision> getRevision()
getQNameModule()
.getRevision
in interface NamespaceRevisionAware
revison
keywordOptional<SemVer> getSemanticVersion()
If the semantic version is not specified, default semantic version of module is returned.
String getPrefix()
prefix
keywordYangVersion getYangVersion()
Optional<String> getOrganization()
organization
keywordOptional<String> getContact()
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.
contact
keywordSet<ModuleImport> getImports()
import
keywords.Set<FeatureDefinition> getFeatures()
FeatureDefinition
instances which contain data from
feature statements defined in the module.
The feature is used to define a mechanism by which portions of the schema are marked as conditional.
feature
keywords.Set<AugmentationSchemaNode> getAugmentations()
AugmentationSchema
instances which contain data from
augment statements defined in the module.augment
keyword and are
lexicographically orderedSet<RpcDefinition> getRpcs()
RpcDefinition
instances which contain data from
rpc statements defined in the module.rpc
keywords and are lexicographicaly
orderedSet<Deviation> getDeviations()
Deviation
instances which contain data from
deviation statements defined in the module.Set<IdentitySchemaNode> getIdentities()
IdentitySchemaNode
instances which contain data from
identity statements defined in the module.identity
keywords and are
lexicographically orderedList<ExtensionDefinition> getExtensionSchemaNodes()
ExtensionDefinition
instances which contain data
from extension statements defined in the module.extension
keyword and are
lexicographically orderedCopyright © 2019 OpenDaylight. All rights reserved.