Package com.fauna.codec
Enum FaunaTokenType
- java.lang.Object
-
- java.lang.Enum<FaunaTokenType>
-
- com.fauna.codec.FaunaTokenType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FaunaTokenType>
public enum FaunaTokenType extends java.lang.Enum<FaunaTokenType>
Enumeration representing token types for Fauna serialization.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BYTES
DATE
DOUBLE
END_ARRAY
END_DOCUMENT
END_OBJECT
END_PAGE
END_REF
FALSE
FIELD_NAME
INT
LONG
MODULE
NONE
NULL
START_ARRAY
START_DOCUMENT
START_OBJECT
START_PAGE
START_REF
STREAM
STRING
TIME
TRUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FaunaTokenType
getEndToken()
FaunaType
getFaunaType()
static FaunaTokenType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FaunaTokenType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final FaunaTokenType NONE
-
START_OBJECT
public static final FaunaTokenType START_OBJECT
-
END_OBJECT
public static final FaunaTokenType END_OBJECT
-
START_ARRAY
public static final FaunaTokenType START_ARRAY
-
END_ARRAY
public static final FaunaTokenType END_ARRAY
-
START_PAGE
public static final FaunaTokenType START_PAGE
-
END_PAGE
public static final FaunaTokenType END_PAGE
-
START_REF
public static final FaunaTokenType START_REF
-
END_REF
public static final FaunaTokenType END_REF
-
START_DOCUMENT
public static final FaunaTokenType START_DOCUMENT
-
END_DOCUMENT
public static final FaunaTokenType END_DOCUMENT
-
FIELD_NAME
public static final FaunaTokenType FIELD_NAME
-
STRING
public static final FaunaTokenType STRING
-
BYTES
public static final FaunaTokenType BYTES
-
INT
public static final FaunaTokenType INT
-
LONG
public static final FaunaTokenType LONG
-
DOUBLE
public static final FaunaTokenType DOUBLE
-
DATE
public static final FaunaTokenType DATE
-
TIME
public static final FaunaTokenType TIME
-
TRUE
public static final FaunaTokenType TRUE
-
FALSE
public static final FaunaTokenType FALSE
-
NULL
public static final FaunaTokenType NULL
-
STREAM
public static final FaunaTokenType STREAM
-
MODULE
public static final FaunaTokenType MODULE
-
-
Method Detail
-
values
public static FaunaTokenType[] 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 (FaunaTokenType c : FaunaTokenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FaunaTokenType 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
-
getEndToken
public FaunaTokenType getEndToken() throws java.io.IOException
- Throws:
java.io.IOException
-
getFaunaType
public FaunaType getFaunaType()
-
-