Enum FileDataFormatType

  • All Implemented Interfaces:
    Serializable, Comparable<FileDataFormatType>

    public enum FileDataFormatType
    extends Enum<FileDataFormatType>
     <?xml version="1.0" encoding="UTF-8"?><p xmlns:p174123_="https://jakarta.ee/xml/ns/jaxb" xmlns:p235432_="urn:jaxb.jvnet.org:plugin:inheritance" xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">Specifies the format how to pass the documents to be used for merging.
                         <ul><li>pdf = A single PDF file</li><li>zip = It is a ZIP file that contains one or more PDF documents.</li><li>id = It is a semicolon separated list of document ID's referencing documents already on the server (REST API only).</li></ul></p>
     
     <?xml version="1.0" encoding="UTF-8"?><p xmlns:p174123_="https://jakarta.ee/xml/ns/jaxb" xmlns:p235432_="urn:jaxb.jvnet.org:plugin:inheritance" xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema"><b>Important:</b>
                         The "id" parameter can be used only with REST API. Each document that has been uploaded to the server via REST API has a unique ID. This ID can be used to reference the document. In the content of the "data" element, the list is passed as BASE64 content.
                         Example for two documents:<ul><li>List of documents: 3bde686a47284a2da3bfce62bd6bb8bd;f5c2b314d0c74fd0878d1f4ca310b0ad</li><li>BASE64 encoded: M2JkZTY4NmE0NzI4NGEyZGEzYmZjZTYyYmQ2YmI4YmQ7ZjVjMmIzMTRkMGM3NGZkMDg3OGQxZjRjYTMxMGIwYWQ=</li></ul></p>
     

    Java class for FileDataFormatType

    .

    The following schema fragment specifies the expected content contained within this class.

    
     <simpleType name="FileDataFormatType">
       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
         <enumeration value="pdf"/>
         <enumeration value="zip"/>
         <enumeration value="id"/>
       </restriction>
     </simpleType>
     
    • Method Detail

      • values

        public static FileDataFormatType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FileDataFormatType c : FileDataFormatType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FileDataFormatType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public String value()
        Gets the value associated to the enum constant.
        Returns:
        The value linked to the enum.
      • fromValue

        public static FileDataFormatType fromValue​(String v)
        Gets the enum associated to the value passed as parameter.
        Parameters:
        v - The value to get the enum from.
        Returns:
        The enum which corresponds to the value, if it exists.
        Throws:
        IllegalArgumentException - If no value matches in the enum declaration.