Interface StringConstraint

  • All Superinterfaces:
    BaseConstraint

    @ConsumerType
    public interface StringConstraint
    extends BaseConstraint
    A interface which specifies the different form string type constraints
    Since:
    com.adobe.cq.forms.core.components.models.form 0.0.1
    • Method Detail

      • getMinLength

        java.lang.Integer getMinLength()
        Returns the minimum length of the data. The constraint is applicable only for field with type string
        Returns:
        minimum length of the data
        Since:
        com.adobe.cq.forms.core.components.models.form 0.0.1
      • getMaxLength

        java.lang.Integer getMaxLength()
        Returns the maximum length of the data. The constraint is applicable only for field with type string
        Returns:
        maximum length of the data
        Since:
        com.adobe.cq.forms.core.components.models.form 0.0.1
      • getPattern

        default java.lang.String getPattern()
        As specified in the JSON Schema specification, the regex against which the value of the field should be tested with. Returns the regex. The constraint is applicable only for field with type string
        Returns:
        string represented as pattern
        Since:
        com.adobe.cq.forms.core.components.models.form 0.0.1