Interface BaseConstraint
-
- All Known Subinterfaces:
Captcha,CheckBox,CheckBoxGroup,Container,DatePicker,DropDown,Field,FileInput,FormContainer,Fragment,HCaptcha,NumberInput,Panel,RadioButton,StringConstraint,Switch,TermsAndConditions,TextInput,Turnstile
- All Known Implementing Classes:
AbstractBaseImpl,AbstractCaptchaImpl,AbstractCaptchaImplV2,AbstractCheckboxImpl,AbstractContainerImpl,AbstractFieldImpl,AbstractOptionsFieldImpl
@ProviderType public interface BaseConstraintA base interface which specifies the different form field constraints- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classBaseConstraint.TypeDefines the data type.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default BaseConstraint.TypegetType()Returns the data type of the form field.default @Nullable java.lang.StringgetValidationExpression()Returns an expression returning boolean value indicating whether the value in the field is valid or notdefault @Nullable java.lang.BooleanisRequired()Returnstrueif field is required, otherwisefalse.
-
-
-
Method Detail
-
isRequired
@Nullable default @Nullable java.lang.Boolean isRequired()
Returnstrueif field is required, otherwisefalse.- Returns:
trueif field is required, otherwisefalse- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getType
default BaseConstraint.Type getType()
Returns the data type of the form field.- Returns:
- the data type of the form field
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getValidationExpression
@Nullable default @Nullable java.lang.String getValidationExpression()
Returns an expression returning boolean value indicating whether the value in the field is valid or not- Returns:
- an expression
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
-