geo.google.datamodel
Enum GeoStatusCode

java.lang.Object
  extended by java.lang.Enum<GeoStatusCode>
      extended by geo.google.datamodel.GeoStatusCode
All Implemented Interfaces:
Serializable, Comparable<GeoStatusCode>

public enum GeoStatusCode
extends Enum<GeoStatusCode>

GGeoStatusCode Enum class http://www.google.com/apis/maps/documentation/reference.html#GGeoStatusCode

Author:
jliang

Enum Constant Summary
G_GEO_BAD_KEY
           
G_GEO_BAD_REQUEST
           
G_GEO_MISSING_QUERY
           
G_GEO_SERVER_ERROR
           
G_GEO_SUCCESS
           
G_GEO_TOO_MANY_QUERIES
           
G_GEO_UNAVAILABLE_ADDRESS
           
G_GEO_UNKNOWN_ADDRESS
           
G_GEO_UNKNOWN_DIRECTIONS
           
G_GEO_UNKOWN_STATUS
           
 
Method Summary
 int getCode()
           
 String getCodeName()
           
 String getDescription()
           
static GeoStatusCode getStatusCode(int code)
          Retrun the corresponding GGeoStatusCode based from the input code.
static GeoStatusCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GeoStatusCode[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

G_GEO_SUCCESS

public static final GeoStatusCode G_GEO_SUCCESS

G_GEO_BAD_REQUEST

public static final GeoStatusCode G_GEO_BAD_REQUEST

G_GEO_SERVER_ERROR

public static final GeoStatusCode G_GEO_SERVER_ERROR

G_GEO_MISSING_QUERY

public static final GeoStatusCode G_GEO_MISSING_QUERY

G_GEO_UNKNOWN_ADDRESS

public static final GeoStatusCode G_GEO_UNKNOWN_ADDRESS

G_GEO_UNAVAILABLE_ADDRESS

public static final GeoStatusCode G_GEO_UNAVAILABLE_ADDRESS

G_GEO_UNKNOWN_DIRECTIONS

public static final GeoStatusCode G_GEO_UNKNOWN_DIRECTIONS

G_GEO_BAD_KEY

public static final GeoStatusCode G_GEO_BAD_KEY

G_GEO_TOO_MANY_QUERIES

public static final GeoStatusCode G_GEO_TOO_MANY_QUERIES

G_GEO_UNKOWN_STATUS

public static final GeoStatusCode G_GEO_UNKOWN_STATUS
Method Detail

values

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

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

valueOf

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

getCode

public int getCode()

getCodeName

public String getCodeName()

getDescription

public String getDescription()

getStatusCode

public static GeoStatusCode getStatusCode(int code)
Retrun the corresponding GGeoStatusCode based from the input code.



Copyright © 2008. All Rights Reserved.