Enum FileItemType
- java.lang.Object
-
- java.lang.Enum<FileItemType>
-
- org.gcube.common.storagehubwrapper.shared.tohl.items.FileItemType
-
- All Implemented Interfaces:
Serializable,Comparable<FileItemType>,org.gcube.common.storagehub.model.types.GenericItemType
public enum FileItemType extends Enum<FileItemType> implements org.gcube.common.storagehub.model.types.GenericItemType
The Enum FileItemType.- Author:
- Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Jun 21, 2018
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DOCUMENTDocument.GCUBE_ITEMA gCube item.IMAGE_DOCUMENTImage document.METADATAMetadata.PDF_DOCUMENTPDF document.URL_DOCUMENTUrl document.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileItemTypevalueOf(String name)Returns the enum constant of this type with the specified name.static FileItemType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOCUMENT
public static final FileItemType DOCUMENT
Document.
-
IMAGE_DOCUMENT
public static final FileItemType IMAGE_DOCUMENT
Image document.
-
PDF_DOCUMENT
public static final FileItemType PDF_DOCUMENT
PDF document.
-
URL_DOCUMENT
public static final FileItemType URL_DOCUMENT
Url document.
-
METADATA
public static final FileItemType METADATA
Metadata.
-
GCUBE_ITEM
public static final FileItemType GCUBE_ITEM
A gCube item.
-
-
Method Detail
-
values
public static FileItemType[] 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 (FileItemType c : FileItemType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileItemType 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
-
-