Enum PerspectiveType
- java.lang.Object
-
- java.lang.Enum<PerspectiveType>
-
- org.gcube.data.analysis.dataminermanagercl.shared.perspective.PerspectiveType
-
- All Implemented Interfaces:
Serializable,Comparable<PerspectiveType>
public enum PerspectiveType extends Enum<PerspectiveType>
- Author:
- Giancarlo Panichi
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ComputationUser
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<PerspectiveType>asList()static PerspectiveTypegetFromLabel(String label)static PerspectiveTypegetFromPerspective(String perspective)StringgetId()StringgetLabel()StringgetPerspective()StringtoString()static PerspectiveTypevalueOf(String name)Returns the enum constant of this type with the specified name.static PerspectiveType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
User
public static final PerspectiveType User
-
Computation
public static final PerspectiveType Computation
-
-
Method Detail
-
values
public static PerspectiveType[] 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 (PerspectiveType c : PerspectiveType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PerspectiveType 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
-
toString
public String toString()
- Overrides:
toStringin classEnum<PerspectiveType>
-
getLabel
public String getLabel()
-
getPerspective
public String getPerspective()
-
getId
public String getId()
-
getFromLabel
public static PerspectiveType getFromLabel(String label)
-
getFromPerspective
public static PerspectiveType getFromPerspective(String perspective)
-
asList
public static List<PerspectiveType> asList()
-
-