- java.lang.Object
-
- java.lang.Enum<StructuredReader.State>
-
- io.github.mmm.marshall.StructuredReader.State
-
- All Implemented Interfaces:
Serializable,Comparable<StructuredReader.State>
- Enclosing interface:
- StructuredReader
public static enum StructuredReader.State extends Enum<StructuredReader.State>
Enum with the possible states of aStructuredReader.- See Also:
StructuredReader.getState()
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DONEEnd of data.END_ARRAYEnd of an array.END_OBJECTEnd of an object.NAMEName of a property.START_ARRAYStart of an array.START_OBJECTStart of an object.VALUEA regular value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEnd()booleanisStart()static StructuredReader.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static StructuredReader.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
START_ARRAY
public static final StructuredReader.State START_ARRAY
Start of an array.- See Also:
StructuredReader.readStartArray()
-
START_OBJECT
public static final StructuredReader.State START_OBJECT
Start of an object.- See Also:
StructuredReader.readStartObject()
-
VALUE
public static final StructuredReader.State VALUE
A regular value.- See Also:
StructuredReader.readValue()
-
NAME
public static final StructuredReader.State NAME
Name of a property.- See Also:
StructuredReader.readName()
-
END_ARRAY
public static final StructuredReader.State END_ARRAY
End of an array.
-
END_OBJECT
public static final StructuredReader.State END_OBJECT
End of an object.
-
DONE
public static final StructuredReader.State DONE
End of data.- See Also:
StructuredReader.isDone()
-
-
Method Detail
-
values
public static StructuredReader.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 (StructuredReader.State c : StructuredReader.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 StructuredReader.State 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
-
isStart
public boolean isStart()
- Returns:
trueif a startStructuredReader.Statesuch asSTART_ARRAYorSTART_OBJECT,falseotherwise.
-
isEnd
public boolean isEnd()
- Returns:
trueif an endStructuredReader.Statesuch asEND_ARRAYorEND_OBJECT,falseotherwise.
-
-