Package org.languagetool.rules
Enum AbstractUnitConversionRule.Message
- java.lang.Object
-
- java.lang.Enum<AbstractUnitConversionRule.Message>
-
- org.languagetool.rules.AbstractUnitConversionRule.Message
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractUnitConversionRule.Message>
- Enclosing class:
- AbstractUnitConversionRule
protected static enum AbstractUnitConversionRule.Message extends Enum<AbstractUnitConversionRule.Message>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHECK
CHECK_UNKNOWN_UNIT
SUGGESTION
UNIT_MISMATCH
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractUnitConversionRule.Message
valueOf(String name)
Returns the enum constant of this type with the specified name.static AbstractUnitConversionRule.Message[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUGGESTION
public static final AbstractUnitConversionRule.Message SUGGESTION
-
CHECK
public static final AbstractUnitConversionRule.Message CHECK
-
CHECK_UNKNOWN_UNIT
public static final AbstractUnitConversionRule.Message CHECK_UNKNOWN_UNIT
-
UNIT_MISMATCH
public static final AbstractUnitConversionRule.Message UNIT_MISMATCH
-
-
Method Detail
-
values
public static AbstractUnitConversionRule.Message[] 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 (AbstractUnitConversionRule.Message c : AbstractUnitConversionRule.Message.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractUnitConversionRule.Message 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
-
-