protected static final String REFERENCE_COLUMN = "source";\r
\r
\r
- private Reference refMeikle1977 = ReferenceFactory.newGeneric();\r
- private Reference refMeikle1985 = ReferenceFactory.newGeneric();\r
+ private Reference<?> refMeikle1977 = ReferenceFactory.newGeneric();\r
+ private Reference<?> refMeikle1985 = ReferenceFactory.newGeneric();\r
\r
private Map<String, Taxon> taxonWithAuthorStore = new HashMap<String, Taxon>(); \r
private Map<String, Taxon> taxonNameOnlyStore = new HashMap<String, Taxon>();\r
return;\r
}\r
Taxon taxon = getTaxon(state, taxonStr);\r
- Reference ref = getReference(taxonLight.getReference());\r
+ Reference<?> ref = getReference(taxonLight.getReference());\r
if (taxon != null){\r
makeDistribution(state, taxon, taxonLight.getDistribution(), ref);\r
getTaxonService().save(taxon);\r
protected static final boolean NO_IMAGE_GALLERY = false;\r
protected static final boolean IMAGE_GALLERY = false;\r
\r
- private void makeDistribution(CyprusImportState state, Taxon taxon, String distributionStr, Reference ref) {\r
+ private void makeDistribution(CyprusImportState state, Taxon taxon, String distributionStr, Reference<?> ref) {\r
\r
// TaxonDescription description = getTaxonDescription(taxon, NO_IMAGE_GALLERY, CREATE);\r
TaxonDescription description = getNewDescription(state, taxon);\r
}\r
\r
private TaxonDescription getNewDescription(CyprusImportState state, Taxon taxon) {\r
- Reference excelRef = state.getConfig().getSourceReference();\r
+ Reference<?> excelRef = state.getConfig().getSourceReference();\r
TaxonDescription desc = TaxonDescription.NewInstance(taxon, false);\r
desc.setTitleCache(excelRef.getTitleCache() + " for " + taxon.getTitleCache(), true);\r
desc.addSource(null, null, excelRef, null);\r
}\r
}\r
for (Distribution distribution : toRemove){\r
- DescriptionBase desc = distribution.getInDescription();\r
+ DescriptionBase<?> desc = distribution.getInDescription();\r
desc.removeElement(distribution);\r
getDescriptionService().saveOrUpdate(desc);\r
}\r
return result;\r
}\r
\r
- private Reference getReference(String referenceStr) {\r
- Reference result;\r
+ private Reference<?> getReference(String referenceStr) {\r
+ Reference<?> result;\r
if ("Meikle 1977".equals(referenceStr)){\r
result = refMeikle1977;\r
}else if("Meikle 1985".equals(referenceStr)){\r
* \r
*/\r
private void loadTaxa() {\r
- List<String> propertyPaths = new ArrayList();\r
+ List<String> propertyPaths = new ArrayList<String>();\r
propertyPaths.add("*.name");\r
List<Taxon> taxonList = (List)getTaxonService().list(Taxon.class, null, null, null, propertyPaths);\r
for (Taxon taxon: taxonList){\r
getTermService().save(areaLevel);\r
}\r
\r
- TermVocabulary areaVocabulary = getVocabulary(CyprusTransformer.uuidCyprusDivisionsVocabulary, "Cyprus devisions", "Cyprus divisions", null, null, true);\r
+ TermVocabulary<NamedArea> areaVocabulary = getVocabulary(CyprusTransformer.uuidCyprusDivisionsVocabulary, "Cyprus devisions", "Cyprus divisions", null, null, true, NamedArea.NewInstance());\r
TdwgArea tdwg4Cyprus = (TdwgArea)getTermService().find(UUID.fromString("9d447b51-e363-4dde-ae40-84c55679983c"));\r
WaterbodyOrCountry isoCountryCyprus = (WaterbodyOrCountry)getTermService().find(UUID.fromString("4b13d6b8-7eca-4d42-8172-f2018051ca19"));\r
\r