com.google.visualization.datasource.base
Enum StatusType

java.lang.Object
  extended by java.lang.Enum<StatusType>
      extended by com.google.visualization.datasource.base.StatusType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StatusType>

public enum StatusType
extends java.lang.Enum<StatusType>

An enum value to represent the status of a response.

Author:
Hillel M.

Enum Constant Summary
ERROR
          The query failed to complete.
OK
          The query completed successfully and the data can be returned.
WARNING
          The query completed with a warning.
 
Method Summary
 java.lang.String lowerCaseString()
          Returns a lower case string of this enum.
static StatusType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StatusType[] 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

OK

public static final StatusType OK
The query completed successfully and the data can be returned.


ERROR

public static final StatusType ERROR
The query failed to complete. In this case, no data table is passed in the response.


WARNING

public static final StatusType WARNING
The query completed with a warning. In some cases, part of the data is returned.

Method Detail

values

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

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

valueOf

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

lowerCaseString

public java.lang.String lowerCaseString()
Returns a lower case string of this enum.

Returns:
a lower case string of this enum.


Copyright © 2009 Google. All Rights Reserved.