Package org.opennms.netmgt.syslogd
Enum ParserStage.AcceptResult
- java.lang.Object
-
- java.lang.Enum<ParserStage.AcceptResult>
-
- org.opennms.netmgt.syslogd.ParserStage.AcceptResult
-
- All Implemented Interfaces:
Serializable
,Comparable<ParserStage.AcceptResult>
- Enclosing interface:
- ParserStage
public static enum ParserStage.AcceptResult extends Enum<ParserStage.AcceptResult>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCEL
Cancel the parsing process due to a failure to parse based on the current rules for this stage.COMPLETE_AFTER_CONSUMING
Complete the parsing stage and consider the current character as already consumed.COMPLETE_WITHOUT_CONSUMING
Complete the parsing stage and reset the position of the buffer so that the next stage can consume the current character.CONTINUE
Continue the parsing process.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ParserStage.AcceptResult
valueOf(String name)
Returns the enum constant of this type with the specified name.static ParserStage.AcceptResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTINUE
public static final ParserStage.AcceptResult CONTINUE
Continue the parsing process.
-
COMPLETE_AFTER_CONSUMING
public static final ParserStage.AcceptResult COMPLETE_AFTER_CONSUMING
Complete the parsing stage and consider the current character as already consumed.
-
COMPLETE_WITHOUT_CONSUMING
public static final ParserStage.AcceptResult COMPLETE_WITHOUT_CONSUMING
Complete the parsing stage and reset the position of the buffer so that the next stage can consume the current character.
-
CANCEL
public static final ParserStage.AcceptResult CANCEL
Cancel the parsing process due to a failure to parse based on the current rules for this stage.
-
-
Method Detail
-
values
public static ParserStage.AcceptResult[] 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 (ParserStage.AcceptResult c : ParserStage.AcceptResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParserStage.AcceptResult 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
-
-