public final class ChoiceBuilder extends AbstractSchemaNodeBuilder implements DataSchemaNodeBuilder, AugmentationTargetBuilder
description, qname, reference, schemaPath, statusaddedUnknownNodes, unknownNodes| Constructor and Description |
|---|
ChoiceBuilder(String moduleName,
int line,
org.opendaylight.yangtools.yang.common.QName qname,
org.opendaylight.yangtools.yang.model.api.SchemaPath path) |
ChoiceBuilder(String moduleName,
int line,
org.opendaylight.yangtools.yang.common.QName qname,
org.opendaylight.yangtools.yang.model.api.SchemaPath path,
org.opendaylight.yangtools.yang.model.api.ChoiceNode base) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAugmentation(AugmentationSchemaBuilder augment)
Add augment, which points to this node.
|
void |
addCase(DataSchemaNodeBuilder caseNode)
Add case node to this choice.
|
org.opendaylight.yangtools.yang.model.api.ChoiceNode |
build()
Build DataSchemaNode object from this builder.
|
boolean |
equals(Object obj) |
List<AugmentationSchemaBuilder> |
getAugmentationBuilders() |
ChoiceCaseBuilder |
getCaseNodeByName(String caseName)
Get case by name.
|
Set<ChoiceCaseBuilder> |
getCases() |
ConstraintsBuilder |
getConstraints()
Get constraints of this builder.
|
String |
getDefaultCase() |
ChoiceBuilder |
getOriginal()
Get original builder definition from grouping, where it is defined.
|
int |
hashCode() |
boolean |
isAddedByUses() |
boolean |
isAugmenting()
Returns true if product of this builder is added by augmentation.
|
boolean |
isConfiguration()
Get value of config statement.
|
void |
setAddedByUses(boolean addedByUses)
Set if this node is added by uses.
|
void |
setAugmenting(boolean augmenting)
Set if the product of the builder node is introduced by augmentation.
|
void |
setConfiguration(boolean configuration)
Set config statement to the product.
|
void |
setDefaultCase(String defaultCase) |
void |
setOriginal(SchemaNodeBuilder builder)
Set original builder definition from grouping
|
String |
toString() |
getDescription, getPath, getQName, getReference, getStatus, setDescription, setPath, setReference, setStatusaddUnknownNodeBuilder, checkNotSealed, getLine, getModuleName, getParent, getUnknownNodes, setModuleName, setParentclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPath, getQName, setPathgetDescription, getReference, getStatus, setDescription, setReference, setStatusaddUnknownNodeBuilder, getLine, getModuleName, getParent, getUnknownNodes, setModuleName, setParentpublic ChoiceBuilder(String moduleName, int line, org.opendaylight.yangtools.yang.common.QName qname, org.opendaylight.yangtools.yang.model.api.SchemaPath path)
public ChoiceBuilder(String moduleName, int line, org.opendaylight.yangtools.yang.common.QName qname, org.opendaylight.yangtools.yang.model.api.SchemaPath path, org.opendaylight.yangtools.yang.model.api.ChoiceNode base)
public org.opendaylight.yangtools.yang.model.api.ChoiceNode build()
DataSchemaNodeBuilderbuild in interface Builderbuild in interface DataSchemaNodeBuilderbuild in interface SchemaNodeBuilderDataSchemaNode based on the state present in this builder.public Set<ChoiceCaseBuilder> getCases()
public ChoiceCaseBuilder getCaseNodeByName(String caseName)
caseName - name of case to searchpublic void addCase(DataSchemaNodeBuilder caseNode)
caseNode - case nodepublic boolean isAugmenting()
DataSchemaNodeBuilderisAugmenting in interface DataSchemaNodeBuilderpublic void setAugmenting(boolean augmenting)
DataSchemaNodeBuildersetAugmenting in interface DataSchemaNodeBuilderpublic boolean isAddedByUses()
isAddedByUses in interface GroupingMemberpublic void setAddedByUses(boolean addedByUses)
GroupingMembersetAddedByUses in interface GroupingMemberpublic ChoiceBuilder getOriginal()
DataSchemaNodeBuildergetOriginal in interface DataSchemaNodeBuilderpublic void setOriginal(SchemaNodeBuilder builder)
DataSchemaNodeBuildersetOriginal in interface DataSchemaNodeBuilderbuilder - original builder definition from groupingpublic boolean isConfiguration()
DataSchemaNodeBuilderisConfiguration in interface DataSchemaNodeBuilderpublic void setConfiguration(boolean configuration)
DataSchemaNodeBuildersetConfiguration in interface DataSchemaNodeBuilderconfiguration - true if config true was set, false if config false was set.public ConstraintsBuilder getConstraints()
DataSchemaNodeBuildergetConstraints in interface DataSchemaNodeBuilderpublic void addAugmentation(AugmentationSchemaBuilder augment)
AugmentationTargetBuilderaddAugmentation in interface AugmentationTargetBuilderaugment - augment which points to this nodepublic List<AugmentationSchemaBuilder> getAugmentationBuilders()
public String getDefaultCase()
public void setDefaultCase(String defaultCase)
public int hashCode()
hashCode in class AbstractSchemaNodeBuilderpublic boolean equals(Object obj)
equals in class AbstractSchemaNodeBuilderCopyright © 2014. All rights reserved.