Interface StringConstraint
-
- All Superinterfaces:
BaseConstraint,FormatConstraint
- All Known Subinterfaces:
TextInput
@ProviderType public interface StringConstraint extends BaseConstraint, FormatConstraint
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
-
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.lang.IntegergetMaxLength()Returns the maximum length of the data.java.lang.IntegergetMinLength()Returns the minimum length of the data.default java.lang.StringgetPattern()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
getType, getValidationExpression, isRequired
-
Methods inherited from interface com.adobe.cq.forms.core.components.models.form.FormatConstraint
getFormat
-
-
-
-
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
-
-