@Entity @Indexed(index="eu.etaxonomy.cdm.model.description.DescriptionElementBase") public class TaxonInteraction extends DescriptionElementBase implements IMultiLanguageTextHolder, java.lang.Cloneable
taxon
and a second one (for instance a parasite, a prey or a hybrid parent).
Only taxon descriptions
may contain taxon interactions.
The interaction itself is described by a multilanguage text
.
This class corresponds to:
annotations, markers
CLOB_LENGTH, uuid
Constructor and Description |
---|
TaxonInteraction()
Class constructor: creates a new empty taxon interaction instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clones this taxon interaction.
|
java.util.Map<Language,LanguageString> |
getDescription()
Returns the
multilanguage text used to describe
this taxon interaction. |
java.lang.String |
getDescription(Language language)
Returns the description string in the given
language |
Taxon |
getTaxon2()
Returns the second
taxon involved in this taxon interaction. |
static TaxonInteraction |
NewInstance()
Creates a new empty taxon interaction instance.
|
static TaxonInteraction |
NewInstance(Feature feature)
Creates a new empty taxon interaction instance and also sets the feature
|
void |
putDescription(LanguageString description)
Adds a translated
text in a particular language
to the multilanguage text used to describe
this taxon interaction. |
void |
putDescription(Language language,
java.lang.String text)
Creates a
language string based on the given text string
and the given language and adds it to the multilanguage text
used to describe this taxon interaction. |
void |
removeDescription(Language lang)
Removes from the
multilanguage text used to describe
this taxon interaction the one language string
with the given language . |
void |
setTaxon2(Taxon taxon2) |
addAggregationSource, addImportSource, addMedia, addModifier, addModifyingText, addModifyingText, addPrimaryTaxonomicSource, addPrimaryTaxonomicSource, addSource, addSource, addSource, addSource, addSources, clone, getFeature, getInDescription, getMedia, getModifiers, getModifiers, getModifyingText, getSortIndex, getSources, getTimeperiod, isCharacterData, makeModifierMap, putModifyingText, putModifyingText, removeMedia, removeModifier, removeModifyingText, removeSource, setFeature, setInDescription, setSortIndex, setTimeperiod
addAnnotation, addMarker, addMarker, getAnnotations, getAnnotations, getMarkers, getMarkers, hasMarker, hasMarker, markerValue, removeAnnotation, removeMarker, removeMarker, setAnnotations
cloneLanguageString, equals, getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
addPropertyChangeListener, addPropertyChangeListener, addToSetWithChangeEvent, deproxy, deproxy, fireOnCreateEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUserFriendlyDescription, getUserFriendlyFieldName, getUserFriendlyTypeName, getUuid, hashCode, hasListeners, initListener, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isBlank, isInstanceOf, isNotBlank, isPersited, removeFromSetWithChangeEvent, removePropertyChangeListener, removePropertyChangeListener, replaceInList, setCreated, setCreatedBy, setId, setNewEntityListener, setUuid, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
getCreated, getCreatedBy, getId, getUuid, isInstanceOf, isPersited, setCreated, setCreatedBy, setId, setUuid
public TaxonInteraction()
public static TaxonInteraction NewInstance()
public static TaxonInteraction NewInstance(Feature feature)
feature
- public Taxon getTaxon2()
taxon
involved in this taxon interaction.
The first taxon is the taxon described in the corresponding
taxon description
.public void setTaxon2(Taxon taxon2)
getTaxon2()
public java.util.Map<Language,LanguageString> getDescription()
multilanguage text
used to describe
this taxon interaction. The different language strings
contained in the multilanguage text should all have the same meaning.public java.lang.String getDescription(Language language)
language
language
- the language in which the description string looked for is formulated#getDescriptions()
public void putDescription(LanguageString description)
text in a particular language
to the multilanguage text
used to describe
this taxon interaction.description
- the language string describing the taxon interaction
in a particular languagegetDescription()
,
#putDescription(String, Language)
public void putDescription(Language language, java.lang.String text)
language string
based on the given text string
and the given language
and adds it to the multilanguage text
used to describe this taxon interaction.text
- the string describing the taxon interaction
in a particular languagelanguage
- the language in which the text string is formulatedgetDescription()
,
putDescription(LanguageString)
public void removeDescription(Language lang)
multilanguage text
used to describe
this taxon interaction the one language string
with the given language
.lang
- the language in which the language string to be removed
has been formulatedgetDescription()
public java.lang.Object clone()
clone
in class DescriptionElementBase
DescriptionElementBase.clone()
,
Object.clone()
Copyright © 2007-2020 EDIT. All Rights Reserved.