@Entity public abstract class DescriptionElementBase extends AnnotatableEntity implements ISourceable<DescriptionElementSource>, IModifiable, IMultiLanguageTextHolder
specimen
, a taxon
or even a taxon name
.
A concrete description element assigns descriptive data to one feature
.This class corresponds to:
annotations, markers
CLOB_LENGTH, uuid
Modifier | Constructor and Description |
---|---|
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. |
Modifier and Type | Method and Description |
---|---|
DescriptionElementSource |
addAggregationSource(ICdmTarget target)
Adds a source which links to another CDM object as source.
|
DescriptionElementSource |
addImportSource(java.lang.String id,
java.lang.String idNamespace,
Reference reference,
java.lang.String microReference)
Adds a
source of type OriginalSourceType.Import
to this object. |
void |
addMedia(Media media)
|
void |
addModifier(DefinedTerm 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(java.lang.String text,
Language language)
Deprecated.
should follow the put semantic of maps, this method will be removed in v4.0
Use the
putModifyingText method |
DescriptionElementSource |
addPrimaryTaxonomicSource(Reference reference)
Adds a
source of type
OriginalSourceType.PrimaryTaxonomicSource
to this object. |
DescriptionElementSource |
addPrimaryTaxonomicSource(Reference reference,
java.lang.String microReference)
Adds a
source of type OriginalSourceType.PrimaryTaxonomicSource
to this object. |
void |
addSource(DescriptionElementSource source)
Adds a source to this object
|
DescriptionElementSource |
addSource(OriginalSourceType type,
Reference reference,
java.lang.String microReference,
java.lang.String originalInformation) |
DescriptionElementSource |
addSource(OriginalSourceType type,
java.lang.String id,
java.lang.String idNamespace,
Reference reference,
java.lang.String microReference)
Adds a source that is newly created by its components.
|
DescriptionElementSource |
addSource(OriginalSourceType type,
java.lang.String idInSource,
java.lang.String idNamespace,
Reference reference,
java.lang.String microReference,
TaxonName nameUsedInSource,
java.lang.String originalNameString)
Adds a
source to this description element. |
void |
addSources(java.util.Set<DescriptionElementSource> sources)
Adds a set of original sources (citations) for this sourceable object
|
java.lang.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. |
java.util.List<Media> |
getMedia()
Returns the list of
media (that is pictures, movies,
recorded sounds ...) this description element is based on. |
java.util.Set<DefinedTerm> |
getModifiers()
Returns the set of
modifiers used to qualify the validity of
this description element. |
java.util.List<DefinedTerm> |
getModifiers(TermVocabulary voc) |
java.util.Map<Language,LanguageString> |
getModifyingText()
Returns the
multilanguage text used to qualify the validity
of this description element. |
java.lang.Integer |
getSortIndex() |
java.util.Set<DescriptionElementSource> |
getSources()
Returns the set of original sources (citations) for this sourceable object
|
TimePeriod |
getTimeperiod()
The point in time, the time period or the season for which this description element
is valid.
|
boolean |
isCharacterData()
Is this description item of a class type which is considered to
represent character data? These classes are
QuantitativeData
and CategoricalData . |
protected java.util.Map<TermVocabulary,java.util.List<DefinedTerm>> |
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,
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 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(DefinedTerm 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) |
void |
setSortIndex(java.lang.Integer sortIndex) |
void |
setTimeperiod(TimePeriod timeperiod) |
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 DescriptionElementBase()
DescriptionElementBase(Feature)
protected DescriptionElementBase(Feature feature)
feature
that is described or measured.feature
- the feature described or measuredDescriptionElementBase()
public java.util.List<Media> getMedia()
media
(that is pictures, movies,
recorded sounds ...) this description element is based on.public void addMedia(Media media)
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 TimePeriod getTimeperiod()
public void setTimeperiod(TimePeriod timeperiod)
getTimeperiod()
public java.util.Set<DefinedTerm> getModifiers()
modifiers
used to qualify the validity of
this description element. This is only metainformation.getModifiers
in interface IModifiable
public void addModifier(DefinedTerm modifier)
modifier
to the set of modifiers
used to qualify the validity of this description element.addModifier
in interface IModifiable
modifier
- the modifier to be added to this description elementgetModifiers()
public void removeModifier(DefinedTerm modifier)
modifiers
used to qualify the validity of this description element.removeModifier
in interface IModifiable
modifier
- the modifier which should be removedgetModifiers()
,
#addModifier(Modifier)
public java.util.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").
@Deprecated public LanguageString addModifyingText(LanguageString description)
putModifyingText
methodtext 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)
@Deprecated public LanguageString addModifyingText(java.lang.String text, Language language)
putModifyingText
methodlanguage 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, 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 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 java.util.Set<DescriptionElementSource> getSources()
ISourceable
getSources
in interface ISourceable<DescriptionElementSource>
public void addSource(DescriptionElementSource source)
ISourceable
addSource
in interface ISourceable<DescriptionElementSource>
public DescriptionElementSource addSource(OriginalSourceType type, java.lang.String id, java.lang.String idNamespace, Reference reference, java.lang.String microReference)
ISourceable
null no source is added.
addSource
in interface ISourceable<DescriptionElementSource>
type
- the type
of the sourceidNamespace
- the namespace for the id in the sourcereference
- the source as a reference
microReference
- the details (e.g. page number) in the referencepublic void addSources(java.util.Set<DescriptionElementSource> sources)
ISourceable
addSources
in interface ISourceable<DescriptionElementSource>
public DescriptionElementSource addImportSource(java.lang.String id, java.lang.String idNamespace, Reference reference, java.lang.String microReference)
ISourceable
source
of type OriginalSourceType.Import
to this object.addImportSource
in interface ISourceable<DescriptionElementSource>
idNamespace
- the namespace for the id in the sourcereference
- the source as a reference
microReference
- the details (e.g. page number) in the referencepublic DescriptionElementSource addPrimaryTaxonomicSource(Reference reference, java.lang.String microReference)
ISourceable
source
of type OriginalSourceType.PrimaryTaxonomicSource
to this object.addPrimaryTaxonomicSource
in interface ISourceable<DescriptionElementSource>
reference
- the source as a reference
microReference
- the details (e.g. page number) in the referencepublic DescriptionElementSource addPrimaryTaxonomicSource(Reference reference)
ISourceable
source
of type
OriginalSourceType.PrimaryTaxonomicSource
to this object.addPrimaryTaxonomicSource
in interface ISourceable<DescriptionElementSource>
reference
- the source as a reference
public DescriptionElementSource addSource(OriginalSourceType type, Reference reference, java.lang.String microReference, java.lang.String originalInformation)
addSource
in interface ISourceable<DescriptionElementSource>
public DescriptionElementSource addSource(OriginalSourceType type, java.lang.String idInSource, java.lang.String idNamespace, Reference reference, java.lang.String microReference, TaxonName nameUsedInSource, java.lang.String originalNameString)
source
to this description element.type
- the type of the sourceidInSource
- the id used in the sourceidNamespace
- the namespace for the id in the sourcereference
- the source as a reference
microReference
- the details (e.g. page number) in the referencenameUsedInSource
- the taxon name used in the sourceoriginalNameString
- the name as text used in the sourcepublic DescriptionElementSource addAggregationSource(ICdmTarget target)
ISourceable
addAggregationSource
in interface ISourceable<DescriptionElementSource>
target
- the target CDM sourcepublic void removeSource(DescriptionElementSource source)
ISourceable
removeSource
in interface ISourceable<DescriptionElementSource>
public java.lang.Integer getSortIndex()
public void setSortIndex(java.lang.Integer sortIndex)
protected java.util.Map<TermVocabulary,java.util.List<DefinedTerm>> makeModifierMap()
public java.util.List<DefinedTerm> getModifiers(TermVocabulary voc)
public boolean isCharacterData()
QuantitativeData
and CategoricalData
.
To be overridden by these classes.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
null).
clone
in class AnnotatableEntity
java.lang.CloneNotSupportedException
AnnotatableEntity.clone()
public DescriptionElementBase clone(DescriptionBase description) throws java.lang.CloneNotSupportedException
description
.java.lang.CloneNotSupportedException
AnnotatableEntity.clone()
Copyright © 2007-2020 EDIT. All Rights Reserved.