|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<MatchType>
au.org.ala.names.model.MatchType
public enum MatchType
An enumeration that represents the type of match that has been performed. Some of these match types will only happen within certain search types.
| Enum Constant Summary | |
|---|---|
ALTERNATE
Deprecated. Used in the OLD search API |
|
CANONICAL
The supplied name was parsed into canonical form before a match was obtained. |
|
DIRECT
Deprecated. Used in the OLD search API |
|
EXACT
The supplied name matched the name exactly. |
|
PHRASE
A match was determined by parsing the name into a phrase name. |
|
RECURSIVE
The match is based on the higher level classification Limited to recursive searches ALANameSearcher.searchForRecord(LinnaeanRankClassification, boolean) etc |
|
SEARCHABLE
Deprecated. Usde in the OLD search API |
|
SOUNDEX
A match was determined by using a sound expression of the supplied name. |
|
TAXON_ID
The match was based on the supplied taxon concept ID rather than the scientific name. |
|
VERNACULAR
A match was determined by the vernacular name. |
|
| Method Summary | |
|---|---|
MatchType |
getMatchType(java.lang.String match)
|
java.lang.String |
toString()
|
static MatchType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MatchType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final MatchType DIRECT
public static final MatchType EXACT
public static final MatchType CANONICAL
public static final MatchType PHRASE
public static final MatchType SOUNDEX
public static final MatchType ALTERNATE
public static final MatchType SEARCHABLE
public static final MatchType VERNACULAR
ALANameSearcher.searchForCommonName(String)
public static final MatchType RECURSIVE
ALANameSearcher.searchForRecord(LinnaeanRankClassification, boolean) etc
public static final MatchType TAXON_ID
ALANameSearcher.searchForRecordByLsid(String) etc
| Method Detail |
|---|
public static MatchType[] values()
for (MatchType c : MatchType.values()) System.out.println(c);
public static MatchType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String toString()
toString in class java.lang.Enum<MatchType>public MatchType getMatchType(java.lang.String match)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||