Class WebFormPersistFile

  • All Implemented Interfaces:
    Serializable

    public final class WebFormPersistFile
    extends Object
    implements Serializable
    POJO representing the different types of form persist files.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    See Also:
    Serialized Form
    • Method Detail

      • getData

        public Object getData()
      • getFileName

        public String getFileName()
        Returns:
        The file name of the persist file.
      • getPersistJson

        public String getPersistJson()
        Returns:
        The persist JSON object, when isPersistJson().
      • getType

        public String getType()
      • isAdobeLivecycle

        public boolean isAdobeLivecycle()
        Returns:
        Whether this is a livecycle file.
      • isPersistJson

        public boolean isPersistJson()
        Returns:
        Whether this is a persist JSON file.
      • empty

        public static WebFormPersistFile empty()
        Returns:
        A new empty persist file with no type.
      • forAdobeLivecycle

        public static WebFormPersistFile forAdobeLivecycle​(String fileName,
                                                           String livecycleXml)
        Parameters:
        fileName - File name of the livecycle persist file.
        livecycleXml - Livecycle XML string.
        Returns:
        A new livecycle web form persist file.
      • forPersistJson

        public static WebFormPersistFile forPersistJson​(String fileName,
                                                        String persistJson)
        Parameters:
        fileName - File name of the persist JSON file.
        persistJson - Livecycle XML string.
        Returns:
        A new persist JSON web form persist file.