com.partnersoft.formats.shapefile
Enum ShapeType
java.lang.Object
java.lang.Enum<ShapeType>
com.partnersoft.formats.shapefile.ShapeType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ShapeType>
public enum ShapeType
- extends java.lang.Enum<ShapeType>
Shape types defined by ESRI, both in shapefiles and geodatabases.
Copyright 2006-2007 Partner Software, Inc.
- Version:
- $Id: ShapeType.java 1701 2009-01-13 22:11:48Z paul $
- Author:
- Paul Reavis
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
NULL_SHAPE
public static final ShapeType NULL_SHAPE
POINT
public static final ShapeType POINT
POLYLINE
public static final ShapeType POLYLINE
UNKNOWN_4
public static final ShapeType UNKNOWN_4
POLYGON
public static final ShapeType POLYGON
MULTIPOINT
public static final ShapeType MULTIPOINT
UNKNOWN_9
public static final ShapeType UNKNOWN_9
POINT_Z
public static final ShapeType POINT_Z
POLYLINE_Z
public static final ShapeType POLYLINE_Z
POLYGON_Z
public static final ShapeType POLYGON_Z
MULTIPOINT_Z
public static final ShapeType MULTIPOINT_Z
POINT_M
public static final ShapeType POINT_M
POLYLINE_M
public static final ShapeType POLYLINE_M
POLYGON_M
public static final ShapeType POLYGON_M
MULTIPOINT_M
public static final ShapeType MULTIPOINT_M
MULTIPATCH
public static final ShapeType MULTIPATCH
POLYCURVE_32
public static final ShapeType POLYCURVE_32
POLYCURVE_33
public static final ShapeType POLYCURVE_33
values
public static ShapeType[] 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 (ShapeType c : ShapeType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ShapeType 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
valueForName
public static ShapeType valueForName(java.lang.String name)
valueForCode
public static ShapeType valueForCode(int code)
getName
public java.lang.String getName()
getCode
public int getCode()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Enum<ShapeType>