Revision e3b843e7
Added by Patricia Kelbert over 15 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/abcd206/UnitsGatheringArea.java | ||
---|---|---|
69 | 69 |
*/ |
70 | 70 |
public void setCountry(String iso, String fullName, SpecimenImportConfigurator config){ |
71 | 71 |
WaterbodyOrCountry country=null; |
72 |
List<WaterbodyOrCountry>countries; |
|
73 |
if (iso != null) |
|
72 |
List<WaterbodyOrCountry>countries = new ArrayList<WaterbodyOrCountry>();
|
|
73 |
if (iso != null && iso !="")
|
|
74 | 74 |
country = config.getCdmAppController().getOccurrenceService().getCountryByIso(iso); |
75 | 75 |
if (country != null) |
76 | 76 |
this.area.addWaterbodyOrCountry(country); |
77 | 77 |
|
78 | 78 |
else{ |
79 |
if (fullName != "") |
|
79 | 80 |
countries = config.getCdmAppController().getOccurrenceService().getWaterbodyOrCountryByName(fullName); |
80 | 81 |
if (countries.size() >0) |
81 | 82 |
this.area.addWaterbodyOrCountry(countries.get(0)); |
Also available in: Unified diff
ABCD import & SYNTHESYS