Package org.bremersee.geojson.model
Enum Geometry.TypeEnum
- java.lang.Object
-
- java.lang.Enum<Geometry.TypeEnum>
-
- org.bremersee.geojson.model.Geometry.TypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<Geometry.TypeEnum>
- Enclosing class:
- Geometry
public static enum Geometry.TypeEnum extends Enum<Geometry.TypeEnum>
The geometry type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GEOMETRYCOLLECTIONGeometrycollection type enum.LINESTRINGLinestring type enum.MULTILINESTRINGMultilinestring type enum.MULTIPOINTMultipoint type enum.MULTIPOLYGONMultipolygon type enum.POINTPoint type enum.POLYGONPolygon type enum.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Geometry.TypeEnumfromValue(String text)From value type enum.StringtoString()static Geometry.TypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static Geometry.TypeEnum[]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.TypeEnum POINT
Point type enum.
-
MULTIPOINT
public static final Geometry.TypeEnum MULTIPOINT
Multipoint type enum.
-
LINESTRING
public static final Geometry.TypeEnum LINESTRING
Linestring type enum.
-
MULTILINESTRING
public static final Geometry.TypeEnum MULTILINESTRING
Multilinestring type enum.
-
POLYGON
public static final Geometry.TypeEnum POLYGON
Polygon type enum.
-
MULTIPOLYGON
public static final Geometry.TypeEnum MULTIPOLYGON
Multipolygon type enum.
-
GEOMETRYCOLLECTION
public static final Geometry.TypeEnum GEOMETRYCOLLECTION
Geometrycollection type enum.
-
-
Method Detail
-
values
public static Geometry.TypeEnum[] 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.TypeEnum c : Geometry.TypeEnum.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.TypeEnum 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<Geometry.TypeEnum>
-
fromValue
public static Geometry.TypeEnum fromValue(String text)
From value type enum.- Parameters:
text- the text- Returns:
- the type enum
-
-