Enum ContentType
- java.lang.Object
-
- java.lang.Enum<ContentType>
-
- org.gcube.common.storagehub.model.types.ContentType
-
- All Implemented Interfaces:
Serializable,Comparable<ContentType>
public enum ContentType extends Enum<ContentType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContentTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ContentType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GENERAL
public static final ContentType GENERAL
-
IMAGE
public static final ContentType IMAGE
-
PDF
public static final ContentType PDF
-
TS
public static final ContentType TS
-
QUERY
public static final ContentType QUERY
-
REPORT
public static final ContentType REPORT
-
REPORT_TEMPLATE
public static final ContentType REPORT_TEMPLATE
-
METADATA
public static final ContentType METADATA
-
DOCUMENT
public static final ContentType DOCUMENT
-
SMART
public static final ContentType SMART
-
-
Method Detail
-
values
public static ContentType[] 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 (ContentType c : ContentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContentType 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
-
-