Project

General

Profile

« Previous | Next » 

Revision d3c53a58

Added by Katja Luther over 7 years ago

specimen import changes

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/specimen/abcd206/in/Identification.java
17 17
public class Identification {
18 18

  
19 19
    private final String scientificName;
20
    private final String identifier;
20 21
    private final String preferred;
21 22
    private final String code;
22 23

  
23 24
    public Identification(String taxonName, String preferred) {
24
        this(taxonName, preferred, null);
25
        this(taxonName, preferred, null, null);
25 26
    }
26 27

  
27
    public Identification(String scientificName, String preferred, String code) {
28
    public Identification(String scientificName, String preferred, String code, String identifier) {
28 29
        super();
29 30
        this.scientificName = scientificName.trim();
30 31
        this.preferred = preferred.trim();
31
        this.code = code.trim();
32
        this.code = code;
33
        if (identifier != null){
34
            this.identifier = identifier.trim();
35
        } else{
36
            this.identifier = null;
37
        }
32 38
    }
33 39

  
34 40
    /**
......
60 66
        return "Identification [taxonName=" + scientificName + ", preferred=" + preferred + ", code=" + code + "]";
61 67
    }
62 68

  
69
    /**
70
     * @return the identifier
71
     */
72
    public String getIdentifier() {
73
        return identifier;
74
    }
75

  
63 76
}

Also available in: Unified diff