au.org.ala.names.search
Class MisappliedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
au.org.ala.names.search.SearchResultException
au.org.ala.names.search.MisappliedException
- All Implemented Interfaces:
- java.io.Serializable
public class MisappliedException
- extends SearchResultException
Indicates that the matched name has been misapplied in the past.
If there is a "misappliedResult" value it means that there is also an acceptedConcept
for the same name.
- Author:
- Natasha Carter
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MisappliedException
public MisappliedException(NameSearchResult match)
- Constructor to use of the first result is misapplied.
- Parameters:
match -
MisappliedException
public MisappliedException(NameSearchResult match,
NameSearchResult misapplied)
- Constructor to use if the first result is accepted and second result is a misapplied synonym
- Parameters:
match - misapplied -
getMatchedResult
public NameSearchResult getMatchedResult()
setMatchedResult
public void setMatchedResult(NameSearchResult matchedResult)
getMisappliedResult
public NameSearchResult getMisappliedResult()
setMisappliedResult
public void setMisappliedResult(NameSearchResult misappliedResult)
Copyright © 2014. All Rights Reserved.