com.esri.core.tasks.ags.na
Enum NADistanceUnit

java.lang.Object
  extended by java.lang.Enum<NADistanceUnit>
      extended by com.esri.core.tasks.ags.na.NADistanceUnit
All Implemented Interfaces:
Serializable, Comparable<NADistanceUnit>

public enum NADistanceUnit
extends Enum<NADistanceUnit>

The enumeration types of distance unit.

Since:
10.1.1

Enum Constant Summary
CENTIMETERS
          Centimeters
DECIMAL_DEGREES
          decimal degrees
DECIMETERS
          decimeters
FEET
          feet
INCHES
          inches
KILOMETERS
          kilometers
METERS
          meters
MILES
          miles
MILLIMETERS
          Millimeters
NAUTICAL_MILES
          Nautical Miles
POINTS
          points
SERVER_DEFAULT
          default
UNKNOWN
          Unknown units
YARDS
          Yards
 
Method Summary
static NADistanceUnit get(String str)
           
 String toString()
           
static NADistanceUnit valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NADistanceUnit[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

UNKNOWN

public static final NADistanceUnit UNKNOWN
Unknown units


CENTIMETERS

public static final NADistanceUnit CENTIMETERS
Centimeters


DECIMAL_DEGREES

public static final NADistanceUnit DECIMAL_DEGREES
decimal degrees


DECIMETERS

public static final NADistanceUnit DECIMETERS
decimeters


FEET

public static final NADistanceUnit FEET
feet


INCHES

public static final NADistanceUnit INCHES
inches


KILOMETERS

public static final NADistanceUnit KILOMETERS
kilometers


METERS

public static final NADistanceUnit METERS
meters


MILES

public static final NADistanceUnit MILES
miles


MILLIMETERS

public static final NADistanceUnit MILLIMETERS
Millimeters


NAUTICAL_MILES

public static final NADistanceUnit NAUTICAL_MILES
Nautical Miles


POINTS

public static final NADistanceUnit POINTS
points


YARDS

public static final NADistanceUnit YARDS
Yards


SERVER_DEFAULT

public static final NADistanceUnit SERVER_DEFAULT
default

Method Detail

values

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

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

valueOf

public static NADistanceUnit 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

toString

public String toString()
Overrides:
toString in class Enum<NADistanceUnit>

get

public static NADistanceUnit get(String str)
Since:
10.1.1


Copyright © 2012. All Rights Reserved.