Interface FileConstraint
-
- All Known Subinterfaces:
FileInput
@ProviderType public interface FileConstraintInterface for constraints applicable to file attachments- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<java.lang.String>DEFAULT_ACCEPTstatic java.lang.StringDEFAULT_MAX_FILE_SIZE
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.List<java.lang.String>getAccept()Returns the list of standard IANA media types which field can accept.default java.lang.StringgetFormat()The constraint is applicable for file attachment field.default java.lang.StringgetMaxFileSize()Returns the Maximum file size (in IEC specification) that a field can accept.
-
-
-
Field Detail
-
DEFAULT_MAX_FILE_SIZE
static final java.lang.String DEFAULT_MAX_FILE_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_ACCEPT
static final java.util.List<java.lang.String> DEFAULT_ACCEPT
-
-
Method Detail
-
getMaxFileSize
default java.lang.String getMaxFileSize()
Returns the Maximum file size (in IEC specification) that a field can accept. The constraint is applicable for file attachment field- Returns:
- the maximum file size
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getAccept
default java.util.List<java.lang.String> getAccept()
Returns the list of standard IANA media types which field can accept. The constraint is applicable for file attachment field- Returns:
- the list of standard IANA media types
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getFormat
default java.lang.String getFormat()
The constraint is applicable for file attachment field. If the type isString, the format will always bedata-url.- Since:
- com.adobe.cq.forms.core.components.models.form 5.7.4
-
-