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
-
-
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 Default Methods Modifier and Type Method Description java.lang.Integer
getMaxLength()
Returns the maximum length of the data.java.lang.Integer
getMinLength()
Returns the minimum length of the data.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.-
Methods inherited from interface com.adobe.cq.forms.core.components.models.form.BaseConstraint
getFormat, getType, getValidationExpression, isRequired
-
-
-
-
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
-
-