public interface ChoiceSchemaNode extends DataSchemaNode, AugmentationTarget, MandatoryAware
DocumentedNode.WithStatus| Modifier and Type | Method and Description |
|---|---|
default Optional<CaseSchemaNode> |
findCase(QName qname)
Returns the concrete case according to specified Q name.
|
default List<CaseSchemaNode> |
findCaseNodes(String localname)
Returns the concrete cases according to specified name, disregarding their namespace.
|
default Optional<DataSchemaNode> |
findDataSchemaChild(QName qname)
Find a specific data schema child, if present.
|
default CaseSchemaNode |
getCaseNodeByName(QName qname)
Deprecated.
Use either
getCases().get(name) or #findCase(QName) |
SortedMap<QName,CaseSchemaNode> |
getCases()
Returns cases of choice, keyed by their
SchemaNode.getQName(). |
Optional<CaseSchemaNode> |
getDefaultCase()
Returns name of case which is in the choice specified as default.
|
isConfigurationgetPath, getQNamegetStatusgetDescription, getReference, getUnknownSchemaNodesisAugmentingisAddedByUsesgetWhenConditiongetAvailableAugmentationsisMandatorySortedMap<QName,CaseSchemaNode> getCases()
SchemaNode.getQName(). Returned map does not contain null keys
nor values.case substatement of the choice statement.default Optional<CaseSchemaNode> findCase(QName qname)
qname - QName of sought Choice Case NodeNullPointerException - if qname is null@Beta default List<CaseSchemaNode> findCaseNodes(String localname)
localname - local name of sought child as StringNullPointerException - if localname is null@Beta default Optional<DataSchemaNode> findDataSchemaChild(QName qname)
CaseSchemaNodes,
potentially recursing to nested choices.qname - QName of sought data schema nodeNullPointerException - if qname is null@Deprecated default CaseSchemaNode getCaseNodeByName(QName qname)
getCases().get(name) or #findCase(QName)qname - QName of sought Choice Case Nodenull otherwise.Optional<CaseSchemaNode> getDefaultCase()
default
substatement of choice statement.Copyright © 2019 OpenDaylight. All rights reserved.