@Beta public abstract class AbstractEffectiveModule<D extends DeclaredStatement<String>> extends AbstractSchemaEffectiveDocumentedNode<String,D> implements Module, MutableStatement
DocumentedNode.WithStatus| Modifier | Constructor and Description |
|---|---|
protected |
AbstractEffectiveModule(StmtContext<String,D,? extends EffectiveStatement<String,?>> ctx) |
| Modifier and Type | Method and Description |
|---|---|
Optional<DataSchemaNode> |
findDataChildByName(QName name)
Returns the child node corresponding to the specified name.
|
Set<AugmentationSchemaNode> |
getAugmentations()
Returns
AugmentationSchema instances which contain data from
augment statements defined in the module. |
Set<DataSchemaNode> |
getChildNodes()
Returns set of all child nodes defined within this DataNodeContainer.
|
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<GroupingDefinition> |
getGroupings()
Returns set of all groupings defined within this DataNodeContainer.
|
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. |
URI |
getNamespace()
Returns the namespace of the module which is specified as argument of
YANG
namespace
keyword. |
Set<NotificationDefinition> |
getNotifications()
Return the set of notifications in this container, keyed by QName.
|
Optional<String> |
getOrganization()
Returns the module organization.
|
String |
getPrefix()
Returns the prefix of the module.
|
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() |
Set<TypeDefinition<?>> |
getTypeDefinitions()
Returns set of all newly defined types within this DataNodeContainer.
|
List<UnknownSchemaNode> |
getUnknownSchemaNodes()
Returns unknown schema nodes which belongs to this instance.
|
Set<UsesNode> |
getUses()
Returns grouping nodes used ny this container.
|
YangVersion |
getYangVersion()
Returns the YANG version.
|
void |
seal()
Finish statement and make it immutable.
|
String |
toString() |
getNamespaceContentsgetDescription, getReference, getStatusargument, getDeclared, getStatementSource, statementDefinitionallSubstatementsOfType, effectiveSubstatements, firstEffective, firstEffectiveSubstatementOfType, firstSchemaNode, firstSubstatementOfType, firstSubstatementOfType, get, getAll, initSubstatementsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetQNameModulefindDataTreeChild, findDataTreeChild, findDataTreeChild, getDataChildByNamegetDescription, getReferencefindAll, findFirstEffectiveSubstatement, findFirstEffectiveSubstatementArgument, streamEffectiveSubstatementsprotected AbstractEffectiveModule(StmtContext<String,D,? extends EffectiveStatement<String,?>> ctx)
public URI getNamespace()
Modulenamespace
keyword. If you need both namespace and revision, please consider using
Module.getQNameModule().getNamespace in interface ModulegetNamespace in interface NamespaceRevisionAwarepublic String getName()
Modulemodule keyword.public Optional<Revision> getRevision()
ModuleModule.getQNameModule().getRevision in interface ModulegetRevision in interface NamespaceRevisionAwarerevison
keywordpublic String getPrefix()
Modulepublic YangVersion getYangVersion()
ModulegetYangVersion in interface Modulepublic Optional<String> getOrganization()
ModulegetOrganization in interface Moduleorganization keywordpublic Optional<String> getContact()
ModuleThe 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.
getContact in interface Modulecontact keywordpublic Set<ModuleImport> getImports()
ModulegetImports in interface Moduleimport keywords.public Set<Module> getSubmodules()
getSubmodules in interface Modulepublic Set<FeatureDefinition> getFeatures()
ModuleFeatureDefinition 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.
getFeatures in interface Modulefeature keywords.public Set<NotificationDefinition> getNotifications()
NotificationNodeContainerAugmentationSchemaNodes, GroupingDefinitions, ListSchemaNodes and
ContainerSchemaNodes can also contain NotificationDefinitions.getNotifications in interface NotificationNodeContainerpublic Set<AugmentationSchemaNode> getAugmentations()
ModuleAugmentationSchema instances which contain data from
augment statements defined in the module.getAugmentations in interface Moduleaugment keyword and are
lexicographically orderedpublic Set<RpcDefinition> getRpcs()
ModuleRpcDefinition instances which contain data from
rpc statements defined in the module.public Set<Deviation> getDeviations()
ModuleDeviation instances which contain data from
deviation statements defined in the module.getDeviations in interface Modulepublic List<ExtensionDefinition> getExtensionSchemaNodes()
ModuleExtensionDefinition instances which contain data
from extension statements defined in the module.getExtensionSchemaNodes in interface Moduleextension keyword and are
lexicographically orderedpublic Set<IdentitySchemaNode> getIdentities()
ModuleIdentitySchemaNode instances which contain data from
identity statements defined in the module.getIdentities in interface Moduleidentity keywords and are
lexicographically orderedpublic List<UnknownSchemaNode> getUnknownSchemaNodes()
DocumentedNodegetUnknownSchemaNodes in interface DocumentedNodepublic final Set<TypeDefinition<?>> getTypeDefinitions()
DataNodeContainergetTypeDefinitions in interface DataNodeContainerpublic final Set<DataSchemaNode> getChildNodes()
DataNodeContainer
Note that the nodes returned are NOT data nodes, but rather DataSchemaNodes,
hence ChoiceSchemaNode and CaseSchemaNode are present instead of their children. This
is consistent with schema tree.
getChildNodes in interface DataNodeContainerpublic final Set<GroupingDefinition> getGroupings()
DataNodeContainergetGroupings in interface DataNodeContainerpublic final Optional<DataSchemaNode> findDataChildByName(QName name)
DataNodeContainer
Note that the nodes searched are NOT data nodes, but rather DataSchemaNodes,
hence ChoiceSchemaNode and CaseSchemaNode are returned instead of their matching children.
findDataChildByName in interface DataNodeContainername - QName of childpublic Set<UsesNode> getUses()
DataNodeContainergetUses in interface DataNodeContainerpublic Optional<SemVer> getSemanticVersion()
ModuleIf the semantic version is not specified, default semantic version of module is returned.
getSemanticVersion in interface Modulepublic void seal()
MutableStatementseal in interface MutableStatementCopyright © 2019 OpenDaylight. All rights reserved.