public interface ConstraintsBuilder
extends org.opendaylight.yangtools.concepts.Builder<org.opendaylight.yangtools.yang.model.api.ConstraintDefinition>
| Modifier and Type | Method and Description |
|---|---|
void |
addMustDefinition(org.opendaylight.yangtools.yang.model.api.MustDefinition must)
Adds must definition to product of this builder.
|
void |
addWhenCondition(String whenCondition)
Sets when condition associated with this constraints.
|
int |
getLine()
Return line on which constraints were defined.
|
Integer |
getMaxElements()
Returns number of maximum required elements.
|
Integer |
getMinElements()
Returns number of minimum required elements.
|
String |
getModuleName()
Returns module name in which constraint is defined.
|
Set<org.opendaylight.yangtools.yang.model.api.MustDefinition> |
getMustDefinitions()
Returns
must definition associated with this builder. |
String |
getWhenCondition()
Returns when condition associated with this constraints.
|
boolean |
isMandatory()
Returns true if associated node is mandatory.
|
void |
setMandatory(boolean mandatory)
Sets mandatory status of parent node
|
void |
setMaxElements(Integer maxElements)
Sets number of maximum required elements.
|
void |
setMinElements(Integer minElements)
Sets number of minimum required elements.
|
org.opendaylight.yangtools.yang.model.api.ConstraintDefinition |
toInstance()
Build constraint definition
|
String getModuleName()
int getLine()
Integer getMinElements()
void setMinElements(Integer minElements)
minElements - number of minimum required elements.Integer getMaxElements()
void setMaxElements(Integer maxElements)
maxElements - number of maximum required elements.Set<org.opendaylight.yangtools.yang.model.api.MustDefinition> getMustDefinitions()
must definition associated with this builder.must definition associated with this builder.void addMustDefinition(org.opendaylight.yangtools.yang.model.api.MustDefinition must)
must - must definition which should be associated with
parent node.String getWhenCondition()
void addWhenCondition(String whenCondition)
whenCondition - when condition.boolean isMandatory()
void setMandatory(boolean mandatory)
mandatory - org.opendaylight.yangtools.yang.model.api.ConstraintDefinition toInstance()
toInstance in interface org.opendaylight.yangtools.concepts.Builder<org.opendaylight.yangtools.yang.model.api.ConstraintDefinition>Copyright © 2014. All rights reserved.