@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() |
getNamespaceContents
getDescription, getReference, getStatus
argument, getDeclared, getStatementSource, statementDefinition
allSubstatementsOfType, effectiveSubstatements, firstEffective, firstEffectiveSubstatementOfType, firstSchemaNode, firstSubstatementOfType, firstSubstatementOfType, get, getAll, initSubstatements
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getQNameModule
findDataTreeChild, findDataTreeChild, findDataTreeChild, getDataChildByName
getDescription, getReference
findAll, findFirstEffectiveSubstatement, findFirstEffectiveSubstatementArgument, streamEffectiveSubstatements
protected AbstractEffectiveModule(StmtContext<String,D,? extends EffectiveStatement<String,?>> ctx)
public URI getNamespace()
Module
namespace
keyword. If you need both namespace and revision, please consider using
Module.getQNameModule()
.getNamespace
in interface Module
getNamespace
in interface NamespaceRevisionAware
public String getName()
Module
module
keyword.public Optional<Revision> getRevision()
Module
Module.getQNameModule()
.getRevision
in interface Module
getRevision
in interface NamespaceRevisionAware
revison
keywordpublic String getPrefix()
Module
public YangVersion getYangVersion()
Module
getYangVersion
in interface Module
public Optional<String> getOrganization()
Module
getOrganization
in interface Module
organization
keywordpublic Optional<String> getContact()
Module
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.
getContact
in interface Module
contact
keywordpublic Set<ModuleImport> getImports()
Module
getImports
in interface Module
import
keywords.public Set<Module> getSubmodules()
getSubmodules
in interface Module
public Set<FeatureDefinition> getFeatures()
Module
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.
getFeatures
in interface Module
feature
keywords.public Set<NotificationDefinition> getNotifications()
NotificationNodeContainer
AugmentationSchemaNode
s, GroupingDefinition
s, ListSchemaNode
s and
ContainerSchemaNode
s can also contain NotificationDefinition
s.getNotifications
in interface NotificationNodeContainer
public Set<AugmentationSchemaNode> getAugmentations()
Module
AugmentationSchema
instances which contain data from
augment statements defined in the module.getAugmentations
in interface Module
augment
keyword and are
lexicographically orderedpublic Set<RpcDefinition> getRpcs()
Module
RpcDefinition
instances which contain data from
rpc statements defined in the module.public Set<Deviation> getDeviations()
Module
Deviation
instances which contain data from
deviation statements defined in the module.getDeviations
in interface Module
public List<ExtensionDefinition> getExtensionSchemaNodes()
Module
ExtensionDefinition
instances which contain data
from extension statements defined in the module.getExtensionSchemaNodes
in interface Module
extension
keyword and are
lexicographically orderedpublic Set<IdentitySchemaNode> getIdentities()
Module
IdentitySchemaNode
instances which contain data from
identity statements defined in the module.getIdentities
in interface Module
identity
keywords and are
lexicographically orderedpublic List<UnknownSchemaNode> getUnknownSchemaNodes()
DocumentedNode
getUnknownSchemaNodes
in interface DocumentedNode
public final Set<TypeDefinition<?>> getTypeDefinitions()
DataNodeContainer
getTypeDefinitions
in interface DataNodeContainer
public final Set<DataSchemaNode> getChildNodes()
DataNodeContainer
Note that the nodes returned are NOT data nodes
, but rather DataSchemaNode
s,
hence ChoiceSchemaNode
and CaseSchemaNode
are present instead of their children. This
is consistent with schema tree
.
getChildNodes
in interface DataNodeContainer
public final Set<GroupingDefinition> getGroupings()
DataNodeContainer
getGroupings
in interface DataNodeContainer
public final Optional<DataSchemaNode> findDataChildByName(QName name)
DataNodeContainer
Note that the nodes searched are NOT data nodes
, but rather DataSchemaNode
s,
hence ChoiceSchemaNode
and CaseSchemaNode
are returned instead of their matching children.
findDataChildByName
in interface DataNodeContainer
name
- QName of childpublic Set<UsesNode> getUses()
DataNodeContainer
getUses
in interface DataNodeContainer
public Optional<SemVer> getSemanticVersion()
Module
If the semantic version is not specified, default semantic version of module is returned.
getSemanticVersion
in interface Module
public void seal()
MutableStatement
seal
in interface MutableStatement
Copyright © 2019 OpenDaylight. All rights reserved.