Package net.anwiba.spatial.geometry
Enum GeometryType
- java.lang.Object
-
- java.lang.Enum<GeometryType>
-
- net.anwiba.spatial.geometry.GeometryType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<GeometryType>
public enum GeometryType extends java.lang.Enum<GeometryType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLLECTIONLINEARRINGLINESTRINGMULTILINESTRINGMULTIPOINTMULTIPOLYGONPOINTPOLYGONUNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <T,E extends java.lang.Exception>
Taccept(IGeometryTypeVisitor<T,E> visitor)BaseGeometryTypegetBaseGeometryType()static GeometryTypegetByName(java.lang.String name)booleanisCollection()static GeometryTypevalueOf(java.lang.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
-
LINESTRING
public static final GeometryType LINESTRING
-
LINEARRING
public static final GeometryType LINEARRING
-
POLYGON
public static final GeometryType POLYGON
-
MULTIPOINT
public static final GeometryType MULTIPOINT
-
MULTILINESTRING
public static final GeometryType MULTILINESTRING
-
MULTIPOLYGON
public static final GeometryType MULTIPOLYGON
-
COLLECTION
public static final GeometryType COLLECTION
-
UNKNOWN
public static final GeometryType UNKNOWN
-
-
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(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getBaseGeometryType
public BaseGeometryType getBaseGeometryType()
-
accept
public abstract <T,E extends java.lang.Exception> T accept(IGeometryTypeVisitor<T,E> visitor) throws E extends java.lang.Exception
- Throws:
E extends java.lang.Exception
-
isCollection
public boolean isCollection()
-
getByName
public static GeometryType getByName(java.lang.String name)
-
-