public final class ImplicitCaseSchemaNode extends Object implements CaseSchemaNode, DerivableSchemaNode
DocumentedNode.WithStatus| Constructor and Description |
|---|
ImplicitCaseSchemaNode(DataSchemaNode caseShorthandNode) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Optional<DataSchemaNode> |
findDataChildByName(QName name)
Returns the child node corresponding to the specified name.
|
Set<AugmentationSchemaNode> |
getAvailableAugmentations()
Returns augmentations targeting this element.
|
Collection<DataSchemaNode> |
getChildNodes()
Returns set of all child nodes defined within this DataNodeContainer.
|
Optional<String> |
getDescription()
Returns the value of the argument of YANG
description keyword. |
Set<GroupingDefinition> |
getGroupings()
Returns set of all groupings defined within this DataNodeContainer.
|
Optional<? extends SchemaNode> |
getOriginal()
If this node is added by uses, returns original node definition from
grouping where it was defined.
|
SchemaPath |
getPath()
Returns the schema path of the instance of the type
SchemaNode. |
QName |
getQName()
Returns QName of the instance of the type
SchemaNode. |
Optional<String> |
getReference()
Returns the value of the argument of YANG
reference keyword. |
Status |
getStatus()
Returns status of the instance of the type
SchemaNode. |
Set<TypeDefinition<?>> |
getTypeDefinitions()
Returns set of all newly defined types within this DataNodeContainer.
|
Set<UsesNode> |
getUses()
Returns grouping nodes used ny this container.
|
Optional<RevisionAwareXPath> |
getWhenCondition()
Returns when statement.
|
int |
hashCode() |
boolean |
isAddedByUses()
Deprecated.
|
boolean |
isAugmenting()
Deprecated.
|
boolean |
isConfiguration()
Returns
true if the data represents configuration data,
otherwise returns false. |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitfindDataTreeChild, findDataTreeChild, findDataTreeChild, getDataChildByNamegetUnknownSchemaNodespublic ImplicitCaseSchemaNode(DataSchemaNode caseShorthandNode)
@Deprecated public boolean isAugmenting()
CopyableNodetrue if this node was added by augmentation,
otherwise returns false.isAugmenting in interface CopyableNodetrue if this node was added by augmentation,
otherwise returns false@Deprecated public boolean isAddedByUses()
AddedByUsesAwaretrue if this node was added by uses statement,
otherwise returns false.isAddedByUses in interface AddedByUsesAwaretrue if this node was added by uses statement,
otherwise returns falsepublic boolean isConfiguration()
DataSchemaNodetrue if the data represents configuration data,
otherwise returns false.isConfiguration in interface DataSchemaNodetrue if the data represents configuration data,
otherwise returns falsepublic QName getQName()
SchemaNodeSchemaNode.getQName in interface SchemaNodepublic SchemaPath getPath()
SchemaNodeSchemaNode.getPath in interface SchemaNodepublic Optional<String> getDescription()
DocumentedNodedescription keyword.getDescription in interface DocumentedNodepublic Optional<String> getReference()
DocumentedNodereference keyword.getReference in interface DocumentedNodepublic Status getStatus()
DocumentedNode.WithStatusSchemaNode.getStatus in interface DocumentedNode.WithStatusstatus substatementpublic Set<TypeDefinition<?>> getTypeDefinitions()
DataNodeContainergetTypeDefinitions in interface DataNodeContainerpublic Collection<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 Set<GroupingDefinition> getGroupings()
DataNodeContainergetGroupings in interface DataNodeContainerpublic 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 Set<AugmentationSchemaNode> getAvailableAugmentations()
AugmentationTargetgetAvailableAugmentations in interface AugmentationTargetpublic Optional<? extends SchemaNode> getOriginal()
DerivableSchemaNodegetOriginal in interface DerivableSchemaNodepublic Optional<RevisionAwareXPath> getWhenCondition()
WhenConditionAwareIf when condition is present node defined by the parent data definition statement is only valid when the returned XPath expression conceptually evaluates to "true" for a particular instance, then the node defined by the parent data definition statement is valid; otherwise, it is not.
getWhenCondition in interface WhenConditionAwareCopyright © 2019 OpenDaylight. All rights reserved.