2 * Copyright (C) 2007 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
.model
.common
;
13 import org
.apache
.log4j
.Logger
;
16 import javax
.persistence
.*;
19 * workaround for enumerations
22 * @created 08-Nov-2007 13:06:49
25 public class Representation
extends LanguageString
{
26 static Logger logger
= Logger
.getLogger(Representation
.class);
29 private String abbreviatedLabel
;
31 public Representation() {
34 public Representation(String text
, String label
, Language lang
) {
40 public String
getLabel(){
43 public void setLabel(String label
){
47 public String
getAbbreviatedLabel(){
48 return this.abbreviatedLabel
;
50 public void setAbbreviatedLabel(String abbreviatedLabel
){
51 this.abbreviatedLabel
= abbreviatedLabel
;
55 public String
getDescription(){
56 return super.getText();
58 protected void setDescription(String text
) {
62 public String
toString(){
63 // we dont need the language returned too, do we?
65 // if(getLanguage()==null || getLanguage().getLabel()==null){
68 // return getLabel()+"("+ getLanguage().getLabel()+")";