public enum ComparisonMode extends Enum<ComparisonMode>
Enum Constant and Description |
---|
CLEAN
The NodeName instance is stripped from special characters and converted
to lowercase.
|
FUZZY
The NodeName instance is compared fuzzyly, this means that the complete
logic for fuzzy comparisons is used.
|
LOWERCASE
The NodeName instance is converted to lowercase before comparison.
|
NONE
This NodeName instance is excluded from the dictionary.
|
SOFT
The NodeName instance is stripped from non-alphabethic characters and
converted to lowercase.
|
STRICT
The NodeName instance is compared strictly, an exact string match is
needed.
|
Modifier and Type | Method and Description |
---|---|
static ComparisonMode |
getMode(int value)
Converts an comparison type value to the corresponding ComparisonMode
instance.
|
static ComparisonMode |
getMode(String mode) |
int |
getValue()
Returns the value with which the ComparisonMode is stored in the db.
|
static ComparisonMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComparisonMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComparisonMode FUZZY
public static final ComparisonMode SOFT
public static final ComparisonMode CLEAN
public static final ComparisonMode LOWERCASE
public static final ComparisonMode STRICT
public static final ComparisonMode NONE
public static ComparisonMode[] values()
for (ComparisonMode c : ComparisonMode.values()) System.out.println(c);
public static ComparisonMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
public static ComparisonMode getMode(int value)
value
- is the numerical value of the comparison type.public static ComparisonMode getMode(String mode)
Copyright (C) 2013, 2014 Raphael Dickfelder, Jan Göpfert, Benjamin Paassen, Andreas Stöckel, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/scie