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
    • 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: FormatConstraint
        Returns the format of the form field as specified in the json schema specification(for example, date, binary etc)
        Specified by:
        getFormat in interface FormatConstraint
        Returns:
        the format of the form field