au.org.ala.names.search
Class MisappliedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by au.org.ala.names.search.SearchResultException
              extended by 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

Field Summary
 
Fields inherited from class au.org.ala.names.search.SearchResultException
errorType, results
 
Constructor Summary
MisappliedException(NameSearchResult match)
          Constructor to use of the first result is misapplied.
MisappliedException(NameSearchResult match, NameSearchResult misapplied)
          Constructor to use if the first result is accepted and second result is a misapplied synonym
 
Method Summary
 NameSearchResult getMatchedResult()
           
 NameSearchResult getMisappliedResult()
           
 void setMatchedResult(NameSearchResult matchedResult)
           
 void setMisappliedResult(NameSearchResult misappliedResult)
           
 
Methods inherited from class au.org.ala.names.search.SearchResultException
getErrorType, getResults
 
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
 

Constructor Detail

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 -
Method Detail

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.