|
||||||||||
| 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.common.IdentifiableEntity<S>
eu.etaxonomy.cdm.model.media.IdentifiableMediaEntity<S>
eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase<S>
@Entity public abstract class SpecimenOrObservationBase<S extends IIdentifiableEntityCacheStrategy>
type figures are observations with at least a figure object in media
| Field Summary | |
|---|---|
protected Map<Language,LanguageString> |
definition
|
protected Set<DerivationEvent> |
derivationEvents
|
| Fields inherited from class eu.etaxonomy.cdm.model.common.IdentifiableEntity |
|---|
cacheStrategy, NOT_PROTECTED, PROTECTED, protectedTitleCache, titleCache |
| 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 |
SpecimenOrObservationBase()
Constructor |
| Method Summary | |
|---|---|
void |
addDefinition(LanguageString description)
Deprecated. should follow the put semantic of maps, this method will be removed in v4.0 Use the putDefinition method instead |
void |
addDefinition(String text,
Language language)
Deprecated. should follow the put semantic of maps, this method will be removed in v4.0 Use the putDefinition method instead |
void |
addDerivationEvent(DerivationEvent derivationEvent)
|
void |
addDescription(DescriptionBase description)
Adds a new description to this specimen or observation |
void |
addDetermination(DeterminationEvent determination)
|
Object |
clone()
Clones this versionable entity. |
String |
generateTitle()
|
Map<Language,LanguageString> |
getDefinition()
|
Set<DerivationEvent> |
getDerivationEvents()
|
Set<DescriptionBase> |
getDescriptions()
The descriptions this specimen or observation is part of. A specimen can not only have it's own specimen description
but can also be part of a taxon description or a
taxon name description. |
Set<DeterminationEvent> |
getDeterminations()
|
Integer |
getIndividualCount()
|
Stage |
getLifeStage()
|
SpecimenOrObservationBase |
getOriginalUnit()
for derived units get the single next higher parental/original unit. |
Sex |
getSex()
|
Set<SpecimenDescription> |
getSpecimenDescriptionImageGallery()
Returns the specimen descriptions this specimen is part of. |
Set<SpecimenDescription> |
getSpecimenDescriptions()
Returns the specimen descriptions this specimen is part of. |
Set<SpecimenDescription> |
getSpecimenDescriptions(boolean includeImageGallery)
Returns the specimen descriptions this specimen is part of. |
void |
putDefinition(LanguageString description)
adds the description to the multilanguage text
used to define this specimen or observation. |
void |
putDefinition(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 define this specimen or observation. |
void |
removeDefinition(Language lang)
|
void |
removeDerivationEvent(DerivationEvent derivationEvent)
|
void |
removeDescription(DescriptionBase description)
Removes a specimen from a description (removes a description from this specimen) |
void |
removeDetermination(DeterminationEvent determination)
|
void |
setIndividualCount(Integer individualCount)
|
void |
setLifeStage(Stage lifeStage)
|
void |
setSex(Sex sex)
|
| Methods inherited from class eu.etaxonomy.cdm.model.media.IdentifiableMediaEntity |
|---|
addMedia, getMedia, removeMedia |
| Methods inherited from class eu.etaxonomy.cdm.model.common.IdentifiableEntity |
|---|
addCredit, addCredit, addExtension, addExtension, addRights, addSource, addSource, compareTo, getCacheStrategy, getCredits, getCredits, getData, getExtensions, getExtensions, getExtensions, getLsid, getRights, getSources, getTitleCache, getTruncatedCache, initListener, isProtectedTitleCache, regenerateTitleCache, removeCredit, removeCredit, removeExtension, removeRights, removeSource, setCacheStrategy, setLsid, setProtectedTitleCache, setTitleCache, setTitleCache, toString |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.IAnnotatableEntity |
|---|
addAnnotation, addMarker, getAnnotations, getMarkers, hasMarker, hasMarker, removeAnnotation, removeMarker |
| 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 |
| Field Detail |
|---|
@IndexedEmbedded @NotNull protected Map<Language,LanguageString> definition
@NotNull protected Set<DerivationEvent> derivationEvents
| Constructor Detail |
|---|
protected SpecimenOrObservationBase()
| Method Detail |
|---|
public Set<DescriptionBase> getDescriptions()
specimen description
but can also be part of a taxon description or a
taxon name description.
getSpecimenDescriptions()public Set<SpecimenDescription> getSpecimenDescriptions()
specimen descriptions this specimen is part of.
getDescriptions()public Set<SpecimenDescription> getSpecimenDescriptions(boolean includeImageGallery)
specimen descriptions this specimen is part of.
getDescriptions()public Set<SpecimenDescription> getSpecimenDescriptionImageGallery()
specimen descriptions this specimen is part of.
getDescriptions()public void addDescription(DescriptionBase description)
description - public void removeDescription(DescriptionBase description)
description - public Set<DerivationEvent> getDerivationEvents()
public void addDerivationEvent(DerivationEvent derivationEvent)
public void removeDerivationEvent(DerivationEvent derivationEvent)
public Set<DeterminationEvent> getDeterminations()
public void addDetermination(DeterminationEvent determination)
public void removeDetermination(DeterminationEvent determination)
public Sex getSex()
public void setSex(Sex sex)
public Stage getLifeStage()
public void setLifeStage(Stage lifeStage)
public String generateTitle()
generateTitle in interface IIdentifiableEntitygenerateTitle in class IdentifiableEntity<S extends IIdentifiableEntityCacheStrategy>public Integer getIndividualCount()
public void setIndividualCount(Integer individualCount)
public Map<Language,LanguageString> getDefinition()
@Deprecated public void addDefinition(LanguageString description)
putDefinition method instead
description to the multilanguage text
used to define this specimen or observation.
description - the languageString in with the title string and the given languagegetDefinition(),
putDefinition(Language, String)public void putDefinition(LanguageString description)
description to the multilanguage text
used to define this specimen or observation.
description - the languageString in with the title string and the given languagegetDefinition(),
putDefinition(Language, String)
@Deprecated
public void addDefinition(String text,
Language language)
putDefinition method instead
language string based on the given text string
and the given language and adds it to the multilanguage text
used to define this specimen or observation.
language - the language in which the title string is formulatedtext - the definition in a particular languagegetDefinition(),
putDefinition(LanguageString)
public void putDefinition(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 define this specimen or observation.
language - the language in which the title string is formulatedtext - the definition in a particular languagegetDefinition(),
putDefinition(LanguageString)public void removeDefinition(Language lang)
public SpecimenOrObservationBase getOriginalUnit()
public Object clone()
throws CloneNotSupportedException
VersionableEntity
clone in class IdentifiableMediaEntity<S extends IIdentifiableEntityCacheStrategy>CloneNotSupportedExceptionObject.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||