Package org.geolatte.geom
Enum GeometryType
- java.lang.Object
-
- java.lang.Enum<GeometryType>
-
- org.geolatte.geom.GeometryType
-
- All Implemented Interfaces:
Serializable,Comparable<GeometryType>
public enum GeometryType extends Enum<GeometryType>
Enumerates the instantiableGeometrytypes.- Author:
- Karel Maesen, Geovise BVBA, 2011
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CURVEGEOMETRYCOLLECTIONLINEARRINGLINESTRINGMULTILINESTRINGMULTIPOINTMULTIPOLYGONPOINTPOLYGONSURFACE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCamelCased()static GeometryTypevalueOf(String name)Returns the enum constant of this type with the specified name.static GeometryType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
POINT
public static final GeometryType POINT
-
CURVE
public static final GeometryType CURVE
-
SURFACE
public static final GeometryType SURFACE
-
GEOMETRYCOLLECTION
public static final GeometryType GEOMETRYCOLLECTION
-
LINESTRING
public static final GeometryType LINESTRING
-
LINEARRING
public static final GeometryType LINEARRING
-
POLYGON
public static final GeometryType POLYGON
-
MULTIPOINT
public static final GeometryType MULTIPOINT
-
MULTIPOLYGON
public static final GeometryType MULTIPOLYGON
-
MULTILINESTRING
public static final GeometryType MULTILINESTRING
-
-
Method Detail
-
values
public static GeometryType[] 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 (GeometryType c : GeometryType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GeometryType 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
-
getCamelCased
public String getCamelCased()
-
-