2 * Copyright (C) 2009 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.cdm
.io
.specimen
.excel
.in
;
12 import java
.util
.ArrayList
;
13 import java
.util
.List
;
14 import java
.util
.TreeMap
;
15 import java
.util
.UUID
;
17 import org
.apache
.log4j
.Logger
;
19 import eu
.etaxonomy
.cdm
.model
.common
.IdentifiableSource
;
26 public class NamedAreaLevellRow
{
27 @SuppressWarnings("unused")
28 private static final Logger logger
= Logger
.getLogger(NamedAreaLevellRow
.class);
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;
40 private TreeMap
<Integer
, IdentifiableSource
> sources
= new TreeMap
<Integer
, IdentifiableSource
>();
45 public NamedAreaLevellRow() {
49 // **************************** GETTER / SETTER *********************************/
52 public void setUuid(UUID uuid
) {
57 public UUID
getUuid() {
68 public String
getLabel() {
74 * @param label the label to set
76 public void setLabel(String label
) {
82 * @return the abbreviation
84 public String
getAbbreviation() {
90 * @param abbreviation the abbreviation to set
92 public void setAbbreviation(String abbreviation
) {
93 this.abbreviation
= abbreviation
;
98 * @return the description
100 public String
getDescription() {
106 * @param description the description to set
108 public void setDescription(String description
) {
109 this.description
= description
;
114 * @return the postfix
116 public String
getPostfix() {
122 * @param postfix the postfix to set
124 public void setPostfix(String postfix
) {
125 this.postfix
= postfix
;
130 * @return the geoserverLabel
132 public String
getGeoserverLabel() {
133 return geoserverLabel
;
138 * @param geoserverLabel the geoserverLabel to set
140 public void setGeoserverLabel(String geoserverLabel
) {
141 this.geoserverLabel
= geoserverLabel
;
146 * @return the geoServerAttribute
148 public String
getGeoServerAttribute() {
149 return geoServerAttribute
;
154 * @param geoServerAttribute the geoServerAttribute to set
156 public void setGeoServerAttribute(String geoServerAttribute
) {
157 this.geoServerAttribute
= geoServerAttribute
;
162 * @return the orderIndex
164 public String
getOrderIndex() {
170 * @param orderIndex the orderIndex to set
172 public void setOrderIndex(String orderIndex
) {
173 this.orderIndex
= orderIndex
;
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()){