de.danielnaber.languagetool.rules.patterns
Enum Match.CaseConversion
Object
Enum<Match.CaseConversion>
Match.CaseConversion
- All Implemented Interfaces:
- Serializable, Comparable<Match.CaseConversion>
- Enclosing class:
- Match
public static enum Match.CaseConversion
- extends Enum<Match.CaseConversion>
Possible string case conversions.
| Methods inherited from class Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class Object |
getClass, notify, notifyAll, wait, wait, wait |
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
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(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 name
NullPointerException - if the argument is null
toCase
public static Match.CaseConversion toCase(String str)
- Converts string to the constant enum.
- Parameters:
str - String value to be converted.
- Returns:
- CaseConversion enum.
Copyright © 2005-2007 Daniel Naber