|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ErrorContent.LocationType>
com.google.gdata.util.ErrorContent.LocationType
public static enum ErrorContent.LocationType
Enumerated constants for error location types.
Enum Constant Summary | |
---|---|
HEADER
The error occurred in a header, and the location describes which one. |
|
OTHER
The error occurred somewhere else, or the location is unknown. |
|
XPATH
The location is an xpath expression to the location of the error in the request. |
Method Summary | |
---|---|
static ErrorContent.LocationType |
fromString(java.lang.String value)
Return the location type matching the given string value. |
java.lang.String |
toString()
Return the string value of the location type. |
static ErrorContent.LocationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ErrorContent.LocationType[] |
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 |
---|
public static final ErrorContent.LocationType XPATH
public static final ErrorContent.LocationType HEADER
public static final ErrorContent.LocationType OTHER
Method Detail |
---|
public static ErrorContent.LocationType[] values()
for (ErrorContent.LocationType c : ErrorContent.LocationType.values()) System.out.println(c);
public static ErrorContent.LocationType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static ErrorContent.LocationType fromString(java.lang.String value)
valueOf(String)
method, this will return null
if
the value was not found, rather than throwing an exception. The values
are based on the toString()
method for each location type.
public java.lang.String toString()
toString
in class java.lang.Enum<ErrorContent.LocationType>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |