public final class RefineHolderImpl extends AbstractBuilder implements RefineBuilder
addedUnknownNodes, unknownNodes| Constructor and Description |
|---|
RefineHolderImpl(String moduleName,
int line,
String name) |
| Modifier and Type | Method and Description |
|---|---|
Object |
build()
Build YANG data model node.
|
boolean |
equals(Object obj) |
String |
getDefaultStr()
Returns string representation of default value or null, if default value was not refined.
|
String |
getDescription()
Returns description of resulting schema node
as was defined by description statement.
|
Integer |
getMaxElements()
Returns number of maximum elements or NULL if maximum elements was not overriden.
|
Integer |
getMinElements()
Returns number of minimum required elements or NULL if minimum elements was not overriden.
|
org.opendaylight.yangtools.yang.model.api.MustDefinition |
getMust()
Returns
must definition associated with this builder. |
String |
getReference()
Get reference of this node.
|
org.opendaylight.yangtools.yang.model.api.Status |
getStatus()
Get status of this node.
|
String |
getTargetPathString()
Returns string representation of path to refine target, which is relative to grouping root
This string representation does not need to contain prefixes, since parent uses
element introduces elements with namespace local to parent module.
|
int |
hashCode() |
Boolean |
isConfiguration()
Get value of config statement.
|
Boolean |
isMandatory()
Returns mandatory state of node or NULL if state was not refined.
|
Boolean |
isPresence()
Returns presence state of refined container.
|
void |
setConfiguration(Boolean config)
Set config statement to the product.
|
void |
setDefaultStr(String defaultStr) |
void |
setDescription(String description)
Set description to this node.
|
void |
setMandatory(Boolean mandatory) |
void |
setMaxElements(Integer maxElements)
Sets number of maximum required elements.
|
void |
setMinElements(Integer minElements)
Sets number of minimum required elements.
|
void |
setMust(org.opendaylight.yangtools.yang.model.api.MustDefinition must)
Adds must definition to product of this builder.
|
void |
setPresence(Boolean presence) |
void |
setReference(String reference)
Set reference to this node.
|
void |
setStatus(org.opendaylight.yangtools.yang.model.api.Status status)
Set status to this node.
|
String |
toString() |
addUnknownNodeBuilder, checkNotSealed, getLine, getModuleName, getParent, getUnknownNodes, setModuleName, setParentclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLine, getModuleName, getUnknownNodespublic String getDefaultStr()
RefineBuildergetDefaultStr in interface RefineBuilderpublic void setDefaultStr(String defaultStr)
public String getDescription()
DocumentedNodeBuildergetDescription in interface DocumentedNodeBuilderpublic void setDescription(String description)
DocumentedNodeBuildersetDescription in interface DocumentedNodeBuilderpublic String getReference()
DocumentedNodeBuildergetReference in interface DocumentedNodeBuilderpublic void setReference(String reference)
DocumentedNodeBuildersetReference in interface DocumentedNodeBuilderpublic Boolean isConfiguration()
RefineBuilderisConfiguration in interface RefineBuilderpublic void setConfiguration(Boolean config)
RefineBuildersetConfiguration in interface RefineBuilderconfig - true if config true was set, false if config false was set.public Boolean isMandatory()
RefineBuilderisMandatory in interface RefineBuilderpublic void setMandatory(Boolean mandatory)
setMandatory in interface RefineBuilderpublic Boolean isPresence()
RefineBuilderisPresence in interface RefineBuilderpublic void setPresence(Boolean presence)
setPresence in interface RefineBuilderpublic org.opendaylight.yangtools.yang.model.api.MustDefinition getMust()
RefineBuildermust definition associated with this builder.getMust in interface RefineBuildermust definition associated with this builder.public void setMust(org.opendaylight.yangtools.yang.model.api.MustDefinition must)
RefineBuildersetMust in interface RefineBuildermust - must definition which should be associated with parent node.public Integer getMinElements()
RefineBuildergetMinElements in interface RefineBuilderpublic void setMinElements(Integer minElements)
RefineBuildersetMinElements in interface RefineBuilderminElements - number of minimum required elements.public Integer getMaxElements()
RefineBuildergetMaxElements in interface RefineBuilderpublic void setMaxElements(Integer maxElements)
RefineBuildersetMaxElements in interface RefineBuildermaxElements - number of maximum required elements.public org.opendaylight.yangtools.yang.model.api.Status getStatus()
DocumentedNodeBuildergetStatus in interface DocumentedNodeBuilderpublic void setStatus(org.opendaylight.yangtools.yang.model.api.Status status)
DocumentedNodeBuildersetStatus in interface DocumentedNodeBuilderpublic Object build()
Builderpublic String getTargetPathString()
RefineBuildergetTargetPathString in interface RefineBuilderCopyright © 2014. All rights reserved.