java.lang.Object
java.lang.Enum<DocumentType>
fr.paris.lutece.plugins.forms.modules.documentproducer.business.producerconfig.DocumentType
All Implemented Interfaces:
Serializable, Comparable<DocumentType>, Constable

public enum DocumentType extends Enum<DocumentType>
This enum represents several ususal document type
  • Enum Constant Details

  • Method Details

    • values

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

      public static DocumentType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getExtension

      public String getExtension()
      Get the file extennsion of a document type
      Returns:
      the extension of a document type
    • toString

      public String toString()
      Overrides:
      toString in class Enum<DocumentType>
    • getFromString

      public DocumentType getFromString(String strDocType)
      Get document type from string doc type
      Parameters:
      strDocType -
      Returns:
      the DocumentType obj
    • toReferenceList

      public static fr.paris.lutece.util.ReferenceList toReferenceList()
      Get a reference list of the enum
      Returns:
      a reference list of the enum