Interface NumberAndDateConstraint
-
- All Superinterfaces:
BaseConstraint
@ConsumerType public interface NumberAndDateConstraint extends BaseConstraint
Interface for date and number constraints- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.adobe.cq.forms.core.components.models.form.BaseConstraint
BaseConstraint.Type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
getMaximum()
Returns the maximum value that a user can enter in the Field.java.lang.Object
getMinimum()
Returns the minimum value that a user can enter in the Field.-
Methods inherited from interface com.adobe.cq.forms.core.components.models.form.BaseConstraint
getFormat, getType, getValidationExpression, isRequired
-
-
-
-
Method Detail
-
getMinimum
java.lang.Object getMinimum()
Returns the minimum value that a user can enter in the Field. This constraint is applicable for Fields that have type number or type string and format date (i.e. Date Fields)- Returns:
- the minimum value which could be Date serialized in ISO 8601 format or a number
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getMaximum
java.lang.Object getMaximum()
Returns the maximum value that a user can enter in the Field. This constraint is applicable for Fields that have type number or type string and format date (i.e. Date Fields)- Returns:
- the maximum value which could be Date serialized in ISO 8601 format (string) or a number
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
-