net.sf.marineapi.nmea.util
Enum Datum

java.lang.Object
  extended by java.lang.Enum<Datum>
      extended by net.sf.marineapi.nmea.util.Datum
All Implemented Interfaces:
Serializable, Comparable<Datum>

public enum Datum
extends Enum<Datum>

Defines the supported datums, i.e. the coordinate systems used to specify geographic positions.

Version:
$Revision: 4 $
Author:
Kimmo Tuukkanen
See Also:
Position

Enum Constant Summary
NAD27
          North American Datum 1927
NAD83
          North American Datum 1983
WGS84
          World Geodetic System 1984, the default datum in GPS systems.
 
Method Summary
static Datum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Datum[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

WGS84

public static final Datum WGS84
World Geodetic System 1984, the default datum in GPS systems.


NAD83

public static final Datum NAD83
North American Datum 1983


NAD27

public static final Datum NAD27
North American Datum 1927

Method Detail

values

public static final Datum[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Datum c : Datum.values())
        System.out.println(c);

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

valueOf

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


Copyright (C) 2010-2011 Java Marine API author(s). All Rights Reserved.