Package com.rtfparserkit.parser.standard
Enum ParserEventType
- java.lang.Object
-
- java.lang.Enum<ParserEventType>
-
- com.rtfparserkit.parser.standard.ParserEventType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ParserEventType>
enum ParserEventType extends java.lang.Enum<ParserEventType>
Types of event which may be raised by the parser.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BINARY_BYTES_EVENTCOMMAND_EVENTDOCUMENT_END_EVENTDOCUMENT_START_EVENTGROUP_END_EVENTGROUP_START_EVENTSTRING_EVENT
-
Constructor Summary
Constructors Modifier Constructor Description privateParserEventType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ParserEventTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ParserEventType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BINARY_BYTES_EVENT
public static final ParserEventType BINARY_BYTES_EVENT
-
COMMAND_EVENT
public static final ParserEventType COMMAND_EVENT
-
DOCUMENT_END_EVENT
public static final ParserEventType DOCUMENT_END_EVENT
-
DOCUMENT_START_EVENT
public static final ParserEventType DOCUMENT_START_EVENT
-
GROUP_END_EVENT
public static final ParserEventType GROUP_END_EVENT
-
GROUP_START_EVENT
public static final ParserEventType GROUP_START_EVENT
-
STRING_EVENT
public static final ParserEventType STRING_EVENT
-
-
Method Detail
-
values
public static ParserEventType[] 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 (ParserEventType c : ParserEventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParserEventType 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
-
-