|
||||||||||
| 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.description.DescriptionBase<S>
@Entity
@ClassBridges(value={@ClassBridge(impl=DescriptionBaseClassBridge.class),@ClassBridge(impl=GroupByTaxonClassBridge.class)})
public abstract class DescriptionBase<S extends IIdentifiableEntityCacheStrategy>
The upmost (abstract) class for a description as a whole (with possibly
several elementary information data)
for a specimen, a taxon
or even a taxon name.
This class corresponds to:
| Field Summary |
|---|
| 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 | |
|---|---|
DescriptionBase()
|
|
| Method Summary | |
|---|---|
void |
addDescribedSpecimenOrObservation(SpecimenOrObservationBase describedSpecimenOrObservation)
Adds an existing specimen or observation to the set of
specimens or observations described in this
description or which this description is based on.Due to bidirectionality if this description is a specimen description,
this description will also be added to the set of specimen
descriptions corresponding to the given additional specimen or observation. |
void |
addDescriptionSource(Reference descriptionSource)
Deprecated. |
void |
addElement(DescriptionElementBase element)
Adds an existing elementary description to the set of
elementary description data which constitute this
description as a whole. |
void |
addFeature(Feature feature)
Adds an existing feature to the set of
descriptiveSystem used as features for
this description. |
boolean |
addWorkingSet(WorkingSet workingSet)
|
Object |
clone()
Clones this descriptioin. |
Set<SpecimenOrObservationBase> |
getDescribedSpecimenOrObservations()
Returns the set of specimens or observations involved in
this description as a whole. |
Set<Reference> |
getDescriptionSources()
Deprecated. |
Set<Feature> |
getDescriptiveSystem()
Returns the set of feature used as
features/characters/descriptors for this description. |
Set<DescriptionElementBase> |
getElements()
Returns the set of elementary description data which constitute
this description as a whole. |
Set<WorkingSet> |
getWorkingSets()
|
boolean |
hasStructuredData()
|
boolean |
isImageGallery()
|
void |
removeDescribedSpecimenOrObservation(SpecimenOrObservationBase describedSpecimenOrObservation)
Removes one element from the set of specimens or observations involved
in this description.Due to bidirectionality if this description is a specimen description,
this description will also be removed from the set of specimen
descriptions corresponding to the given specimen or observation. |
void |
removeDescriptionSource(Reference descriptionSource)
Deprecated. |
void |
removeElement(DescriptionElementBase element)
Removes one element from the set of elementary description data which
constitute this description as a whole. |
void |
removeFeature(Feature feature)
Removes one element from the set of features used as
features for this description. |
boolean |
removeWorkingSet(WorkingSet workingSet)
|
void |
setDescriptiveSystem(Set<Feature> descriptiveSystem)
|
void |
setImageGallery(boolean imageGallery)
|
protected void |
setWorkingSets(Set<WorkingSet> workingSets)
|
int |
size()
Returns the number of elementary description data which constitute
this description as a whole. |
| Methods inherited from class eu.etaxonomy.cdm.model.common.IdentifiableEntity |
|---|
addCredit, addCredit, addExtension, addExtension, addRights, addSource, addSource, compareTo, generateTitle, 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 |
| Constructor Detail |
|---|
public DescriptionBase()
| Method Detail |
|---|
public Set<SpecimenOrObservationBase> getDescribedSpecimenOrObservations()
specimens or observations involved in
this description as a whole. Taxon descriptions are also often based
on concrete specimens or observations. For taxon name descriptions
this set should be empty.
#addDescribedSpecimenOrObservations(SpecimenOrObservationBase),
#removeDescribedSpecimenOrObservations(SpecimenOrObservationBase)public void addDescribedSpecimenOrObservation(SpecimenOrObservationBase describedSpecimenOrObservation)
specimen or observation to the set of
specimens or observations described in this
description or which this description is based on.specimen description,
this description will also be added to the set of specimen
descriptions corresponding to the given additional specimen or observation.
describedSpecimenOrObservation - the specimen or observation to be added to this descriptiongetDescribedSpecimenOrObservations(),
SpecimenOrObservationBase.addDescription(DescriptionBase)public void removeDescribedSpecimenOrObservation(SpecimenOrObservationBase describedSpecimenOrObservation)
specimens or observations involved
in this description.specimen description,
this description will also be removed from the set of specimen
descriptions corresponding to the given specimen or observation.
describedSpecimenOrObservation - the specimen or observation which should be removedgetDescribedSpecimenOrObservations(),
#addDescribedSpecimenOrObservations(SpecimenOrObservationBase),
SpecimenOrObservationBase.removeDescription(DescriptionBase)@Deprecated public Set<Reference> getDescriptionSources()
references used as sources for this description as a
whole. More than one source can be used for a general description without
assigning for each data element of the description one of those sources.
addDescriptionSource(Reference),
removeDescriptionSource(Reference)@Deprecated public void addDescriptionSource(Reference descriptionSource)
reference to the set of
references used as sources for this
description.
descriptionSource - the reference source to be added to this descriptiongetDescriptionSources()@Deprecated public void removeDescriptionSource(Reference descriptionSource)
references used as
sources for this description.
descriptionSource - the reference source which should be deletedgetDescriptionSources(),
addDescriptionSource(Reference)public Set<Feature> getDescriptiveSystem()
feature used as
features/characters/descriptors for this description.
addFeature(Feature),
removeFeature(Feature)public void setDescriptiveSystem(Set<Feature> descriptiveSystem)
getDescriptiveSystem(),
#addDescriptiveSystem(Feature)public void addFeature(Feature feature)
feature to the set of
descriptiveSystem used as features for
this description.
feature - the feature to be added to the descriptive systemgetDescriptiveSystem()public void removeFeature(Feature feature)
features used as
features for this description.
feature - the feature which should be deletedgetDescriptiveSystem(),
addFeature(Feature)public Set<DescriptionElementBase> getElements()
elementary description data which constitute
this description as a whole.
addElement(DescriptionElementBase),
removeElement(DescriptionElementBase)public void addElement(DescriptionElementBase element)
elementary description to the set of
elementary description data which constitute this
description as a whole.
If the elementary descriptions already belongs to a description it is first removed from
the old description.
element - the elementary description to be added to this descriptiongetDescriptionSources()public void removeElement(DescriptionElementBase element)
elementary description data which
constitute this description as a whole.
element - the reference source which should be deletedgetElements(),
addElement(DescriptionElementBase)public int size()
elementary description data which constitute
this description as a whole. This is the cardinality of the set of
elementary description data.
getElements()public boolean isImageGallery()
public void setImageGallery(boolean imageGallery)
imageGallery - the imageGallery to setpublic Set<WorkingSet> getWorkingSets()
public boolean addWorkingSet(WorkingSet workingSet)
public boolean removeWorkingSet(WorkingSet workingSet)
protected void setWorkingSets(Set<WorkingSet> workingSets)
public boolean hasStructuredData()
public Object clone()
Name descriptions are cloned as XXX.Type designations are cloned as XXX.Name relation are cloned as XXX.
clone in class IdentifiableEntity<S extends IIdentifiableEntityCacheStrategy>eu.etaxonomy.cdm.model.media.IdentifiableEntity#clone(),
Object.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||