Enum EFormPersistFile

java.lang.Object
java.lang.Enum<EFormPersistFile>
de.xima.fc.workflow.converter.EFormPersistFile
All Implemented Interfaces:
Serializable, Comparable<EFormPersistFile>

public enum EFormPersistFile extends Enum<EFormPersistFile>
Enumeration of the different form persist files.
Since:
7.0.0
Author:
XIMA MEDIA GmbH
  • Enum Constant Details

    • ENTIRE_FORM

      public static final EFormPersistFile ENTIRE_FORM
      Export of the entire form
    • FORM_DESIGNER_LIVECYCLE

      public static final EFormPersistFile FORM_DESIGNER_LIVECYCLE
      Adobe live cycle.
    • FORM_DESIGNER_PERSIST

      public static final EFormPersistFile FORM_DESIGNER_PERSIST
      Form designer persist file.
    • PDF_ACRO_FORM

      public static final EFormPersistFile PDF_ACRO_FORM
      A PDF document with form fields that need to be converted to a web form.
      Since:
      7.2.0
    • WORKFLOW_DESIGNER

      public static final EFormPersistFile WORKFLOW_DESIGNER
      Workflow designer persist file.
  • Method Details

    • values

      public static EFormPersistFile[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static EFormPersistFile 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
    • computeScore

      public abstract int computeScore(GenericFormPersistFile file)
      Parameters:
      file - A file to process.
      Returns:
      A score that indicates how likely the given file is of this type. Higher score means more likey, 0 is most unlikely.
    • computeScoreOrZero

      public final int computeScoreOrZero(GenericFormPersistFile file)
      Parameters:
      file - A file to process.
      Returns:
      A score that indicates how likely the given file is of this type, or 0 when an error occurs while compute the score. Higher score means more likely, 0 is most unlikely.
    • determineType

      public static Optional<EFormPersistFile> determineType(GenericFormPersistFile file)
      Parameters:
      file - File to process.
      Returns:
      The most likely type for the file, empty if not a form persist file.