Interface DateConstraint
-
- All Superinterfaces:
FormatConstraint
- All Known Subinterfaces:
DatePicker,TextInput
@ConsumerType public interface DateConstraint extends FormatConstraint
A interface which specifies the different form date type constraints- Since:
- com.adobe.cq.forms.core.components.models.form 2.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.adobe.cq.forms.core.components.models.form.FormatConstraint
FormatConstraint.Format
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.DategetExclusiveMaximumDate()Returns the Maximum value (exclusive) that can be entered by the user.java.util.DategetExclusiveMinimumDate()Returns the minimum value (exclusive) that can be entered by the user.default java.lang.StringgetFormat()Returns the format of the form field as specified in the json schema specification(for example, date, binary etc)java.util.DategetMaximumDate()Returns the maximum value for the date.java.util.DategetMinimumDate()Returns the minimum value for the date.
-
-
-
Method Detail
-
getMinimumDate
java.util.Date getMinimumDate()
Returns the minimum value for the date. The constraint is applicable only for field with type date- Returns:
- minimum date
- Since:
- com.adobe.cq.forms.core.components.models.form 2.0.0
-
getMaximumDate
java.util.Date getMaximumDate()
Returns the maximum value for the date. The constraint is applicable only for field with type date- Returns:
- maximum date
- Since:
- com.adobe.cq.forms.core.components.models.form 2.0.0
-
getExclusiveMaximumDate
java.util.Date getExclusiveMaximumDate()
Returns the Maximum value (exclusive) that can be entered by the user.- Returns:
- maximum value (exclusive) for the date
- Since:
- com.adobe.cq.forms.core.components.models.form 2.0.0
-
getExclusiveMinimumDate
java.util.Date getExclusiveMinimumDate()
Returns the minimum value (exclusive) that can be entered by the user.- Returns:
- minimum value (exclusive) for the date
- Since:
- com.adobe.cq.forms.core.components.models.form 2.0.0
-
getFormat
default java.lang.String getFormat()
Description copied from interface:FormatConstraintReturns the format of the form field as specified in the json schema specification(for example, date, binary etc)- Specified by:
getFormatin interfaceFormatConstraint- Returns:
- the format of the form field
-
-