com.esri.core.geometry
Enum Geometry.Type

java.lang.Object
  extended by java.lang.Enum<Geometry.Type>
      extended by com.esri.core.geometry.Geometry.Type
All Implemented Interfaces:
Serializable, Comparable<Geometry.Type>
Enclosing class:
Geometry

public static enum Geometry.Type
extends Enum<Geometry.Type>

The type of this geometry.


Enum Constant Summary
Envelope
          The value representing an envelope as geometry type.
Line
          The value representing a line as geometry type.
MultiPoint
          The value representing a multipoint as geometry type.
Point
          The value representing a point as geometry type.
Polygon
          The value representing a polygon as geometry type.
Polyline
          The value representing a polyline as geometry type.
Unknown
          Used to indicate that the geometry type is not known before executing a method.
 
Method Summary
 int value()
          Returns the integer representation of the enumeration value.
static Geometry.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Geometry.Type[] 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

Unknown

public static final Geometry.Type Unknown
Used to indicate that the geometry type is not known before executing a method.


Point

public static final Geometry.Type Point
The value representing a point as geometry type.


Line

public static final Geometry.Type Line
The value representing a line as geometry type.


Envelope

public static final Geometry.Type Envelope
The value representing an envelope as geometry type.


MultiPoint

public static final Geometry.Type MultiPoint
The value representing a multipoint as geometry type.


Polyline

public static final Geometry.Type Polyline
The value representing a polyline as geometry type.


Polygon

public static final Geometry.Type Polygon
The value representing a polygon as geometry type.

Method Detail

values

public static Geometry.Type[] 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.Type c : Geometry.Type.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.Type 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 name
NullPointerException - if the argument is null

value

public int value()
Returns the integer representation of the enumeration value.



Copyright © 2012. All Rights Reserved.