|
||||||||||
| 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
@Entity public abstract class DescriptionElementBase
The upmost (abstract) class for a piece of information) about
a specimen, a taxon or even a taxon name.
A concrete description element assigns descriptive data to one feature.
Experts use the word feature for the property itself but not for the actual
description element. Therefore naming this class FeatureBase would have
leaded to confusion.
This class corresponds to:
| 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 |
DescriptionElementBase()
Class constructor: creates a new empty description element instance. |
protected |
DescriptionElementBase(Feature feature)
Class constructor: creates a new description element instance with the given feature that is described or measured. |
| Method Summary | |
|---|---|
void |
addMedia(Media media)
Adds a media to the list of media
this description element is based on. |
void |
addModifier(Modifier modifier)
Adds a modifier to the set of modifiers
used to qualify the validity of this description element. |
LanguageString |
addModifyingText(LanguageString description)
Deprecated. should follow the put semantic of maps, this method will be removed in v4.0 Use the putModifyingText method |
LanguageString |
addModifyingText(String text,
Language language)
Deprecated. should follow the put semantic of maps, this method will be removed in v4.0 Use the putModifyingText method |
void |
addSource(DescriptionElementSource source)
Adds a source to this object |
DescriptionElementSource |
addSource(String id,
String idNamespace,
Reference citation,
String microCitation)
Adds a source that is newly created by its components. |
void |
addSource(String id,
String idNamespace,
Reference citation,
String microReference,
TaxonNameBase nameUsedInSource,
String originalNameString)
|
Object |
clone()
Clones the description element. |
DescriptionElementBase |
clone(DescriptionBase description)
Clones the description element. The new element is added to the description. |
Feature |
getFeature()
Returns the feature this description element is for. |
DescriptionBase |
getInDescription()
Returns the description that this DescriptionElement is
part of. |
List<Media> |
getMedia()
Returns the list of media (that is pictures, movies,
recorded sounds ...) this description element is based on. |
Set<Modifier> |
getModifiers()
Returns the set of modifiers used to qualify the validity of
this description element. |
List<Modifier> |
getModifiers(TermVocabulary voc)
|
Map<Language,LanguageString> |
getModifyingText()
Returns the multilanguage text used to qualify the validity
of this description element. |
Set<DescriptionElementSource> |
getSources()
Returns the set of original sources (citations) for this sourceable object |
protected Map<TermVocabulary,List<Modifier>> |
makeModifierMap()
|
LanguageString |
putModifyingText(LanguageString description)
Adds a translated text in a particular language
to the multilanguage text used to qualify the validity
of this description element. |
LanguageString |
putModifyingText(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 qualify the validity of this description element. |
void |
removeMedia(Media media)
Removes one element from the list of media
this description element is based on. |
void |
removeModifier(Modifier modifier)
Removes one element from the set of modifiers
used to qualify the validity of this description element. |
LanguageString |
removeModifyingText(Language language)
Removes from the multilanguage text used to qualify the validity
of this description element the one language string
with the given language. |
void |
removeSource(DescriptionElementSource source)
Removes a source from this object |
void |
setFeature(Feature feature)
|
protected void |
setInDescription(DescriptionBase inDescription)
|
| 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 DescriptionElementBase()
DescriptionElementBase(Feature)protected DescriptionElementBase(Feature feature)
feature that is described or measured.
feature - the feature described or measuredDescriptionElementBase()| Method Detail |
|---|
public List<Media> getMedia()
media (that is pictures, movies,
recorded sounds ...) this description element is based on.
public void addMedia(Media media)
media to the list of media
this description element is based on.
media - the media to be added to this description elementgetMedia()public void removeMedia(Media media)
media
this description element is based on.
media - the media which should be removedgetMedia(),
addMedia(Media)public DescriptionBase getInDescription()
description that this DescriptionElement is
part of.
protected void setInDescription(DescriptionBase inDescription)
#setInDescription()public Feature getFeature()
feature this description element is for.
A feature is a property that can be described or measured but not the
description or the measurement itself.
public void setFeature(Feature feature)
getFeature()public Set<Modifier> getModifiers()
modifiers used to qualify the validity of
this description element. This is only metainformation.
getModifiers in interface IModifiablepublic void addModifier(Modifier modifier)
modifier to the set of modifiers
used to qualify the validity of this description element.
addModifier in interface IModifiablemodifier - the modifier to be added to this description elementgetModifiers()public void removeModifier(Modifier modifier)
modifiers
used to qualify the validity of this description element.
removeModifier in interface IModifiablemodifier - the modifier which should be removedgetModifiers(),
addModifier(Modifier)public Map<Language,LanguageString> getModifyingText()
multilanguage text used to qualify the validity
of this description element. The different language strings
contained in the multilanguage text should all have the same meaning.term vocabulary
as a modifier does.
NOTE: the actual content of this description element is NOT stored in the modifying text. This is only metainformation (like "Some experts express doubt about this assertion").
public LanguageString addModifyingText(LanguageString description)
putModifyingText method
text in a particular language
to the multilanguage text used to qualify the validity
of this description element.
description - the language string describing the validity
in a particular languagegetModifyingText(),
putModifyingText(Language, String)public LanguageString putModifyingText(LanguageString description)
text in a particular language
to the multilanguage text used to qualify the validity
of this description element.
description - the language string describing the validity
in a particular languagegetModifyingText(),
putModifyingText(Language, String)
public LanguageString addModifyingText(String text,
Language language)
putModifyingText method
language string based on the given text string
and the given language and adds it to the multilanguage text
used to qualify the validity of this description element.
text - the string describing the validity
in a particular languagelanguage - the language in which the text string is formulatedgetModifyingText(),
putModifyingText(LanguageString)
public LanguageString putModifyingText(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 qualify the validity of this description element.
language - the language in which the text string is formulatedtext - the string describing the validity
in a particular languagegetModifyingText(),
putModifyingText(LanguageString)public LanguageString removeModifyingText(Language language)
multilanguage text used to qualify the validity
of this description element the one language string
with the given language.
language - the language in which the language string to be removed
has been formulatedgetModifyingText()public Set<DescriptionElementSource> getSources()
ISourceable
getSources in interface ISourceable<DescriptionElementSource>public void addSource(DescriptionElementSource source)
ISourceable
addSource in interface ISourceable<DescriptionElementSource>
public DescriptionElementSource addSource(String id,
String idNamespace,
Reference citation,
String microCitation)
ISourceablenull
no source is added.
- Specified by:
addSource in interface ISourceable<DescriptionElementSource>
public void addSource(String id,
String idNamespace,
Reference citation,
String microReference,
TaxonNameBase nameUsedInSource,
String originalNameString)
public void removeSource(DescriptionElementSource source)
ISourceable
removeSource in interface ISourceable<DescriptionElementSource>protected Map<TermVocabulary,List<Modifier>> makeModifierMap()
public List<Modifier> getModifiers(TermVocabulary voc)
public Object clone()
throws CloneNotSupportedException
null).
- Overrides:
clone in class AnnotatableEntity
- Throws:
CloneNotSupportedException- See Also:
AnnotatableEntity.clone()
public DescriptionElementBase clone(DescriptionBase description)
throws CloneNotSupportedException
description.
CloneNotSupportedExceptionAnnotatableEntity.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||