本文整理匯總了Java中org.gbif.api.model.occurrence.Occurrence.getIssues方法的典型用法代碼示例。如果您正苦於以下問題:Java Occurrence.getIssues方法的具體用法?Java Occurrence.getIssues怎麽用?Java Occurrence.getIssues使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.gbif.api.model.occurrence.Occurrence
的用法示例。
在下文中一共展示了Occurrence.getIssues方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: OccurrenceWritable
import org.gbif.api.model.occurrence.Occurrence; //導入方法依賴的package包/類
public OccurrenceWritable(Occurrence occ, Integer cnt) {
taxonKey = occ.getTaxonKey();
ClassificationUtils.copyLinneanClassificationKeys(occ, this);
year = occ.getYear();
count = cnt;
pubOrgKey = occ.getPublishingOrgKey();
datasetKey = occ.getDatasetKey();
latitude = occ.getDecimalLatitude();
longitude = occ.getDecimalLongitude();
country = occ.getCountry();
publishingCountry = occ.getPublishingCountry();
basisOfRecord = occ.getBasisOfRecord();
protocol = occ.getProtocol();
issues = occ.getIssues();
}
示例2: assertEquivalence
import org.gbif.api.model.occurrence.Occurrence; //導入方法依賴的package包/類
private void assertEquivalence(Occurrence occ) {
assertNotNull(occ);
assertEquals((Double) ELEV, occ.getElevation());
assertEquals(ELEV_ACC, occ.getElevationAccuracy());
assertEquals(BOR, occ.getBasisOfRecord());
assertEquals(UNCERTAINTY_METERS, occ.getCoordinateUncertaintyInMeters());
assertEquals(CONTINENT, occ.getContinent());
assertEquals(COUNTRY, occ.getCountry());
assertEquals(DATASET_KEY, occ.getDatasetKey());
assertEquals(DATE_IDENTIFIED, occ.getDateIdentified());
assertEquals(DAY, occ.getDay());
assertEquals((Double) DEPTH, occ.getDepth());
assertEquals(DEPTH_ACC, occ.getDepthAccuracy());
assertEquals(ESTAB_MEANS, occ.getEstablishmentMeans());
assertEquals(EVENT_DATE, occ.getEventDate());
assertEquals(GEO_DATUM, occ.getGeodeticDatum());
assertEquals(PUB_COUNTRY, occ.getPublishingCountry());
assertEquals(INDIVIDUAL_COUNT, occ.getIndividualCount());
assertEquals(LAST_INTERPRETED, occ.getLastInterpreted());
assertEquals(LAT, occ.getDecimalLatitude(), 0.0001);
assertEquals(LIFE_STAGE, occ.getLifeStage());
assertEquals(LNG, occ.getDecimalLongitude(), 0.0001);
assertEquals(MOD, occ.getModified());
assertEquals((Integer) MONTH, occ.getMonth());
assertEquals(PUBLISHING_ORG_KEY, occ.getPublishingOrgKey());
assertEquals(PROTOCOL, occ.getProtocol());
assertEquals(SEX, occ.getSex());
assertEquals(STATE_PROV, occ.getStateProvince());
assertEquals(WATERBODY, occ.getWaterBody());
assertEquals((Integer) YEAR, occ.getYear());
// taxonomy
assertEquals(KINGDOM, occ.getKingdom());
assertEquals(PHYLUM, occ.getPhylum());
assertEquals(CLASS, occ.getClazz());
assertEquals(ORDER, occ.getOrder());
assertEquals(FAMILY, occ.getFamily());
assertEquals(GENUS, occ.getGenus());
assertEquals(SUBGENUS, occ.getSubgenus());
assertEquals(SPECIES, occ.getSpecies());
assertEquals(GENERIC_NAME, occ.getGenericName());
assertEquals(SPECIFIC_EPITHET, occ.getSpecificEpithet());
assertEquals(INFRA_SPECIFIC_EPITHET, occ.getInfraspecificEpithet());
assertEquals(TAXON_RANK, occ.getTaxonRank());
assertEquals(SCI_NAME, occ.getScientificName());
assertEquals((Integer) TAXON_KEY, occ.getTaxonKey());
assertEquals((Integer) KINGDOM_ID, occ.getKingdomKey());
assertEquals((Integer) PHYLUM_KEY, occ.getPhylumKey());
assertEquals((Integer) CLASS_ID, occ.getClassKey());
assertEquals((Integer) ORDER_KEY, occ.getOrderKey());
assertEquals((Integer) FAMILY_KEY, occ.getFamilyKey());
assertEquals((Integer) GENUS_KEY, occ.getGenusKey());
assertEquals(SUBGENUS_KEY, occ.getSubgenusKey());
assertEquals((Integer) SPECIES_KEY, occ.getSpeciesKey());
// type
assertEquals(TYPE_STATUS, occ.getTypeStatus());
assertEquals(TYPIFIED_NAME, occ.getTypifiedName());
// issues
Set<OccurrenceIssue> occIssues = occ.getIssues();
for (OccurrenceIssue issue : OccurrenceIssue.values()) {
assertTrue(occIssues.contains(issue));
}
}