Package org.languagetool.rules.patterns
Enum Match.CaseConversion
- java.lang.Object
-
- java.lang.Enum<Match.CaseConversion>
-
- org.languagetool.rules.patterns.Match.CaseConversion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Match.CaseConversion>
- Enclosing class:
- Match
public static enum Match.CaseConversion extends java.lang.Enum<Match.CaseConversion>
Possible string case conversions.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLLOWER
ALLUPPER
NONE
PRESERVE
STARTLOWER
STARTUPPER
-
Constructor Summary
Constructors Modifier Constructor Description private
CaseConversion()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Match.CaseConversion
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Match.CaseConversion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Match.CaseConversion NONE
-
STARTLOWER
public static final Match.CaseConversion STARTLOWER
-
STARTUPPER
public static final Match.CaseConversion STARTUPPER
-
ALLLOWER
public static final Match.CaseConversion ALLLOWER
-
ALLUPPER
public static final Match.CaseConversion ALLUPPER
-
PRESERVE
public static final Match.CaseConversion PRESERVE
-
-
Method Detail
-
values
public static Match.CaseConversion[] 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 (Match.CaseConversion c : Match.CaseConversion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Match.CaseConversion 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
-
-