@Entity @Indexed(index="eu.etaxonomy.cdm.model.description.DescriptionElementBase") public class Distribution extends DescriptionElementBase implements java.lang.Cloneable
taxon
.
Only taxon descriptions
may contain distributions.
A distribution instance consist of a named area
and of a status
describing the absence or the presence of a taxon (like "extinct"
or "introduced") in this named area.
This class corresponds partially to:
annotations, markers
CLOB_LENGTH, uuid
Modifier | Constructor and Description |
---|---|
protected |
Distribution()
Class constructor: creates a new empty distribution instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clones this distribution.
|
NamedArea |
getArea()
Returns the
named area this distribution applies to. |
PresenceAbsenceTerm |
getStatus()
Returns the
presence or absence term for this distribution. |
boolean |
isDifferentSources(Distribution dist)
Special function for building the sorted distribution tree.
|
static Distribution |
NewInstance()
Creates an empty distribution instance.
|
static Distribution |
NewInstance(NamedArea area,
PresenceAbsenceTerm status)
Creates a distribution instance with the given
named area and status . |
void |
setArea(NamedArea area) |
void |
setFeature(Feature feature)
Deprecated.
Deprecated because
feature should always be DISTRIBUTION
for all distribution instances and therefore it should not be changed. |
void |
setStatus(PresenceAbsenceTerm status) |
java.lang.String |
toString()
Implementation of the toString() function
|
addAggregationSource, addImportSource, addMedia, addModifier, addModifyingText, addModifyingText, addPrimaryTaxonomicSource, addPrimaryTaxonomicSource, addSource, addSource, addSource, addSource, addSources, clone, getFeature, getInDescription, getMedia, getModifiers, getModifiers, getModifyingText, getSortIndex, getSources, getTimeperiod, isCharacterData, makeModifierMap, putModifyingText, putModifyingText, removeMedia, removeModifier, removeModifyingText, removeSource, setInDescription, setSortIndex, setTimeperiod
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
finalize, getClass, notify, notifyAll, wait, wait, wait
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
getCreated, getCreatedBy, getId, getUuid, isInstanceOf, isPersited, setCreated, setCreatedBy, setId, setUuid
protected Distribution()
feature
is set to DISTRIBUTION
.public static Distribution NewInstance()
feature
is set to DISTRIBUTION
.#NewInstance(NamedArea, PresenceAbsenceTermBase)
public static Distribution NewInstance(NamedArea area, PresenceAbsenceTerm status)
named area
and status
.
The corresponding feature
is set to DISTRIBUTION
.area
- the named area for the new distributionstatus
- the presence or absence term for the new distributionNewInstance()
@Deprecated public void setFeature(Feature feature)
feature
should always be DISTRIBUTION
for all distribution instances and therefore it should not be changed.setFeature
in class DescriptionElementBase
DescriptionElementBase.getFeature()
public NamedArea getArea()
named area
this distribution applies to.public PresenceAbsenceTerm getStatus()
presence or absence term
for this distribution.public void setStatus(PresenceAbsenceTerm status)
getStatus()
public boolean isDifferentSources(Distribution dist)
dist
- public java.lang.Object clone()
clone
in class DescriptionElementBase
DescriptionElementBase.clone()
,
Object.clone()
Copyright © 2007-2020 EDIT. All Rights Reserved.