|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.etaxonomy.cdm.model.common.CdmBase
eu.etaxonomy.cdm.model.common.VersionableEntity
eu.etaxonomy.cdm.model.common.AnnotatableEntity
eu.etaxonomy.cdm.model.description.DescriptionElementBase
eu.etaxonomy.cdm.model.description.IndividualsAssociation
@Entity @Indexed(index="eu.etaxonomy.cdm.model.description.DescriptionElementBase") public class IndividualsAssociation
This class represents associations between the described
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.
| Field Summary |
|---|
| 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 | |
|---|---|
protected |
IndividualsAssociation()
Class constructor: creates a new empty individuals association instance. |
| Method Summary | |
|---|---|
void |
addDescription(LanguageString description)
Deprecated. should follow the put semantic of maps, this method will be removed in v4.0 Use the putDescription method instead |
void |
addDescription(String text,
Language language)
Deprecated. should follow the put semantic of maps, this method will be removed in v4.0 Use the putDescription method instead |
Object |
clone()
Clones this individuals association. |
SpecimenOrObservationBase |
getAssociatedSpecimenOrObservation()
Returns the second specimen or observation
involved in this individuals association. |
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,
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)
|
| Methods inherited from class eu.etaxonomy.cdm.model.description.DescriptionElementBase |
|---|
addMedia, addModifier, addModifyingText, addModifyingText, addSource, addSource, addSource, clone, getFeature, getInDescription, getMedia, getModifiers, getModifiers, getModifyingText, getSources, makeModifierMap, putModifyingText, putModifyingText, removeMedia, removeModifier, removeModifyingText, removeSource, setFeature, setInDescription |
| 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, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isInstanceOf, removePropertyChangeListener, removePropertyChangeListener, setCreated, setCreatedBy, setId, setUuid, toString |
| 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 |
|---|
protected IndividualsAssociation()
| Method Detail |
|---|
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 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 addDescription(LanguageString description)
putDescription method instead
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(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,
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 addDescription(String text,
Language language)
putDescription method instead
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 Object clone()
clone in class DescriptionElementBaseDescriptionElementBase.clone(),
Object.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||