org.hibernate.spatial.dialect.sqlserver.convertors
Enum OpenGisType

java.lang.Object
  extended by java.lang.Enum<OpenGisType>
      extended by org.hibernate.spatial.dialect.sqlserver.convertors.OpenGisType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OpenGisType>

public enum OpenGisType
extends java.lang.Enum<OpenGisType>

The type of geometry.


Enum Constant Summary
GEOMETRYCOLLECTION
           
INVALID_TYPE
           
LINESTRING
           
MULTILINESTRING
           
MULTIPOINT
           
MULTIPOLYGON
           
POINT
           
POLYGON
           
 
Method Summary
static OpenGisType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OpenGisType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

POINT

public static final OpenGisType POINT

LINESTRING

public static final OpenGisType LINESTRING

POLYGON

public static final OpenGisType POLYGON

MULTIPOINT

public static final OpenGisType MULTIPOINT

MULTILINESTRING

public static final OpenGisType MULTILINESTRING

MULTIPOLYGON

public static final OpenGisType MULTIPOLYGON

GEOMETRYCOLLECTION

public static final OpenGisType GEOMETRYCOLLECTION

INVALID_TYPE

public static final OpenGisType INVALID_TYPE
Method Detail

values

public static OpenGisType[] 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 (OpenGisType c : OpenGisType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OpenGisType 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 name
java.lang.NullPointerException - if the argument is null