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, wait
findDataTreeChild, findDataTreeChild, findDataTreeChild, getDataChildByName
getUnknownSchemaNodes
public ImplicitCaseSchemaNode(DataSchemaNode caseShorthandNode)
@Deprecated public boolean isAugmenting()
CopyableNode
true
if this node was added by augmentation,
otherwise returns false
.isAugmenting
in interface CopyableNode
true
if this node was added by augmentation,
otherwise returns false
@Deprecated public boolean isAddedByUses()
AddedByUsesAware
true
if this node was added by uses statement,
otherwise returns false
.isAddedByUses
in interface AddedByUsesAware
true
if this node was added by uses statement,
otherwise returns false
public boolean isConfiguration()
DataSchemaNode
true
if the data represents configuration data,
otherwise returns false
.isConfiguration
in interface DataSchemaNode
true
if the data represents configuration data,
otherwise returns false
public QName getQName()
SchemaNode
SchemaNode
.getQName
in interface SchemaNode
public SchemaPath getPath()
SchemaNode
SchemaNode
.getPath
in interface SchemaNode
public Optional<String> getDescription()
DocumentedNode
description
keyword.getDescription
in interface DocumentedNode
public Optional<String> getReference()
DocumentedNode
reference
keyword.getReference
in interface DocumentedNode
public Status getStatus()
DocumentedNode.WithStatus
SchemaNode
.getStatus
in interface DocumentedNode.WithStatus
status
substatementpublic Set<TypeDefinition<?>> getTypeDefinitions()
DataNodeContainer
getTypeDefinitions
in interface DataNodeContainer
public Collection<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 Set<GroupingDefinition> getGroupings()
DataNodeContainer
getGroupings
in interface DataNodeContainer
public 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 Set<AugmentationSchemaNode> getAvailableAugmentations()
AugmentationTarget
getAvailableAugmentations
in interface AugmentationTarget
public Optional<? extends SchemaNode> getOriginal()
DerivableSchemaNode
getOriginal
in interface DerivableSchemaNode
public Optional<RevisionAwareXPath> getWhenCondition()
WhenConditionAware
If 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 WhenConditionAware
Copyright © 2019 OpenDaylight. All rights reserved.