Enum WKTGeometryType
- java.lang.Object
-
- java.lang.Enum<WKTGeometryType>
-
- org.gcube.data.analysis.dataminermanagercl.shared.parameters.WKTGeometryType
-
- All Implemented Interfaces:
Serializable,Comparable<WKTGeometryType>
public enum WKTGeometryType extends Enum<WKTGeometryType>
- Author:
- Giancarlo Panichi
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<WKTGeometryType>asList()static WKTGeometryTypegetFromLabel(String label)StringgetId()StringgetLabel()StringtoString()static WKTGeometryTypevalueOf(String name)Returns the enum constant of this type with the specified name.static WKTGeometryType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Point
public static final WKTGeometryType Point
-
LineString
public static final WKTGeometryType LineString
-
Polygon
public static final WKTGeometryType Polygon
-
Circle
public static final WKTGeometryType Circle
-
Triangle
public static final WKTGeometryType Triangle
-
Square
public static final WKTGeometryType Square
-
Pentagon
public static final WKTGeometryType Pentagon
-
Hexagon
public static final WKTGeometryType Hexagon
-
Box
public static final WKTGeometryType Box
-
-
Method Detail
-
values
public static WKTGeometryType[] 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 (WKTGeometryType c : WKTGeometryType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WKTGeometryType 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<WKTGeometryType>
-
getLabel
public String getLabel()
-
getId
public String getId()
-
getFromLabel
public static WKTGeometryType getFromLabel(String label)
- Parameters:
label- label- Returns:
- WKTGeometryType
-
asList
public static List<WKTGeometryType> asList()
-
-