2 * Copyright (C) 2014 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.cdm
.ext
.occurrence
.gbif
;
11 import eu
.etaxonomy
.cdm
.common
.URI
;
12 import eu
.etaxonomy
.cdm
.ext
.occurrence
.DataResponse
;
13 import eu
.etaxonomy
.cdm
.facade
.DerivedUnitFacade
;
14 import eu
.etaxonomy
.cdm
.model
.name
.TaxonName
;
17 * Wrapper class which holds a {@link DerivedUnitFacade} which was parsed from a GBIF JSON response.
18 * Additionally it holds the {@link URI} to query the GBIF data set web service which
19 * holds the endpoint URL of the original record and the {@link GbifDataSetProtocol}
23 public class GbifResponse
extends DataResponse
{
25 private final GbifDataSetProtocol dataSetProtocol
;
27 private final TaxonName scientificName
;
29 public GbifResponse(DerivedUnitFacade derivedUnitFacade
, URI dataSetUrl
, GbifDataSetProtocol dataSetProtocol
, String
[] tripleID
, TaxonName scientificName
) {
30 super(derivedUnitFacade
,dataSetUrl
, tripleID
);
31 this.dataSetProtocol
= dataSetProtocol
;
32 this.scientificName
= scientificName
;
35 public DerivedUnitFacade
getDerivedUnitFacade() {
36 return (DerivedUnitFacade
)dataHolder
;
39 public URI
getDataSetUri() {
43 public GbifDataSetProtocol
getDataSetProtocol() {
44 return dataSetProtocol
;
47 public String
[] getTripleID(){
51 public TaxonName
getScientificName() {
52 return scientificName
;