null
value.
*/
public interface ConstraintDefinition {
/**
* Specifies the condition when the data node which contains
* when
YANG substatement has to be present. If XPath
* expression is evaluated as true then the data node has to be present.
*
* @return XPath expression.
*/
RevisionAwareXPath getWhenCondition();
/**
* Specifies the rules which the node which contains must
YANG
* substatement has to match.
*
* @return set of MustDefinition
(XPath) instances which
* represents the concrete data constraints
*/
Set* Contains the value of the mandatory YANG substatement. * It is used with YANG statements leaf, choice, anyxml, deviate. * * @return boolean value: *
mandatory
YANG keyword argument =
* truemandatory
YANG keyword argument =
* false* 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. * * @return integer with minimal number of elements, or null if no minimum is defined */ @Nullable Integer getMinElements(); /** * Returns the maximum admissible number of data elements for node where * this constraint is specified. * *
* 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. * * @return integer with maximum number of elements, or null if no maximum is defined */ @Nullable Integer getMaxElements(); }