Package com.mongodb.client.model.geojson
Enum GeoJsonObjectType
- java.lang.Object
-
- java.lang.Enum<GeoJsonObjectType>
-
- com.mongodb.client.model.geojson.GeoJsonObjectType
-
- All Implemented Interfaces:
Serializable
,Comparable<GeoJsonObjectType>
public enum GeoJsonObjectType extends Enum<GeoJsonObjectType>
An enumeration of GeoJSON object types.- Since:
- 3.1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GEOMETRY_COLLECTION
A GeometryCollectionLINE_STRING
A LineStringMULTI_LINE_STRING
A MultiLineStringMULTI_POINT
A MultiPointMULTI_POLYGON
A MultiPolygonPOINT
A PointPOLYGON
A Polygon
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getTypeName()
Gets the GeoJSON-defined name for the object type.static GeoJsonObjectType
valueOf(String name)
Returns the enum constant of this type with the specified name.static GeoJsonObjectType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GEOMETRY_COLLECTION
public static final GeoJsonObjectType GEOMETRY_COLLECTION
A GeometryCollection
-
LINE_STRING
public static final GeoJsonObjectType LINE_STRING
A LineString
-
MULTI_LINE_STRING
public static final GeoJsonObjectType MULTI_LINE_STRING
A MultiLineString
-
MULTI_POINT
public static final GeoJsonObjectType MULTI_POINT
A MultiPoint
-
MULTI_POLYGON
public static final GeoJsonObjectType MULTI_POLYGON
A MultiPolygon
-
POINT
public static final GeoJsonObjectType POINT
A Point
-
POLYGON
public static final GeoJsonObjectType POLYGON
A Polygon
-
-
Method Detail
-
values
public static GeoJsonObjectType[] 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 (GeoJsonObjectType c : GeoJsonObjectType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GeoJsonObjectType 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
-
getTypeName
public String getTypeName()
Gets the GeoJSON-defined name for the object type.- Returns:
- the GeoJSON-defined type name
-
-