Package org.ametys.plugins.workspaces
Enum WorkspacesHelper.FileType
- java.lang.Object
-
- java.lang.Enum<WorkspacesHelper.FileType>
-
- org.ametys.plugins.workspaces.WorkspacesHelper.FileType
-
- All Implemented Interfaces:
Serializable
,Comparable<WorkspacesHelper.FileType>
- Enclosing class:
- WorkspacesHelper
public static enum WorkspacesHelper.FileType extends Enum<WorkspacesHelper.FileType>
Enumeration for file type
-
-
Constructor Summary
Constructors Modifier Constructor Description private
FileType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WorkspacesHelper.FileType
valueOf(String name)
Returns the enum constant of this type with the specified name.static WorkspacesHelper.FileType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEXT
public static final WorkspacesHelper.FileType TEXT
Text document
-
PDF
public static final WorkspacesHelper.FileType PDF
PDF document
-
SPREADSHEET
public static final WorkspacesHelper.FileType SPREADSHEET
Spreadsheet
-
PRES
public static final WorkspacesHelper.FileType PRES
Presentation
-
IMAGE
public static final WorkspacesHelper.FileType IMAGE
Image
-
VIDEO
public static final WorkspacesHelper.FileType VIDEO
Video
-
AUDIO
public static final WorkspacesHelper.FileType AUDIO
Audio
-
ARCHIVE
public static final WorkspacesHelper.FileType ARCHIVE
Archive
-
UNKNOWN
public static final WorkspacesHelper.FileType UNKNOWN
Unknown type
-
-
Constructor Detail
-
FileType
private FileType()
-
-
Method Detail
-
values
public static WorkspacesHelper.FileType[] 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 (WorkspacesHelper.FileType c : WorkspacesHelper.FileType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WorkspacesHelper.FileType 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 nameNullPointerException
- if the argument is null
-
-