public interface ConstraintDefinition
null
value.Modifier and Type | Method and Description |
---|---|
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. |
boolean |
isMandatory()
Expreses if the presence of the data element for which this constraint is
specified is|isn't required.
|
RevisionAwareXPath getWhenCondition()
when
YANG substatement has to be present. If XPath
expression is evaluated as true then the data node has to be present.Set<MustDefinition> getMustConstraints()
must
YANG
substatement has to match.MustDefinition
(XPath) instances which
represents the concrete data constraintsboolean isMandatory()
Contains the value of the mandatory YANG substatement. It is used with YANG statements leaf, choice, anyxml, deviate.
mandatory
YANG keyword argument =
truemandatory
YANG keyword argument =
false@Nullable Integer getMinElements()
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.
@Nullable Integer getMaxElements()
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.
Copyright © 2018 OpenDaylight. All rights reserved.