Package org.gbif.api.model.crawler
Class DwcaValidationReport
- java.lang.Object
-
- org.gbif.api.model.crawler.DwcaValidationReport
-
@Immutable @ThreadSafe public class DwcaValidationReport extends Object
A report of the validity of a DwC-A. A DwC-A can comprise of a core and extensions. This implementation is intended to be used as follows:- Constructed with an OccurrenceValidationReport when the core of the DwC-A is an Occurrence
- Constructed with a GenericValidationReport when the core of the DwC-A is Taxon or Sample - optionally an occurrence report may be given in addition to represent the occurrence extension validity
-
-
Constructor Summary
Constructors Constructor Description DwcaValidationReport(UUID datasetKey, String invalidationReason)
DwcaValidationReport(UUID datasetKey, GenericValidationReport genericReport)
DwcaValidationReport(UUID datasetKey, OccurrenceValidationReport occurrenceReport)
DwcaValidationReport(UUID datasetKey, OccurrenceValidationReport occurrenceReport, GenericValidationReport genericReport, String invalidationReason)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
UUID
getDatasetKey()
GenericValidationReport
getGenericReport()
String
getInvalidationReason()
OccurrenceValidationReport
getOccurrenceReport()
int
hashCode()
boolean
isValid()
String
toString()
-
-
-
Constructor Detail
-
DwcaValidationReport
public DwcaValidationReport(UUID datasetKey, OccurrenceValidationReport occurrenceReport, GenericValidationReport genericReport, String invalidationReason)
-
DwcaValidationReport
public DwcaValidationReport(UUID datasetKey, OccurrenceValidationReport occurrenceReport)
-
DwcaValidationReport
public DwcaValidationReport(UUID datasetKey, GenericValidationReport genericReport)
-
DwcaValidationReport
public DwcaValidationReport(UUID datasetKey, String invalidationReason)
-
-
Method Detail
-
isValid
public boolean isValid()
-
getDatasetKey
public UUID getDatasetKey()
-
getInvalidationReason
public String getInvalidationReason()
-
getOccurrenceReport
public OccurrenceValidationReport getOccurrenceReport()
-
getGenericReport
public GenericValidationReport getGenericReport()
-
-