public enum DocumentType extends Enum<DocumentType>
Modifier and Type | Method and Description |
---|---|
String |
getExtension()
Get the file extennsion of a document type
|
DocumentType |
getFromString(String strDocType)
Get document type from string doc type
|
static fr.paris.lutece.util.ReferenceList |
toReferenceList()
Get a reference list of the enum
|
String |
toString() |
static DocumentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DocumentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DocumentType PDF
public static final DocumentType CSV
public static DocumentType[] values()
for (DocumentType c : DocumentType.values()) System.out.println(c);
public static DocumentType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getExtension()
public String toString()
toString
in class Enum<DocumentType>
public DocumentType getFromString(String strDocType)
strDocType
- public static fr.paris.lutece.util.ReferenceList toReferenceList()
Copyright © 2020 City of Paris. All rights reserved.