au.org.ala.checklist.lucene.model
Class NameSearchResult
java.lang.Object
au.org.ala.checklist.lucene.model.NameSearchResult
public class NameSearchResult
- extends java.lang.Object
A model to store the required information in a search result
This includes the type of match that was used to get the result
- Author:
- Natasha
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NameSearchResult
public NameSearchResult(java.lang.String id,
java.lang.String lsid,
MatchType type)
NameSearchResult
public NameSearchResult(org.apache.lucene.document.Document doc,
MatchType type)
getSynonymType
public SynonymType getSynonymType()
getRankClassification
public LinnaeanRankClassification getRankClassification()
getKingdom
public java.lang.String getKingdom()
getLsid
public java.lang.String getLsid()
- Return the LSID for the result if it is not null otherwise return the id.
- Returns:
getId
public java.lang.String getId()
getMatchType
public MatchType getMatchType()
setMatchType
public void setMatchType(MatchType type)
getCleanName
public java.lang.String getCleanName()
setCleanName
public void setCleanName(java.lang.String name)
hasBeenCleaned
public boolean hasBeenCleaned()
isHomonym
public boolean isHomonym()
isSynonym
public boolean isSynonym()
getSynonymLsid
@Deprecated
public java.lang.String getSynonymLsid()
- Deprecated. Use
getAcceptedLsid() instead
- When the LSID for the synonym is null return the ID for the synonym
- Returns:
getAcceptedLsid
public java.lang.String getAcceptedLsid()
- Returns:
- The accepted LSID for this name. When the
name is not a synonym null is returned
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getRank
public RankType getRank()
setRank
public void setRank(RankType rank)
getLeft
public java.lang.String getLeft()
setLeft
public void setLeft(java.lang.String left)
getRight
public java.lang.String getRight()
setRight
public void setRight(java.lang.String right)
Copyright © 2014. All Rights Reserved.