|
||||||||||
| 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
eu.etaxonomy.cdm.model.description.Distribution
@Entity @Indexed(index="eu.etaxonomy.cdm.model.description.DescriptionElementBase") public class Distribution
This class represents elementary distribution data for a 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:
| 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 |
Distribution()
Class constructor: creates a new empty distribution instance. |
| Method Summary | |
|---|---|
Object |
clone()
Clones this distribution. |
boolean |
equalsForTree(Distribution dist)
Special equal method for building an sorted distribution tree |
NamedArea |
getArea()
Returns the named area this distribution applies to. |
PresenceAbsenceTermBase<?> |
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,
PresenceAbsenceTermBase<?> 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(PresenceAbsenceTermBase<?> status)
|
String |
toString()
Implementation of the toString() function |
| Methods inherited from class eu.etaxonomy.cdm.model.description.DescriptionElementBase |
|---|
addMedia, addModifier, addModifyingText, addModifyingText, addSource, addSource, addSource, clone, getFeature, getInDescription, getMedia, getModifiers, getModifiers, getModifyingText, getSources, makeModifierMap, putModifyingText, putModifyingText, removeMedia, removeModifier, removeModifyingText, removeSource, setInDescription |
| 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.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 Distribution()
feature is set to DISTRIBUTION.
| Method Detail |
|---|
public static Distribution NewInstance()
feature
is set to DISTRIBUTION.
NewInstance(NamedArea, PresenceAbsenceTermBase)
public static Distribution NewInstance(NamedArea area,
PresenceAbsenceTermBase<?> 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 DescriptionElementBaseDescriptionElementBase.getFeature()public NamedArea getArea()
named area this distribution applies to.
public void setArea(NamedArea area)
getArea()public PresenceAbsenceTermBase<?> getStatus()
presence or absence term for this distribution.
public void setStatus(PresenceAbsenceTermBase<?> status)
getStatus()public boolean equalsForTree(Distribution dist)
dist -
public boolean isDifferentSources(Distribution dist)
dist -
public Object clone()
clone in class DescriptionElementBaseDescriptionElementBase.clone(),
Object.clone()public String toString()
toString in class CdmBaseObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||