Revision 531fc7bc
Added by Andreas Müller almost 8 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/taxonx2013/TaxonXXMLFieldGetter.java | ||
---|---|---|
36 | 36 |
logger.info("CLASSIFICATION "+classification); |
37 | 37 |
this.taxonXstate=taxonXstate; |
38 | 38 |
modsextractor = new TaxonXModsExtractor(importer); |
39 |
Reference<?> originalSourceUrl =taxonXstate.getConfig().getOriginalSourceURL();
|
|
39 |
Reference originalSourceUrl =taxonXstate.getConfig().getOriginalSourceURL(); |
|
40 | 40 |
treatmentextractor = new TaxonXTreatmentExtractor(nomenclaturalCode,classification,importer, taxonXstate,featuresMap,originalSourceUrl ); |
41 | 41 |
} |
42 | 42 |
|
... | ... | |
46 | 46 |
* |
47 | 47 |
*@return the created Reference object |
48 | 48 |
**/ |
49 |
public Reference<?> parseMods(){
|
|
49 |
public Reference parseMods(){ |
|
50 | 50 |
// System.out.println("PARSEMODS"); |
51 | 51 |
//taxonx |
52 | 52 |
Node root = doc.getFirstChild(); |
... | ... | |
54 | 54 |
|
55 | 55 |
//taxonHeader, taxonBody |
56 | 56 |
NodeList nodes = root.getChildNodes(); |
57 |
Reference<?> ref = null;
|
|
57 |
Reference ref = null; |
|
58 | 58 |
for (int i=0; i< nodes.getLength();i++) { |
59 | 59 |
// System.out.println(nodes.item(i).getNodeName()); |
60 | 60 |
if (nodes.item(i).getNodeName().equalsIgnoreCase("tax:taxonxheader")){ |
... | ... | |
82 | 82 |
* @param ref : the current reference, extracted from the mods |
83 | 83 |
* @param sourcename: the URI of the TaxonX document |
84 | 84 |
*/ |
85 |
public void parseTreatment(Reference<?> ref, URI sourceName){
|
|
85 |
public void parseTreatment(Reference ref, URI sourceName){ |
|
86 | 86 |
System.out.println("PARSETREATMENT "+ref); |
87 | 87 |
//taxonx |
88 | 88 |
Node root = doc.getFirstChild(); |
Also available in: Unified diff
Remove generics from Reference in cdmlib (except for cdmlib-model) #5830