Package org.bson
Enum Class AbstractBsonReader.State
- All Implemented Interfaces:
Serializable
,Comparable<AbstractBsonReader.State>
,java.lang.constant.Constable
- Enclosing class:
- AbstractBsonReader
The state of a reader. Indicates where in a document the reader is.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe reader is closed.The reader has finished reading a document.The reader is positioned at the end of an array.The reader is positioned at the end of a document.The initial state.The reader is positioned at the name of an element.The reader is positioned at a scope document.The reader is positioned at the type of an element or value.The reader is positioned at a value. -
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractBsonReader.State
Returns the enum constant of this class with the specified name.static AbstractBsonReader.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INITIAL
The initial state. -
TYPE
The reader is positioned at the type of an element or value. -
NAME
The reader is positioned at the name of an element. -
VALUE
The reader is positioned at a value. -
SCOPE_DOCUMENT
The reader is positioned at a scope document. -
END_OF_DOCUMENT
The reader is positioned at the end of a document. -
END_OF_ARRAY
The reader is positioned at the end of an array. -
DONE
The reader has finished reading a document. -
CLOSED
The reader is closed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-