Project

General

Profile

« Previous | Next » 

Revision 539b7820

Added by Andreas Müller over 5 years ago

cleanup

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/greece/FloraHellenicaTaxonImport.java
94 94
        initOtherTerms(state);
95 95

  
96 96
        String line = state.getCurrentLine() + ": ";
97
        HashMap<String, String> record = state.getOriginalRecord();
97
        Map<String, String> record = state.getOriginalRecord();
98 98

  
99 99
        Set<String> keys = record.keySet();
100 100
        for (String key: keys) {
......
185 185
    private void makeChorologicalCategory(SimpleExcelTaxonImportState<CONFIG> state, String line, String noStr,
186 186
            TaxonDescription desc) {
187 187

  
188
        HashMap<String, String> record = state.getOriginalRecord();
188
        Map<String, String> record = state.getOriginalRecord();
189 189
        String valueStr = getValue(record, CHOROLOGICAL_CATEGOGY);
190 190

  
191 191
        String value = valueStr;
......
260 260
     */
261 261
    private void makeLifeform(SimpleExcelTaxonImportState<CONFIG> state, String line, String noStr,
262 262
            TaxonDescription desc) {
263
        HashMap<String, String> record = state.getOriginalRecord();
263
        Map<String, String> record = state.getOriginalRecord();
264 264
        String value = getValue(record, LIFE_FORM);
265 265
        String[] splits = value.split("\\s+");
266 266
        if (splits.length > 2){
......
309 309
     */
310 310
    private void handleHabitat(SimpleExcelTaxonImportState<CONFIG> state, CategoricalData catData, String label,
311 311
            UUID uuidHabitat, String line, String noStr) {
312
        HashMap<String, String> record = state.getOriginalRecord();
312
        Map<String, String> record = state.getOriginalRecord();
313 313
        String value = getValue(record, "" + label);
314 314
        if (value == null){
315 315
            //do nothing
......
354 354
     * @param noStr
355 355
     * @return
356 356
     */
357
    private Taxon makeTaxon(SimpleExcelTaxonImportState<CONFIG> state, String line, HashMap<String, String> record,
357
    private Taxon makeTaxon(SimpleExcelTaxonImportState<CONFIG> state, String line, Map<String, String> record,
358 358
            String noStr) {
359 359

  
360 360
        TaxonNode familyTaxon = getFamilyTaxon(record, state);
......
457 457
     * @return
458 458
     */
459 459
    private TaxonNode makeGenusNode(SimpleExcelTaxonImportState<CONFIG> state,
460
            HashMap<String, String> record, String genusStr) {
460
            Map<String, String> record, String genusStr) {
461 461
        IBotanicalName name = TaxonNameFactory.NewBotanicalInstance(Rank.GENUS());
462 462
        name.setGenusOrUninomial(genusStr);
463 463
        name = replaceNameAuthorsAndReferences(state, name);
......
486 486
     * @param state
487 487
     * @return
488 488
     */
489
    private TaxonNode getFamilyTaxon(HashMap<String, String> record, SimpleExcelTaxonImportState<CONFIG> state) {
489
    private TaxonNode getFamilyTaxon(Map<String, String> record, SimpleExcelTaxonImportState<CONFIG> state) {
490 490
        String familyStr = getValue(record, "Family");
491 491
        if (familyStr == null){
492 492
            return null;
......
518 518
     * @param state
519 519
     * @return
520 520
     */
521
    private TaxonNode getGroupTaxon(HashMap<String, String> record, SimpleExcelTaxonImportState<CONFIG> state) {
521
    private TaxonNode getGroupTaxon(Map<String, String> record, SimpleExcelTaxonImportState<CONFIG> state) {
522 522
        String groupStr = getValue(record, "Group");
523 523
        if (groupStr == null){
524 524
            return null;
......
575 575
     */
576 576
    private void handleDistribution(SimpleExcelTaxonImportState<CONFIG> state,
577 577
                TaxonDescription desc, String key, UUID uuid, String line, String id) {
578
        HashMap<String, String> record = state.getOriginalRecord();
578
        Map<String, String> record = state.getOriginalRecord();
579 579
        String value = getValue(record, key);
580 580
        if (value == null || value.matches("[x\\.\\?]")){
581 581
            NamedArea area = getNamedArea(state, uuid, null, null, null, null, null);
......
603 603

  
604 604
    private void handleStatus(SimpleExcelTaxonImportState<CONFIG> state,
605 605
            TaxonDescription desc, String key, UUID uuid, String line, String id) {
606
        HashMap<String, String> record = state.getOriginalRecord();
606
        Map<String, String> record = state.getOriginalRecord();
607 607
        String value = getValue(record, key);
608 608
        DescriptionElementBase descEl;
609 609
        if (state.getConfig().isStatusAsDistribution()){
......
654 654
    private void handleSingleStatus(SimpleExcelTaxonImportState<CONFIG> state, CategoricalData catData,
655 655
            UUID uuidStatus, String line) {
656 656

  
657
        HashMap<String, String> record = state.getOriginalRecord();
657
        Map<String, String> record = state.getOriginalRecord();
658 658
        String value = getValue(record, "Status");
659 659
        if (value == null || value.matches("(\\??Range-restricted|\\??Xenophyte)")){
660 660
            State statusState = this.getStateTerm(state, uuidStatus, null, null, null, statusVoc);

Also available in: Unified diff