public static enum ErrorContent.LocationType extends java.lang.Enum<ErrorContent.LocationType>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final ErrorContent.LocationType XPATH
public static final ErrorContent.LocationType HEADER
public static final ErrorContent.LocationType OTHER
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 namejava.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>