Enum ItemType
- java.lang.Object
-
- java.lang.Enum<ItemType>
-
- org.gcube.common.storagehub.model.types.ItemType
-
- All Implemented Interfaces:
Serializable,Comparable<ItemType>,GenericItemType
public enum ItemType extends Enum<ItemType> implements GenericItemType
- Author:
- gioia
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FOLDERA folder.FOLDER_ITEMA folder item.SHARED_FOLDERA shared folderSMART_FOLDERA smart folderTRASH_FOLDERA trash folder.TRASH_ITEMA trash item.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ItemTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ItemType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FOLDER
public static final ItemType FOLDER
A folder.
-
SHARED_FOLDER
public static final ItemType SHARED_FOLDER
A shared folder
-
SMART_FOLDER
public static final ItemType SMART_FOLDER
A smart folder
-
FOLDER_ITEM
public static final ItemType FOLDER_ITEM
A folder item.
-
TRASH_FOLDER
public static final ItemType TRASH_FOLDER
A trash folder.
-
TRASH_ITEM
public static final ItemType TRASH_ITEM
A trash item.
-
-
Method Detail
-
values
public static ItemType[] 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 (ItemType c : ItemType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ItemType 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
-
-