Package org.apache.johnzon.core
Enum JsonGeneratorImpl.GeneratorState
- java.lang.Object
-
- java.lang.Enum<JsonGeneratorImpl.GeneratorState>
-
- org.apache.johnzon.core.JsonGeneratorImpl.GeneratorState
-
- All Implemented Interfaces:
Serializable
,Comparable<JsonGeneratorImpl.GeneratorState>
- Enclosing class:
- JsonGeneratorImpl
private static enum JsonGeneratorImpl.GeneratorState extends Enum<JsonGeneratorImpl.GeneratorState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFTER_KEY
END
IN_ARRAY
IN_OBJECT
INITIAL
ROOT_VALUE
START_ARRAY
START_OBJECT
-
Field Summary
Fields Modifier and Type Field Description private boolean
acceptsKey
private boolean
acceptsValue
private boolean
endable
-
Constructor Summary
Constructors Modifier Constructor Description private
GeneratorState(boolean acceptsKey, boolean acceptsValue, boolean endable)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JsonGeneratorImpl.GeneratorState
valueOf(String name)
Returns the enum constant of this type with the specified name.static JsonGeneratorImpl.GeneratorState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INITIAL
public static final JsonGeneratorImpl.GeneratorState INITIAL
-
START_OBJECT
public static final JsonGeneratorImpl.GeneratorState START_OBJECT
-
IN_OBJECT
public static final JsonGeneratorImpl.GeneratorState IN_OBJECT
-
AFTER_KEY
public static final JsonGeneratorImpl.GeneratorState AFTER_KEY
-
START_ARRAY
public static final JsonGeneratorImpl.GeneratorState START_ARRAY
-
IN_ARRAY
public static final JsonGeneratorImpl.GeneratorState IN_ARRAY
-
END
public static final JsonGeneratorImpl.GeneratorState END
-
ROOT_VALUE
public static final JsonGeneratorImpl.GeneratorState ROOT_VALUE
-
-
Method Detail
-
values
public static JsonGeneratorImpl.GeneratorState[] 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 (JsonGeneratorImpl.GeneratorState c : JsonGeneratorImpl.GeneratorState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonGeneratorImpl.GeneratorState 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 nameNullPointerException
- if the argument is null
-
-