yourkit profiler
[cdmlib.git] / cdmlib-io / src / main / java / eu / etaxonomy / cdm / io / faunaEuropaea / FaunaEuropaeaTaxon.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.faunaEuropaea;
11
12 import java.util.UUID;
13
14 /**
15 * @author a.babadshanjan
16 * @created 26.05.2009
17 * @version 1.0
18 */
19 public class FaunaEuropaeaTaxon {
20
21 private UUID uuid;
22 // private UUID nameUuid;
23 private int id;
24 private int parentId;
25 private int originalGenusId;
26 private int rankId;
27 private String localName;
28 private String originalGenusName = "";
29 private int year;
30 // private int authorId;
31 private String authorName;
32 private boolean parenthesis = false;
33 private boolean valid = false;
34
35 /**
36 * @return the authorName
37 */
38 public String getAuthorName() {
39 return authorName;
40 }
41
42 /**
43 * @param authorName the authorName to set
44 */
45 public void setAuthorName(String authorName) {
46 this.authorName = authorName;
47 }
48
49 /**
50 * @return the parenthesis
51 */
52 public boolean isParenthesis() {
53 return parenthesis;
54 }
55
56 /**
57 * @param parenthesis the parenthesis to set
58 */
59 public void setParenthesis(boolean parenthesis) {
60 this.parenthesis = parenthesis;
61 }
62
63 public FaunaEuropaeaTaxon() {
64 this.id = 0;
65 this.parentId = 0;
66 this.rankId = 0;
67 }
68
69 public FaunaEuropaeaTaxon(String name, int parentId) {
70 this(name, parentId, null);
71 }
72
73 public FaunaEuropaeaTaxon(String scientificName, int parentId, String reference) {
74 this.parentId = parentId;
75 this.localName = scientificName;
76 }
77
78 /**
79 * @return the parentId
80 */
81 public int getParentId() {
82 return parentId;
83 }
84 /**
85 * @param parentId the parentId to set
86 */
87 public void setParentId(int parentId) {
88 this.parentId = parentId;
89 }
90 /**
91 * @return the name
92 */
93 public String getLocalName() {
94 return localName;
95 }
96 /**
97 * @param name the name to set
98 */
99 public void setLocalName(String scientificName) {
100 this.localName = scientificName;
101 }
102
103 /**
104 * @return the id
105 */
106 public int getId() {
107 return id;
108 }
109
110 /**
111 * @param id the id to set
112 */
113 public void setId(int id) {
114 this.id = id;
115 }
116
117 /**
118 * @return the rankId
119 */
120 public int getRankId() {
121 return rankId;
122 }
123
124 /**
125 * @param rankId the rankId to set
126 */
127 public void setRankId(int rankId) {
128 this.rankId = rankId;
129 }
130
131 /**
132 * @return the uuid
133 */
134 public UUID getUuid() {
135 return uuid;
136 }
137
138 /**
139 * @param uuid the uuid to set
140 */
141 public void setUuid(UUID uuid) {
142 this.uuid = uuid;
143 }
144
145 // /**
146 // * @return the nameUuid
147 // */
148 // public UUID getNameUuid() {
149 // return nameUuid;
150 // }
151 //
152 // /**
153 // * @param nameUuid the nameUuid to set
154 // */
155 // public void setNameUuid(UUID nameUuid) {
156 // this.nameUuid = nameUuid;
157 // }
158
159 /**
160 * @return the year
161 */
162 public int getYear() {
163 return year;
164 }
165
166 /**
167 * @param year the year to set
168 */
169 public void setYear(int year) {
170 this.year = year;
171 }
172
173 /**
174 * @return the author
175 */
176 public String getAuthor() {
177 return authorName;
178 }
179
180 /**
181 * @param author the author to set
182 */
183 public void setAuthor(String author) {
184 this.authorName = author;
185 }
186
187 /**
188 * @return the valid
189 */
190 public boolean isValid() {
191 return valid;
192 }
193
194 /**
195 * @param valid the valid to set
196 */
197 public void setValid(boolean valid) {
198 this.valid = valid;
199 }
200
201 /**
202 * @return the originalGenusId
203 */
204 public int getOriginalGenusId() {
205 return originalGenusId;
206 }
207
208 /**
209 * @param originalGenusId the originalGenusId to set
210 */
211 public void setOriginalGenusId(int originalGenusId) {
212 this.originalGenusId = originalGenusId;
213 }
214
215 /**
216 * @return the originalGenusName
217 */
218 public String getOriginalGenusName() {
219 return originalGenusName;
220 }
221
222 /**
223 * @param originalGenusName the originalGenusName to set
224 */
225 public void setOriginalGenusName(String originalGenusName) {
226 this.originalGenusName = originalGenusName;
227 }
228
229 // /**
230 // * @return the authorId
231 // */
232 // public int getAuthorId() {
233 // return authorId;
234 // }
235 //
236 // /**
237 // * @param authorId the authorId to set
238 // */
239 // public void setAuthorId(int authorId) {
240 // this.authorId = authorId;
241 // }
242
243 }