Package no.hasmac.jsonld.http.link
Enum LinkHeaderParser.State
- java.lang.Object
-
- java.lang.Enum<LinkHeaderParser.State>
-
- no.hasmac.jsonld.http.link.LinkHeaderParser.State
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LinkHeaderParser.State>
- Enclosing class:
- LinkHeaderParser
private static enum LinkHeaderParser.State extends java.lang.Enum<LinkHeaderParser.State>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ESCAPE
INIT
LITERAL_VALUE
PARAM_NAME
PARAM_NAME_BEGIN
PARAM_NAME_END
PARAM_VALUE
PARAMS
STRING_VALUE
UNEXPECTED
URI_REF
-
Constructor Summary
Constructors Modifier Constructor Description private
State()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LinkHeaderParser.State
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LinkHeaderParser.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INIT
public static final LinkHeaderParser.State INIT
-
URI_REF
public static final LinkHeaderParser.State URI_REF
-
PARAMS
public static final LinkHeaderParser.State PARAMS
-
PARAM_NAME_BEGIN
public static final LinkHeaderParser.State PARAM_NAME_BEGIN
-
PARAM_NAME
public static final LinkHeaderParser.State PARAM_NAME
-
PARAM_NAME_END
public static final LinkHeaderParser.State PARAM_NAME_END
-
PARAM_VALUE
public static final LinkHeaderParser.State PARAM_VALUE
-
STRING_VALUE
public static final LinkHeaderParser.State STRING_VALUE
-
LITERAL_VALUE
public static final LinkHeaderParser.State LITERAL_VALUE
-
ESCAPE
public static final LinkHeaderParser.State ESCAPE
-
UNEXPECTED
public static final LinkHeaderParser.State UNEXPECTED
-
-
Method Detail
-
values
public static LinkHeaderParser.State[] 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 (LinkHeaderParser.State c : LinkHeaderParser.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LinkHeaderParser.State 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 namejava.lang.NullPointerException
- if the argument is null
-
-