au.org.ala.names.model
Class MetricsResultDTO
java.lang.Object
au.org.ala.names.model.MetricsResultDTO
public class MetricsResultDTO
- extends java.lang.Object
Stores the data the data that makes up a name match includes metrics such as name types and errors
Allows a metrics to be returned even when a match is not found.
- Author:
- Natasha Carter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetricsResultDTO
public MetricsResultDTO()
getErrors
public java.util.Set<ErrorType> getErrors()
- Returns:
- ALl the ErrorTypes that occurred during the match. This can have
multiple values when a recursive search is performed.
setErrors
public void setErrors(java.util.Set<ErrorType> errors)
getNameType
public org.gbif.ecat.voc.NameType getNameType()
- Returns:
- The "parsed" name type
NameType
setNameType
public void setNameType(org.gbif.ecat.voc.NameType nameType)
getResult
public NameSearchResult getResult()
- Returns:
- The result of the search OR null when no result has been found.
setResult
public void setResult(NameSearchResult result)
getLastException
public SearchResultException getLastException()
- Returns:
- The last error that occurred during the search.
setLastException
public void setLastException(SearchResultException lastException)
Copyright © 2014. All Rights Reserved.