Interface FileConstraint

  • All Known Subinterfaces:
    FileInput

    @ProviderType
    public interface FileConstraint
    Interface for constraints applicable to file attachments
    Since:
    com.adobe.cq.forms.core.components.models.form 0.0.1
    • 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.String getFormat()
      The constraint is applicable for file attachment field.
      default java.lang.String getMaxFileSize()
      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 is String, the format will always be data-url.
        Since:
        com.adobe.cq.forms.core.components.models.form 5.7.4