public final class ChoiceEffectiveStatementImpl extends AbstractEffectiveDataSchemaNode<ChoiceStatement> implements ChoiceSchemaNode, DerivableSchemaNode
DocumentedNode.WithStatus
Constructor and Description |
---|
ChoiceEffectiveStatementImpl(StmtContext<QName,ChoiceStatement,EffectiveStatement<QName,ChoiceStatement>> ctx) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Set<AugmentationSchema> |
getAvailableAugmentations() |
ChoiceCaseNode |
getCaseNodeByName(QName name)
Returns the concrete case according to specified Q name.
|
ChoiceCaseNode |
getCaseNodeByName(String name)
Returns the concrete case according to specified name.
|
Set<ChoiceCaseNode> |
getCases()
Returns cases of choice.
|
String |
getDefaultCase()
Returns name of case which is in the choice specified as default
|
com.google.common.base.Optional<ChoiceSchemaNode> |
getOriginal()
If this node is added by uses, returns original node definition from
grouping where it was defined.
|
int |
hashCode() |
String |
toString() |
getConstraints, isAddedByUses, isAugmenting, isConfiguration
getPath, getQName, getUnknownSchemaNodes
getDescription, getReference, getStatus
argument, getDeclared, getStatementSource, statementDefinition
allSubstatementsOfType, effectiveSubstatements, firstEffective, firstEffectiveSubstatementOfType, firstSchemaNode, firstSubstatementOfType, firstSubstatementOfType, get, getAll
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getConstraints, isAddedByUses, isAugmenting, isConfiguration
getPath, getQName
getStatus
getDescription, getReference, getUnknownSchemaNodes
public ChoiceEffectiveStatementImpl(StmtContext<QName,ChoiceStatement,EffectiveStatement<QName,ChoiceStatement>> ctx)
public com.google.common.base.Optional<ChoiceSchemaNode> getOriginal()
DerivableSchemaNode
getOriginal
in interface DerivableSchemaNode
public Set<AugmentationSchema> getAvailableAugmentations()
getAvailableAugmentations
in interface AugmentationTarget
public Set<ChoiceCaseNode> getCases()
ChoiceSchemaNode
getCases
in interface ChoiceSchemaNode
case
substatement of the choice
statementpublic ChoiceCaseNode getCaseNodeByName(QName name)
ChoiceSchemaNode
getCaseNodeByName
in interface ChoiceSchemaNode
name
- QName of seeked Choice Case Nodenull
otherwisepublic ChoiceCaseNode getCaseNodeByName(String name)
ChoiceSchemaNode
getCaseNodeByName
in interface ChoiceSchemaNode
name
- name of seeked child as Stringnull
otherwisepublic String getDefaultCase()
ChoiceSchemaNode
getDefaultCase
in interface ChoiceSchemaNode
default
substatement of
choice
statement.Copyright © 2018 OpenDaylight. All rights reserved.