eu.etaxonomy.cdm.model.occurrence
Class Specimen

java.lang.Object
  extended by eu.etaxonomy.cdm.model.common.CdmBase
      extended by eu.etaxonomy.cdm.model.common.VersionableEntity
          extended by eu.etaxonomy.cdm.model.common.AnnotatableEntity
              extended by eu.etaxonomy.cdm.model.common.IdentifiableEntity<S>
                  extended by eu.etaxonomy.cdm.model.media.IdentifiableMediaEntity<S>
                      extended by eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase<S>
                          extended by eu.etaxonomy.cdm.model.occurrence.DerivedUnitBase<IIdentifiableEntityCacheStrategy<Specimen>>
                              extended by eu.etaxonomy.cdm.model.occurrence.Specimen
All Implemented Interfaces:
IAnnotatableEntity, ICdmBase, IIdentifiableEntity, IMultiLanguageTextHolder, ISourceable<IdentifiableSource>, IVersionableEntity, IMediaDocumented, IMediaEntity, Serializable, Cloneable
Direct Known Subclasses:
DnaSample, Fossil

@Entity
@Indexed(index="eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase")
@Configurable
public class Specimen
extends DerivedUnitBase<IIdentifiableEntityCacheStrategy<Specimen>>
implements Cloneable

A specimen is regarded as derived from an field observation, so locality and gathering related information is captured as a separate FieldObservation object related to a specimen via a derivation event

Version:
1.0
Author:
m.doering
See Also:
Serialized Form

Field Summary
 
Fields inherited from class eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase
definition, derivationEvents
 
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
protected Specimen()
          Constructor
 
Method Summary
 Object clone()
          Clones this specimen.
 String getExsiccatum()
           
 PreservationMethod getPreservation()
           
static Specimen NewInstance()
          Factory method
 void setExsiccatum(String exsiccatum)
           
 void setPreservation(PreservationMethod preservation)
           
 
Methods inherited from class eu.etaxonomy.cdm.model.occurrence.DerivedUnitBase
addSpecimenTypeDesignation, getAccessionNumber, getBarcode, getCatalogNumber, getCollection, getCollectorsNumber, getDerivedFrom, getOriginals, getSpecimenTypeDesignations, getStoredUnder, removeSpecimenTypeDesignation, setAccessionNumber, setBarcode, setCatalogNumber, setCollection, setCollectorsNumber, setDerivedFrom, setStoredUnder
 
Methods inherited from class eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase
addDefinition, addDefinition, addDerivationEvent, addDescription, addDetermination, generateTitle, getDefinition, getDerivationEvents, getDescriptions, getDeterminations, getIndividualCount, getLifeStage, getOriginalUnit, getSex, getSpecimenDescriptionImageGallery, getSpecimenDescriptions, getSpecimenDescriptions, putDefinition, putDefinition, removeDefinition, removeDerivationEvent, removeDescription, removeDetermination, setIndividualCount, setLifeStage, setSex
 
Methods inherited from class eu.etaxonomy.cdm.model.media.IdentifiableMediaEntity
addMedia, getMedia, removeMedia
 
Methods inherited from class eu.etaxonomy.cdm.model.common.IdentifiableEntity
addCredit, addCredit, addExtension, addExtension, addRights, addSource, addSource, compareTo, 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

Specimen

protected Specimen()
Constructor

Method Detail

NewInstance

public static Specimen NewInstance()
Factory method

Returns:

getPreservation

public PreservationMethod getPreservation()

setPreservation

public void setPreservation(PreservationMethod preservation)

setExsiccatum

public void setExsiccatum(String exsiccatum)

getExsiccatum

public String getExsiccatum()

clone

public Object clone()
Clones this specimen. This is a shortcut that enables to create a new instance that differs only slightly from this specimen by modifying only some of the attributes.
This method overrides the clone method from DerivedUnitBase.

Overrides:
clone in class DerivedUnitBase<IIdentifiableEntityCacheStrategy<Specimen>>
See Also:
DerivedUnitBase.clone(), IdentifiableMediaEntity.clone(), Object.clone()


Copyright © 2007-2013 EDIT. All Rights Reserved.