public abstract class EmptyConstraintDefinition extends Object implements ConstraintDefinition
| Modifier and Type | Method and Description |
|---|---|
static EmptyConstraintDefinition |
create(boolean mandatory) |
boolean |
equals(Object obj) |
Integer |
getMaxElements()
Returns the maximum admissible number of data elements for node where
this constraint is specified.
|
Integer |
getMinElements()
Returns the minimum required number of data elements for node where this
constraint is specified.
|
Set<MustDefinition> |
getMustConstraints()
Specifies the rules which the node which contains
must YANG
substatement has to match. |
RevisionAwareXPath |
getWhenCondition()
Specifies the condition when the data node which contains
when YANG substatement has to be present. |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitisMandatorypublic static EmptyConstraintDefinition create(boolean mandatory)
public final RevisionAwareXPath getWhenCondition()
ConstraintDefinitionwhen YANG substatement has to be present. If XPath
expression is evaluated as true then the data node has to be present.getWhenCondition in interface ConstraintDefinitionpublic final Set<MustDefinition> getMustConstraints()
ConstraintDefinitionmust YANG
substatement has to match.getMustConstraints in interface ConstraintDefinitionMustDefinition (XPath) instances which
represents the concrete data constraintspublic final Integer getMinElements()
ConstraintDefinitiongetMinElements in interface ConstraintDefinitionpublic final Integer getMaxElements()
ConstraintDefinitiongetMaxElements in interface ConstraintDefinitionCopyright © 2018 OpenDaylight. All rights reserved.