Enum Geometry.Type
- java.lang.Object
-
- java.lang.Enum<Geometry.Type>
-
- com.github.filosganga.geogson.model.Geometry.Type
-
- All Implemented Interfaces:
Serializable,Comparable<Geometry.Type>
public static enum Geometry.Type extends Enum<Geometry.Type>
Define the type of the Geometry. As defined in the GeoJson specifications.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GEOMETRY_COLLECTIONLINE_STRINGLINEAR_RINGMULTI_LINE_STRINGMULTI_POINTMULTI_POLYGONPOINTPOLYGON
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Geometry.TypeforValue(String value)StringgetValue()static Geometry.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static Geometry.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
POINT
public static final Geometry.Type POINT
-
MULTI_POINT
public static final Geometry.Type MULTI_POINT
-
LINE_STRING
public static final Geometry.Type LINE_STRING
-
LINEAR_RING
public static final Geometry.Type LINEAR_RING
-
MULTI_LINE_STRING
public static final Geometry.Type MULTI_LINE_STRING
-
POLYGON
public static final Geometry.Type POLYGON
-
MULTI_POLYGON
public static final Geometry.Type MULTI_POLYGON
-
GEOMETRY_COLLECTION
public static final Geometry.Type GEOMETRY_COLLECTION
-
-
Method Detail
-
values
public static Geometry.Type[] 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 (Geometry.Type c : Geometry.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Geometry.Type 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
-
getValue
public String getValue()
-
forValue
public static Geometry.Type forValue(String value)
-
-