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, wait
isMandatory
public static EmptyConstraintDefinition create(boolean mandatory)
public final RevisionAwareXPath getWhenCondition()
ConstraintDefinition
when
YANG substatement has to be present. If XPath
expression is evaluated as true then the data node has to be present.getWhenCondition
in interface ConstraintDefinition
public final Set<MustDefinition> getMustConstraints()
ConstraintDefinition
must
YANG
substatement has to match.getMustConstraints
in interface ConstraintDefinition
MustDefinition
(XPath) instances which
represents the concrete data constraintspublic final Integer getMinElements()
ConstraintDefinition
The returning value equals to value of the argument of the min-elements YANG substatement. It is used with YANG statements leaf-list, list, deviate.
getMinElements
in interface ConstraintDefinition
public final Integer getMaxElements()
ConstraintDefinition
The returning value equals to value of the argument of the max-elements YANG substatement. It is used with YANG statements leaf-list, list, deviate.
getMaxElements
in interface ConstraintDefinition
Copyright © 2018 OpenDaylight. All rights reserved.