Package org.jboss.dmr.stream
Enum ModelEvent
- java.lang.Object
-
- java.lang.Enum<ModelEvent>
-
- org.jboss.dmr.stream.ModelEvent
-
- All Implemented Interfaces:
Serializable
,Comparable<ModelEvent>
public enum ModelEvent extends Enum<ModelEvent>
DMR parsing events.- Author:
- Richard Opalka
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BIG_DECIMAL
Parsing cursor points to DMRbig decimal
.BIG_INTEGER
Parsing cursor points to DMRbig integer
.BOOLEAN
Parsing cursor points to DMRboolean
.BYTES
Parsing cursor points to DMRbytes
.DOUBLE
Parsing cursor points to DMRdouble
.EXPRESSION
Parsing cursor points to DMRexpression
.INT
Parsing cursor points to DMRint
.LIST_END
Parsing cursor points to DMRlist end
token.LIST_START
Parsing cursor points to DMRlist start
token.LONG
Parsing cursor points to DMRlong
.OBJECT_END
Parsing cursor points to DMRobject end
token.OBJECT_START
Parsing cursor points to DMRobject start
token.PROPERTY_END
Parsing cursor points to DMRproperty end
token.PROPERTY_START
Parsing cursor points to DMRproperty start
token.STRING
Parsing cursor points to DMRstring
.TYPE
Parsing cursor points to DMRtype
.UNDEFINED
Parsing cursor points to DMRundefined
token.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ModelEvent
valueOf(String name)
Returns the enum constant of this type with the specified name.static ModelEvent[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final ModelEvent BOOLEAN
Parsing cursor points to DMRboolean
.
-
BYTES
public static final ModelEvent BYTES
Parsing cursor points to DMRbytes
.
-
EXPRESSION
public static final ModelEvent EXPRESSION
Parsing cursor points to DMRexpression
.
-
LIST_END
public static final ModelEvent LIST_END
Parsing cursor points to DMRlist end
token.
-
LIST_START
public static final ModelEvent LIST_START
Parsing cursor points to DMRlist start
token.
-
INT
public static final ModelEvent INT
Parsing cursor points to DMRint
.
-
LONG
public static final ModelEvent LONG
Parsing cursor points to DMRlong
.
-
DOUBLE
public static final ModelEvent DOUBLE
Parsing cursor points to DMRdouble
.
-
BIG_INTEGER
public static final ModelEvent BIG_INTEGER
Parsing cursor points to DMRbig integer
.
-
BIG_DECIMAL
public static final ModelEvent BIG_DECIMAL
Parsing cursor points to DMRbig decimal
.
-
OBJECT_START
public static final ModelEvent OBJECT_START
Parsing cursor points to DMRobject start
token.
-
OBJECT_END
public static final ModelEvent OBJECT_END
Parsing cursor points to DMRobject end
token.
-
PROPERTY_END
public static final ModelEvent PROPERTY_END
Parsing cursor points to DMRproperty end
token.
-
PROPERTY_START
public static final ModelEvent PROPERTY_START
Parsing cursor points to DMRproperty start
token.
-
STRING
public static final ModelEvent STRING
Parsing cursor points to DMRstring
.
-
TYPE
public static final ModelEvent TYPE
Parsing cursor points to DMRtype
.
-
UNDEFINED
public static final ModelEvent UNDEFINED
Parsing cursor points to DMRundefined
token.
-
-
Method Detail
-
values
public static ModelEvent[] 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 (ModelEvent c : ModelEvent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ModelEvent 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
-
-