eu.etaxonomy.cdm.model.common
Class Representation
java.lang.Object
eu.etaxonomy.cdm.model.common.CdmBase
eu.etaxonomy.cdm.model.common.VersionableEntity
eu.etaxonomy.cdm.model.common.AnnotatableEntity
eu.etaxonomy.cdm.model.common.LanguageStringBase
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
| 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. |
| 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 |
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.')
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.