eu.etaxonomy.cdm.model.occurrence
Class FieldObservation

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<IIdentifiableEntityCacheStrategy<FieldObservation>>
                          extended by eu.etaxonomy.cdm.model.occurrence.FieldObservation
All Implemented Interfaces:
IAnnotatableEntity, ICdmBase, IIdentifiableEntity, IMultiLanguageTextHolder, ISourceable<IdentifiableSource>, IVersionableEntity, IMediaDocumented, IMediaEntity, Serializable, Cloneable

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

In situ observation of a taxon in the field. If a specimen exists, in most cases a parallel field observation object should be instantiated and the specimen then is "derived" from the field unit

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 FieldObservation()
          Constructor
 
Method Summary
 FieldObservation clone()
          Clones this field observation.
 String getFieldNotes()
           
 String getFieldNumber()
          The collectors field number.
 GatheringEvent getGatheringEvent()
           
 Person getPrimaryCollector()
           
static FieldObservation NewInstance()
          Factory method
 void setFieldNotes(String fieldNotes)
           
 void setFieldNumber(String fieldNumber)
           
 void setGatheringEvent(GatheringEvent gatheringEvent)
           
 void setPrimaryCollector(Person primaryCollector)
          The primary collector is the person who the field books belongs to.
 
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

FieldObservation

protected FieldObservation()
Constructor

Method Detail

NewInstance

public static FieldObservation NewInstance()
Factory method

Returns:

getGatheringEvent

public GatheringEvent getGatheringEvent()

setGatheringEvent

public void setGatheringEvent(GatheringEvent gatheringEvent)

getFieldNumber

public String getFieldNumber()
The collectors field number. If the collector is a team the field number is taken from the field book of the primary collector.

Returns:
See Also:
primaryCollector

setFieldNumber

public void setFieldNumber(String fieldNumber)

setPrimaryCollector

public void setPrimaryCollector(Person primaryCollector)
The primary collector is the person who the field books belongs to. So the field number is also taken from him (his field book).

Parameters:
primaryCollector -
See Also:
fieldNumber

getPrimaryCollector

public Person getPrimaryCollector()

getFieldNotes

public String getFieldNotes()

setFieldNotes

public void setFieldNotes(String fieldNotes)

clone

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

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


Copyright © 2007-2013 EDIT. All Rights Reserved.