Enum GeometricObjectType
- java.lang.Object
-
- java.lang.Enum<GeometricObjectType>
-
- org.gcube.spatial.data.geonetwork.iso.tpl.codelists.GeometricObjectType
-
- All Implemented Interfaces:
Serializable,Comparable<GeometricObjectType>
public enum GeometricObjectType extends Enum<GeometricObjectType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GeometricObjectTypegetById(String id)Gets a GeometricObjectType by its ID.static GeometricObjectTypevalueOf(String name)Returns the enum constant of this type with the specified name.static GeometricObjectType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMPLEX
public static final GeometricObjectType COMPLEX
Complex geometric object type
-
COMPOSITE
public static final GeometricObjectType COMPOSITE
Composite geometric object type
-
CURVE
public static final GeometricObjectType CURVE
-
POINT
public static final GeometricObjectType POINT
-
SOLID
public static final GeometricObjectType SOLID
-
SURFACE
public static final GeometricObjectType SURFACE
-
-
Method Detail
-
values
public static GeometricObjectType[] 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 (GeometricObjectType c : GeometricObjectType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GeometricObjectType 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
-
getById
public static GeometricObjectType getById(String id)
Gets a GeometricObjectType by its ID.- Parameters:
id- the ID to search for- Returns:
- the matching GeometricObjectType
- Throws:
IllegalArgumentException- if no matching type is found
-
-