latest FE import features
[cdmlib-apps.git] / cdm-pesi / src / main / java / eu / etaxonomy / cdm / io / pesi / faunaEuropaea / FaunaEuropaeaReferenceTaxon.java
1 /**
2 * Copyright (C) 2009 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
8 */
9
10 package eu.etaxonomy.cdm.io.pesi.faunaEuropaea;
11
12 import java.util.HashSet;
13 import java.util.Set;
14 import java.util.UUID;
15
16 /**
17 * @author a.babadshanjan
18 * @created 13.09.2009
19 * @version 1.0
20 */
21 public class FaunaEuropaeaReferenceTaxon {
22
23 private UUID taxonUuid;
24 private int taxonId;
25 private Set<FaunaEuropaeaReference> references;
26
27 /**
28 * @param references
29 */
30 public FaunaEuropaeaReferenceTaxon() {
31 this.references = new HashSet<FaunaEuropaeaReference>();
32 }
33 /**
34 * @param taxonUuid
35 */
36 public FaunaEuropaeaReferenceTaxon(UUID taxonUuid) {
37 this();
38 this.taxonUuid = taxonUuid;
39 }
40
41 /**
42 * @param taxonUuid
43 */
44 public FaunaEuropaeaReferenceTaxon(Integer taxonId) {
45 this();
46 this.taxonId = taxonId;
47 }
48
49 /**
50 * @return the taxonUuid
51 */
52 public UUID getTaxonUuid() {
53 return taxonUuid;
54 }
55 /**
56 * @param taxonUuid the taxonUuid to set
57 */
58 public void setTaxonUuid(UUID taxonUuid) {
59 this.taxonUuid = taxonUuid;
60 }
61 /**
62 * @param taxonUuid the taxonId to set
63 */
64 public void setTaxonId(Integer taxonId) {
65 this.taxonId = taxonId;
66 }
67
68 /**
69 * @return the distributions
70 */
71 public Set<FaunaEuropaeaReference> getReferences() {
72 return references;
73 }
74 /**
75 * @param distributions the distributions to set
76 */
77 public void setReferences(Set<FaunaEuropaeaReference> references) {
78 this.references = references;
79 }
80
81 public void addReference(FaunaEuropaeaReference fauEuReference) {
82 references.add(fauEuReference);
83 }
84 }