minor
[cdmlib.git] / cdmlib-io / src / main / java / eu / etaxonomy / cdm / io / specimen / excel / in / NamedAreaLevellRow.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.specimen.excel.in;
11
12 import java.util.ArrayList;
13 import java.util.List;
14 import java.util.TreeMap;
15 import java.util.UUID;
16
17 import org.apache.log4j.Logger;
18
19 import eu.etaxonomy.cdm.model.common.IdentifiableSource;
20
21 /**
22 * @author a.mueller
23 * @created 08.04.2011
24 * @version 1.0
25 */
26 public class NamedAreaLevellRow {
27 @SuppressWarnings("unused")
28 private static final Logger logger = Logger.getLogger(NamedAreaLevellRow.class);
29
30 private UUID uuid = null;
31 private String label = null;
32 private String abbreviation = null;
33 private String description = null;
34 private String postfix = null;
35 private String geoserverLabel = null;
36 private String geoServerAttribute = null;
37 private String orderIndex = null;
38
39
40 private TreeMap<Integer, IdentifiableSource> sources = new TreeMap<Integer, IdentifiableSource>();
41
42
43
44
45 public NamedAreaLevellRow() {
46 }
47
48
49 // **************************** GETTER / SETTER *********************************/
50
51
52 public void setUuid(UUID uuid) {
53 this.uuid = uuid;
54 }
55
56
57 public UUID getUuid() {
58 return uuid;
59 }
60
61
62
63
64
65 /**
66 * @return the label
67 */
68 public String getLabel() {
69 return label;
70 }
71
72
73 /**
74 * @param label the label to set
75 */
76 public void setLabel(String label) {
77 this.label = label;
78 }
79
80
81 /**
82 * @return the abbreviation
83 */
84 public String getAbbreviation() {
85 return abbreviation;
86 }
87
88
89 /**
90 * @param abbreviation the abbreviation to set
91 */
92 public void setAbbreviation(String abbreviation) {
93 this.abbreviation = abbreviation;
94 }
95
96
97 /**
98 * @return the description
99 */
100 public String getDescription() {
101 return description;
102 }
103
104
105 /**
106 * @param description the description to set
107 */
108 public void setDescription(String description) {
109 this.description = description;
110 }
111
112
113 /**
114 * @return the postfix
115 */
116 public String getPostfix() {
117 return postfix;
118 }
119
120
121 /**
122 * @param postfix the postfix to set
123 */
124 public void setPostfix(String postfix) {
125 this.postfix = postfix;
126 }
127
128
129 /**
130 * @return the geoserverLabel
131 */
132 public String getGeoserverLabel() {
133 return geoserverLabel;
134 }
135
136
137 /**
138 * @param geoserverLabel the geoserverLabel to set
139 */
140 public void setGeoserverLabel(String geoserverLabel) {
141 this.geoserverLabel = geoserverLabel;
142 }
143
144
145 /**
146 * @return the geoServerAttribute
147 */
148 public String getGeoServerAttribute() {
149 return geoServerAttribute;
150 }
151
152
153 /**
154 * @param geoServerAttribute the geoServerAttribute to set
155 */
156 public void setGeoServerAttribute(String geoServerAttribute) {
157 this.geoServerAttribute = geoServerAttribute;
158 }
159
160
161 /**
162 * @return the orderIndex
163 */
164 public String getOrderIndex() {
165 return orderIndex;
166 }
167
168
169 /**
170 * @param orderIndex the orderIndex to set
171 */
172 public void setOrderIndex(String orderIndex) {
173 this.orderIndex = orderIndex;
174 }
175
176
177 private<T extends Object> List<T> getOrdered(TreeMap<Integer, T> tree) {
178 List<T> result = new ArrayList<T>();
179 for (T value : tree.values()){
180 result.add(value);
181 }
182 return result;
183 }
184
185
186 }