Revision 892efc69
Added by Andreas Kohlbecker almost 14 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/description/PresenceAbsenceTermBase.java | ||
---|---|---|
17 | 17 |
import javax.persistence.Entity; |
18 | 18 |
import javax.xml.bind.annotation.XmlAccessType; |
19 | 19 |
import javax.xml.bind.annotation.XmlAccessorType; |
20 |
import javax.xml.bind.annotation.XmlRootElement; |
|
21 | 20 |
import javax.xml.bind.annotation.XmlSeeAlso; |
22 | 21 |
import javax.xml.bind.annotation.XmlType; |
23 | 22 |
|
24 | 23 |
import org.apache.log4j.Logger; |
25 | 24 |
import org.hibernate.envers.Audited; |
26 | 25 |
|
27 |
import eu.etaxonomy.cdm.common.CdmUtils; |
|
28 | 26 |
import eu.etaxonomy.cdm.model.common.DefinedTermBase; |
29 |
import eu.etaxonomy.cdm.model.common.ILoadableTerm; |
|
30 | 27 |
import eu.etaxonomy.cdm.model.common.Language; |
31 | 28 |
import eu.etaxonomy.cdm.model.common.OrderedTermBase; |
32 |
import eu.etaxonomy.cdm.model.common.TermVocabulary; |
|
33 | 29 |
import eu.etaxonomy.cdm.model.location.NamedArea; |
34 | 30 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
35 | 31 |
|
... | ... | |
55 | 51 |
@Audited |
56 | 52 |
public abstract class PresenceAbsenceTermBase<T extends PresenceAbsenceTermBase<?>> extends OrderedTermBase<T> { |
57 | 53 |
private static final long serialVersionUID = 1596291470042068880L; |
54 |
@SuppressWarnings("unused") |
|
58 | 55 |
private static final Logger logger = Logger.getLogger(PresenceAbsenceTermBase.class); |
59 | 56 |
|
60 |
private static Map<String, UUID> map = new HashMap<String, UUID>(); |
|
61 | 57 |
private String defaultColor = "000000"; |
62 | 58 |
|
63 | 59 |
|
... | ... | |
99 | 95 |
return newInstance; |
100 | 96 |
} |
101 | 97 |
|
102 |
// public PresenceTerm getPresenceAbsenceTermByAbbreviation(String abbrev){ |
|
103 |
// UUID uuid = map.get(abbrev); |
|
104 |
// if (uuid == null){ |
|
105 |
// logger.warn("Unknown Abbreviation for PresenceAbsenceTerm: " + CdmUtils.Nz(abbrev)); |
|
106 |
// return null; |
|
107 |
// } |
|
108 |
// return (uuid); |
|
109 |
// } |
|
110 |
|
|
111 |
|
|
112 | 98 |
/** |
113 | 99 |
* @return the defaultColor |
114 | 100 |
*/ |
Also available in: Unified diff
merging /branches/cdmlib/SPRINT-Chichorieae1/ to trunk