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_DECIMALParsing cursor points to DMRbig decimal.BIG_INTEGERParsing cursor points to DMRbig integer.BOOLEANParsing cursor points to DMRboolean.BYTESParsing cursor points to DMRbytes.DOUBLEParsing cursor points to DMRdouble.EXPRESSIONParsing cursor points to DMRexpression.INTParsing cursor points to DMRint.LIST_ENDParsing cursor points to DMRlist endtoken.LIST_STARTParsing cursor points to DMRlist starttoken.LONGParsing cursor points to DMRlong.OBJECT_ENDParsing cursor points to DMRobject endtoken.OBJECT_STARTParsing cursor points to DMRobject starttoken.PROPERTY_ENDParsing cursor points to DMRproperty endtoken.PROPERTY_STARTParsing cursor points to DMRproperty starttoken.STRINGParsing cursor points to DMRstring.TYPEParsing cursor points to DMRtype.UNDEFINEDParsing cursor points to DMRundefinedtoken.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ModelEventvalueOf(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 endtoken.
-
LIST_START
public static final ModelEvent LIST_START
Parsing cursor points to DMRlist starttoken.
-
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 starttoken.
-
OBJECT_END
public static final ModelEvent OBJECT_END
Parsing cursor points to DMRobject endtoken.
-
PROPERTY_END
public static final ModelEvent PROPERTY_END
Parsing cursor points to DMRproperty endtoken.
-
PROPERTY_START
public static final ModelEvent PROPERTY_START
Parsing cursor points to DMRproperty starttoken.
-
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 DMRundefinedtoken.
-
-
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
-
-