de.danielnaber.languagetool.tagging.disambiguation.rules
Enum DisambiguationPatternRule.DisambiguatorAction
Object
Enum<DisambiguationPatternRule.DisambiguatorAction>
DisambiguationPatternRule.DisambiguatorAction
- All Implemented Interfaces:
- Serializable, Comparable<DisambiguationPatternRule.DisambiguatorAction>
- Enclosing class:
- DisambiguationPatternRule
public static enum DisambiguationPatternRule.DisambiguatorAction
- extends Enum<DisambiguationPatternRule.DisambiguatorAction>
Possible disambiguator actions.
| Methods inherited from class Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class Object |
getClass, notify, notifyAll, wait, wait, wait |
ADD
public static final DisambiguationPatternRule.DisambiguatorAction ADD
FILTER
public static final DisambiguationPatternRule.DisambiguatorAction FILTER
REMOVE
public static final DisambiguationPatternRule.DisambiguatorAction REMOVE
REPLACE
public static final DisambiguationPatternRule.DisambiguatorAction REPLACE
UNIFY
public static final DisambiguationPatternRule.DisambiguatorAction UNIFY
values
public static DisambiguationPatternRule.DisambiguatorAction[] 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 (DisambiguationPatternRule.DisambiguatorAction c : DisambiguationPatternRule.DisambiguatorAction.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DisambiguationPatternRule.DisambiguatorAction 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
toAction
public static DisambiguationPatternRule.DisambiguatorAction toAction(String str)
- Converts string to the constant enum.
- Parameters:
str - String value to be converted.
- Returns:
- DisambiguatorAction enum.
Copyright © 2005-2009 Daniel Naber