Package com.esri.core.geometry
Enum Geometry.Type
- java.lang.Object
-
- java.lang.Enum<Geometry.Type>
-
- com.esri.core.geometry.Geometry.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Geometry.Type>
- Enclosing class:
- Geometry
public static enum Geometry.Type extends java.lang.Enum<Geometry.Type>
The type of this geometry.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description 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.
-
Field Summary
Fields Modifier and Type Field Description private int
enumValue
-
Constructor Summary
Constructors Modifier Constructor Description private
Type(int val)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Geometry.Type
intToType(int geometryType)
int
value()
Returns the integer representation of the enumeration value.static Geometry.Type
valueOf(java.lang.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.
-
-
-
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(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
-
value
public int value()
Returns the integer representation of the enumeration value.
-
intToType
public static Geometry.Type intToType(int geometryType)
-
-