eu.etaxonomy.cdm.model.common
Class Representation

java.lang.Object
  extended by eu.etaxonomy.cdm.model.common.CdmBase
      extended by eu.etaxonomy.cdm.model.common.VersionableEntity
          extended by eu.etaxonomy.cdm.model.common.AnnotatableEntity
              extended by eu.etaxonomy.cdm.model.common.LanguageStringBase
                  extended by eu.etaxonomy.cdm.model.common.Representation
All Implemented Interfaces:
IAnnotatableEntity, ICdmBase, IVersionableEntity, Serializable, Cloneable

@Indexed(index="eu.etaxonomy.cdm.model.common.Representation")
public class Representation
extends LanguageStringBase

workaround for enumerations

Version:
1.0
Author:
m.doering
See Also:
Serialized Form

Field Summary
 
Fields inherited from class eu.etaxonomy.cdm.model.common.LanguageStringBase
language, text
 
Fields inherited from class eu.etaxonomy.cdm.model.common.AnnotatableEntity
annotations, markers
 
Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase
uuid
 
Constructor Summary
Representation()
           
Representation(String text, String label, String abbreviatedLabel, Language language)
          text represents an explanation/declaration ('The name is illegitimate according to ICBN'); label a string identifier ('illegitimate name'); abbreviatedLabel a shortened string for the label ('nom.
 
Method Summary
 Object clone()
          Clones this Representation.
 String getAbbreviatedLabel()
           
 String getDescription()
          Returns the description of this representation see getText()
 String getLabel()
           
 String getText()
          Returns the description of this representation.
static Representation NewInstance(String text, String label, String abbreviatedLabel, Language lang)
           
 void setAbbreviatedLabel(String abbreviatedLabel)
           
protected  void setDescription(String text)
           
 void setLabel(String label)
           
 String toString()
          Overrides Object.toString().
 
Methods inherited from class eu.etaxonomy.cdm.model.common.LanguageStringBase
getLanguage, getLanguageLabel, getLanguageLabel, setLanguage, setText
 
Methods inherited from class eu.etaxonomy.cdm.model.common.AnnotatableEntity
addAnnotation, addMarker, getAnnotations, getMarkers, hasMarker, hasMarker, removeAnnotation, removeMarker
 
Methods inherited from class eu.etaxonomy.cdm.model.common.VersionableEntity
equals, getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
 
Methods inherited from class eu.etaxonomy.cdm.model.common.CdmBase
addPropertyChangeListener, addPropertyChangeListener, clone, deproxy, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUuid, hashCode, hasListeners, invokeSetMethod, invokeSetMethodWithNull, isInstanceOf, removePropertyChangeListener, removePropertyChangeListener, setCreated, setCreatedBy, setId, setUuid
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface eu.etaxonomy.cdm.model.common.IVersionableEntity
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
 
Methods inherited from interface eu.etaxonomy.cdm.model.common.ICdmBase
getCreated, getCreatedBy, getId, getUuid, setCreated, setCreatedBy, setId, setUuid
 

Constructor Detail

Representation

public Representation()

Representation

public Representation(String text,
                      String label,
                      String abbreviatedLabel,
                      Language language)
text represents an explanation/declaration ('The name is illegitimate according to ICBN'); label a string identifier ('illegitimate name'); abbreviatedLabel a shortened string for the label ('nom. illeg.')

Method Detail

NewInstance

public static Representation NewInstance(String text,
                                         String label,
                                         String abbreviatedLabel,
                                         Language lang)
Parameters:
text -
label -
lang -
Returns:

getLabel

public String getLabel()

setLabel

public void setLabel(String label)

getAbbreviatedLabel

public String getAbbreviatedLabel()

setAbbreviatedLabel

public void setAbbreviatedLabel(String abbreviatedLabel)

getDescription

public String getDescription()
Returns the description of this representation see getText()

Returns:

setDescription

protected void setDescription(String text)

getText

public String getText()
Returns the description of this representation.

Overrides:
getText in class LanguageStringBase
See Also:
getDescription()

toString

public String toString()
Description copied from class: CdmBase
Overrides Object.toString(). This returns an String that identifies the object well without beeing necessarily unique. Specification: This method should never call other object' methods so it can be well used for debugging without problems like lazy loading, unreal states etc. Note: If overriding this method's javadoc always copy or link the above requirement. If not overwritten by a subclass method returns the class, id and uuid as a string for any CDM object. For example: Taxon#13

Overrides:
toString in class CdmBase
See Also:
Object.toString()

clone

public Object clone()
Clones this Representation. This is a shortcut that enables to create a new instance that differs only slightly from this Representation by modifying only some of the attributes.

Overrides:
clone in class LanguageStringBase
See Also:
LanguageStringBase.clone(), Object.clone()


Copyright © 2007-2012 EDIT. All Rights Reserved.