@Entity @Indexed(index="eu.etaxonomy.cdm.model.description.DescriptionElementBase") public class IndividualsAssociation extends DescriptionElementBase implements IMultiLanguageTextHolder, java.lang.Cloneable
specimen or observation
and a second one (for instance a host).
Only specimen descriptions
may contain individuals association.
The association itself is described by a multilanguage text
.
This class corresponds (partially) to NaturalLanguageDescriptionType according to the SDD schema.
annotations, markers
CLOB_LENGTH, uuid
Modifier | Constructor and Description |
---|---|
protected |
IndividualsAssociation()
Class constructor: creates a new empty individuals association instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clones this individuals association.
|
SpecimenOrObservationBase |
getAssociatedSpecimenOrObservation()
Returns the second
specimen or observation
involved in this individuals association. |
java.util.Map<Language,LanguageString> |
getDescription()
Returns the
multilanguage text used to describe
this individuals association. |
static IndividualsAssociation |
NewInstance()
Creates a new empty individuals association instance.
|
static IndividualsAssociation |
NewInstance(SpecimenOrObservationBase specimen)
Creates a new empty individuals association instance.
|
void |
putDescription(LanguageString description)
Adds a translated
text in a particular language
to the multilanguage text used to describe
this individuals association. |
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 individuals association. |
void |
removeDescription(Language language)
Removes from the
multilanguage text used to describe
this individuals association the one language string
with the given language . |
void |
setAssociatedSpecimenOrObservation(SpecimenOrObservationBase associatedSpecimenOrObservation) |
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
protected IndividualsAssociation()
public static IndividualsAssociation NewInstance()
public static IndividualsAssociation NewInstance(SpecimenOrObservationBase specimen)
public SpecimenOrObservationBase getAssociatedSpecimenOrObservation()
specimen or observation
involved in this individuals association.
The first specimen or observation is the specimen or observation
described in the corresponding specimen description
.public void setAssociatedSpecimenOrObservation(SpecimenOrObservationBase associatedSpecimenOrObservation)
getAssociatedSpecimenOrObservation()
public java.util.Map<Language,LanguageString> getDescription()
multilanguage text
used to describe
this individuals association. The different language strings
contained in the multilanguage text should all have the same meaning.public void putDescription(LanguageString description)
text in a particular language
to the multilanguage text
used to describe
this individuals association.description
- the language string describing the individuals association
in a particular languagegetDescription()
,
putDescription(Language, String)
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 individuals association.text
- the string describing the individuals association
in a particular languagelanguage
- the language in which the text string is formulatedgetDescription()
,
putDescription(LanguageString)
public void removeDescription(Language language)
multilanguage text
used to describe
this individuals association the one language string
with the given language
.language
- 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.