public class DerivedUnitFacade
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
absoluteElevationToString()
Returns the correctly formatted
absolute elevation information. |
void |
addAnnotation(Annotation annotation) |
void |
addCollectingArea(NamedArea area) |
void |
addCollectingAreas(java.util.Collection<NamedArea> areas) |
void |
addDerivedUnitDefinition(java.lang.String text,
Language language) |
boolean |
addDerivedUnitMedia(Media media) |
void |
addDetermination(DeterminationEvent determination) |
DerivedUnit |
addDuplicate(Collection collection,
java.lang.String catalogNumber,
java.lang.String accessionNumber,
TaxonName storedUnder,
PreservationMethod preservation)
Creates a duplicate specimen which derives from the same derivation event
as the facade specimen and adds collection data to it (all data available
in DerivedUnit and Specimen.
|
void |
addDuplicate(DerivedUnit duplicateSpecimen) |
void |
addFieldObjectDefinition(java.lang.String text,
Language language) |
boolean |
addFieldObjectMedia(Media media) |
void |
addIdentifier(Identifier identifier) |
void |
addSource(IdentifiableSource source) |
IdentifiableSource |
addSource(OriginalSourceType type,
Reference reference,
java.lang.String microReference,
java.lang.String originalNameString)
Creates an
orignal source or type ,
adds it to the specimen and returns it. |
SpecimenOrObservationBase<?> |
baseUnit() |
void |
close()
Closes this facade.
|
static java.lang.String |
distanceString(java.lang.Number min,
java.lang.Number max,
java.lang.String text,
java.lang.String unit)
Computes the correct distance string for given values for min, max and text.
|
java.lang.String |
distanceToGroundToString()
Returns the correctly formatted
distance to ground information. |
java.lang.String |
distanceToWaterSurfaceToString()
Returns the correctly formatted
distance to water surface information. |
java.lang.Integer |
getAbsoluteElevation()
meter above/below sea level of the surface
|
java.lang.Integer |
getAbsoluteElevationMaximum() |
java.lang.String |
getAbsoluteElevationText() |
java.lang.String |
getAccessionNumber() |
void |
getAnnotations() |
java.lang.String |
getBarcode() |
java.lang.String |
getCatalogNumber() |
java.util.Set<NamedArea> |
getCollectingAreas() |
java.lang.String |
getCollectingMethod() |
Collection |
getCollection() |
AgentBase |
getCollector() |
NamedArea |
getCountry() |
java.lang.String |
getDerivedUnitDefinition(Language language) |
java.util.Map<Language,LanguageString> |
getDerivedUnitDefinitions() |
SpecimenDescription |
getDerivedUnitImageGallery(boolean createIfNotExists) |
DefinedTerm |
getDerivedUnitKindOfUnit() |
java.util.List<Media> |
getDerivedUnitMedia()
Returns the media for the specimen.
|
java.util.Set<DeterminationEvent> |
getDeterminations()
This method returns all determination events.
|
java.lang.Double |
getDistanceToGround() |
java.lang.Double |
getDistanceToGroundMax() |
java.lang.String |
getDistanceToGroundText() |
java.lang.Double |
getDistanceToWaterSurface() |
java.lang.Double |
getDistanceToWaterSurfaceMax() |
java.lang.String |
getDistanceToWaterSurfaceText() |
java.util.Set<DerivedUnit> |
getDuplicates() |
java.lang.String |
getEcology() |
java.lang.String |
getEcology(Language language) |
java.util.Map<Language,LanguageString> |
getEcologyAll()
Returns a copy of the multilanguage text holding the ecology data.
|
Point |
getExactLocation() |
java.lang.String |
getExactLocationText(boolean includeEmptySeconds,
boolean includeReferenceSystem)
Returns a sexagesimal representation of the exact location (e.g.
|
java.lang.String |
getExsiccatum() |
java.lang.String |
getFieldNotes() |
java.lang.String |
getFieldNumber() |
java.util.Map<Language,LanguageString> |
getFieldObjectDefinition() |
java.lang.String |
getFieldObjectDefinition(Language language) |
SpecimenDescription |
getFieldObjectImageGallery(boolean createIfNotExists)
Returns the field object image gallery.
|
java.util.List<Media> |
getFieldObjectMedia()
Returns the media for the field object.
|
FieldUnit |
getFieldUnit(boolean createIfNotExists)
Returns the field unit as an object.
|
DefinedTerm |
getFieldUnitKindOfUnit() |
GatheringEvent |
getGatheringEvent(boolean createIfNotExists) |
java.lang.String |
getGatheringEventDescription() |
TimePeriod |
getGatheringPeriod() |
java.util.List<Identifier> |
getIdentifiers() |
java.lang.String |
getIndividualCount() |
java.lang.String |
getLifeform() |
java.lang.String |
getLifeform(Language language) |
java.util.Map<Language,LanguageString> |
getLifeformAll()
Returns a copy of the multi language text holding the life-form data.
|
DefinedTerm |
getLifeStage() |
LanguageString |
getLocality() |
Language |
getLocalityLanguage()
Convenience method for
getLocality() . |
java.lang.String |
getLocalityText()
convienience method for
getLocality() . |
java.lang.String |
getOriginalLabelInfo()
Returns the original label information of the derived unit.
|
java.util.Set<DeterminationEvent> |
getOtherDeterminations()
This method returns all determinations except for the preferred one.
|
java.lang.String |
getPlantDescription() |
java.lang.String |
getPlantDescription(Language language) |
java.util.Map<Language,LanguageString> |
getPlantDescriptionAll()
Returns a copy of the multilanguage text holding the description data.
|
DeterminationEvent |
getPreferredDetermination() |
java.net.URI |
getPreferredStableUri() |
PreservationMethod |
getPreservationMethod()
Only supported by specimen and fossils
|
Person |
getPrimaryCollector() |
java.util.Set<Rights> |
getRights() |
DefinedTerm |
getSex() |
java.util.Set<IdentifiableSource> |
getSources() |
java.lang.String |
getSpecimenLabel()
The combination of collection code with accession number, barcode or collection number.
|
TaxonName |
getStoredUnder() |
java.lang.String |
getTitleCache() |
SpecimenOrObservationType |
getType() |
boolean |
hasDerivedUnitImageGallery()
Returns true, if an image gallery exists for the specimen.
Returns also true if the image gallery is empty. |
boolean |
hasFieldObject()
Returns true if a field unit exists (even if all attributes are
empty or
null |
boolean |
hasFieldObjectImageGallery()
Returns true, if an image gallery for the field object exists.
Returns also true if the image gallery is empty. |
boolean |
hasFieldUnit() |
boolean |
hasGatheringEvent() |
DerivedUnit |
innerDerivedUnit()
Returns the derived unit itself.
|
FieldUnit |
innerFieldUnit()
Returns the field unit as an object.
|
GatheringEvent |
innerGatheringEvent() |
boolean |
isProtectedTitleCache() |
boolean |
isPublish()
First checks the inner field unit for the publish flag.
|
static DerivedUnitFacade |
NewInstance(DerivedUnit derivedUnit)
Creates a derived unit facade for a given derived unit using the default
configuration.
|
static DerivedUnitFacade |
NewInstance(DerivedUnit derivedUnit,
DerivedUnitFacadeConfigurator config) |
static DerivedUnitFacade |
NewInstance(SpecimenOrObservationType type)
Creates a derived unit facade for a new derived unit of type
type . |
static DerivedUnitFacade |
NewInstance(SpecimenOrObservationType type,
FieldUnit fieldUnit)
Creates a derived unit facade for a new derived unit of type
type . |
static DerivedUnitFacade |
NewInstance(SpecimenOrObservationType type,
FieldUnit fieldUnit,
DerivedUnitFacadeConfigurator config)
Creates a derived unit facade for a new derived unit of type
type . |
static DerivedUnitFacade |
NewPreservedSpecimenInstance()
Creates a derived unit facade for a new derived unit of type
SpecimenOrObservationType.PreservedSpecimen . |
void |
removeAnnotation(Annotation annotation) |
void |
removeCollectingArea(NamedArea area) |
void |
removeDerivedUnitDefinition(Language lang) |
boolean |
removeDerivedUnitMedia(Media media) |
void |
removeDetermination(DeterminationEvent determination) |
void |
removeDuplicate(DerivedUnit duplicateSpecimen) |
void |
removeEcology()
Removes ecology for the default language
|
void |
removeEcology(Language language) |
void |
removeFieldObjectDefinition(Language lang) |
boolean |
removeFieldObjectMedia(Media media) |
void |
removeIdentifier(Identifier identifier) |
void |
removeLifeform()
Removes life-form for the default language
|
void |
removeLifeform(Language language) |
void |
removePlantDescription(Language language) |
void |
removeSource(IdentifiableSource source) |
void |
setAbsoluteElevation(java.lang.Integer absoluteElevation) |
void |
setAbsoluteElevationMax(java.lang.Integer absoluteElevationMax) |
void |
setAbsoluteElevationRange(java.lang.Integer minimumElevation,
java.lang.Integer maximumElevation)
Convenience method to set absolute elevation minimum and maximum.
|
void |
setAbsoluteElevationText(java.lang.String absoluteElevationText) |
void |
setAccessionNumber(java.lang.String accessionNumber) |
void |
setBarcode(java.lang.String barcode) |
void |
setCatalogNumber(java.lang.String catalogNumber) |
void |
setCollectingMethod(java.lang.String collectingMethod) |
void |
setCollection(Collection collection) |
void |
setCollector(AgentBase collector) |
void |
setCountry(NamedArea country) |
void |
setDerivedUnitImageGallery(SpecimenDescription imageGallery) |
void |
setDerivedUnitKindOfUnit(DefinedTerm kindOfUnit) |
void |
setDistanceToGround(java.lang.Double distanceToGround) |
void |
setDistanceToGroundMax(java.lang.Double distanceToGroundMax) |
void |
setDistanceToGroundRange(java.lang.Double minimumDistance,
java.lang.Double maximumDistance)
Convenience method to set distance to ground minimum and maximum.
|
void |
setDistanceToGroundText(java.lang.String distanceToGroundText) |
void |
setDistanceToWaterSurface(java.lang.Double distanceToWaterSurface) |
void |
setDistanceToWaterSurfaceMax(java.lang.Double distanceToWaterSurfaceMax) |
void |
setDistanceToWaterSurfaceRange(java.lang.Double minimumDistance,
java.lang.Double maximumDistance)
Convenience method to set distance to ground minimum and maximum.
|
void |
setDistanceToWaterSurfaceText(java.lang.String distanceToWaterSurfaceText) |
void |
setEcology(java.lang.String ecology) |
void |
setEcology(java.lang.String ecologyText,
Language language) |
void |
setExactLocation(Point exactLocation) |
void |
setExactLocationByParsing(java.lang.String longitudeToParse,
java.lang.String latitudeToParse,
ReferenceSystem referenceSystem,
java.lang.Integer errorRadius) |
void |
setExsiccatum(java.lang.String exsiccatum) |
void |
setFieldNotes(java.lang.String fieldNotes) |
void |
setFieldNumber(java.lang.String fieldNumber) |
void |
setFieldObjectImageGallery(SpecimenDescription imageGallery) |
void |
setFieldUnit(FieldUnit fieldUnit) |
void |
setFieldUnitKindOfUnit(DefinedTerm kindOfUnit)
Sets the kind-of-unit
|
void |
setGatheringEvent(GatheringEvent gatheringEvent)
The gathering event will be used for the field object instead of the old
gathering event.
This method will override all gathering values (see below). |
void |
setGatheringEventDescription(java.lang.String description) |
void |
setGatheringPeriod(TimePeriod timeperiod) |
void |
setIndividualCount(java.lang.String individualCount) |
void |
setLifeform(java.lang.String lifeform) |
void |
setLifeform(java.lang.String lifeformText,
Language language) |
void |
setLifeStage(DefinedTerm lifeStage) |
void |
setLocality(LanguageString locality) |
void |
setLocality(java.lang.String locality)
Sets the locality string in the default language
|
void |
setLocality(java.lang.String locality,
Language language) |
void |
setOriginalLabelInfo(java.lang.String originalLabelInfo) |
void |
setPlantDescription(java.lang.String plantDescription) |
void |
setPlantDescription(java.lang.String plantDescriptionText,
Language language) |
void |
setPreferredDetermination(DeterminationEvent newEvent)
This method returns the preferred determination.
|
void |
setPreferredStableUri(java.net.URI stableUri) |
void |
setPreservationMethod(PreservationMethod preservation)
Only supported by specimen and fossils
|
void |
setPrimaryCollector(Person primaryCollector) |
void |
setSex(DefinedTerm sex) |
void |
setStoredUnder(TaxonName storedUnder) |
void |
setTitleCache(java.lang.String titleCache,
boolean isProtected) |
void |
setType(SpecimenOrObservationType type) |
public static DerivedUnitFacade NewInstance(SpecimenOrObservationType type)
type
.type
- public static DerivedUnitFacade NewPreservedSpecimenInstance()
SpecimenOrObservationType.PreservedSpecimen
.public static DerivedUnitFacade NewInstance(SpecimenOrObservationType type, FieldUnit fieldUnit)
type
.type
- public static DerivedUnitFacade NewInstance(SpecimenOrObservationType type, FieldUnit fieldUnit, DerivedUnitFacadeConfigurator config)
type
.type
- fieldUnit
- the field unit to useconfig
- the facade configurator to use
//TODO are there any ambiguities to solve with defining a field unit or a configuratorpublic static DerivedUnitFacade NewInstance(DerivedUnit derivedUnit) throws DerivedUnitFacadeNotSupportedException
derivedUnit
- DerivedUnitFacadeNotSupportedException
public static DerivedUnitFacade NewInstance(DerivedUnit derivedUnit, DerivedUnitFacadeConfigurator config) throws DerivedUnitFacadeNotSupportedException
public NamedArea getCountry()
public void setCountry(NamedArea country)
public void addCollectingArea(NamedArea area)
public void addCollectingAreas(java.util.Collection<NamedArea> areas)
public java.util.Set<NamedArea> getCollectingAreas()
public void removeCollectingArea(NamedArea area)
public java.lang.String absoluteElevationToString()
absolute elevation
information.
If absoluteElevationText is set, this will be returned,
otherwise we absoluteElevation will be returned, followed by absoluteElevationMax
if existing, separated by " - "public java.lang.Integer getAbsoluteElevation()
#getAbsoluteElevationError()
,
#getAbsoluteElevationRange()
public void setAbsoluteElevation(java.lang.Integer absoluteElevation)
public void setAbsoluteElevationMax(java.lang.Integer absoluteElevationMax)
public void setAbsoluteElevationText(java.lang.String absoluteElevationText)
public java.lang.Integer getAbsoluteElevationMaximum()
getAbsoluteElevation()
,
#getAbsoluteElevationError()
,
setAbsoluteElevationRange(Integer, Integer)
,
#getAbsoluteElevationMinimum()
public java.lang.String getAbsoluteElevationText()
getAbsoluteElevation()
,
#getAbsoluteElevationError()
,
setAbsoluteElevationRange(Integer, Integer)
,
#getAbsoluteElevationMinimum()
public void setAbsoluteElevationRange(java.lang.Integer minimumElevation, java.lang.Integer maximumElevation)
minimumElevation
- minimum of the rangemaximumElevation
- maximum of the rangesetAbsoluteElevation(Integer)
,
setAbsoluteElevationMax(Integer)
public AgentBase getCollector()
public void setCollector(AgentBase collector)
public java.lang.String getCollectingMethod()
public void setCollectingMethod(java.lang.String collectingMethod)
public java.lang.String distanceToGroundToString()
distance to ground
information.
If distanceToGroundText is not blank, it will be returned,
otherwise distanceToGround will be returned, followed by distanceToGroundMax
if existing, separated by " - "public java.lang.Double getDistanceToGround()
public void setDistanceToGround(java.lang.Double distanceToGround)
public java.lang.Double getDistanceToGroundMax()
getDistanceToGround()
,
#getDistanceToGroundRange(Integer, Integer)
public void setDistanceToGroundMax(java.lang.Double distanceToGroundMax)
public java.lang.String getDistanceToGroundText()
getDistanceToGround()
,
#setDistanceToGroundRange(Integer, Integer)
public void setDistanceToGroundText(java.lang.String distanceToGroundText)
public void setDistanceToGroundRange(java.lang.Double minimumDistance, java.lang.Double maximumDistance) throws java.lang.IllegalArgumentException
minimumDistance
- minimum of the rangemaximumDistance
- maximum of the rangejava.lang.IllegalArgumentException
getDistanceToGround()
,
getDistanceToGroundMax()
public java.lang.String distanceToWaterSurfaceToString()
distance to water surface
information.
If distanceToWaterSurfaceText is not blank, it will be returned,
otherwise distanceToWaterSurface will be returned, followed by distanceToWatersurfaceMax
if existing, separated by " - "public java.lang.Double getDistanceToWaterSurface()
public void setDistanceToWaterSurface(java.lang.Double distanceToWaterSurface)
public java.lang.Double getDistanceToWaterSurfaceMax()
getDistanceToWaterSurface()
,
#getDistanceToWaterSurfaceRange(Double, Double)
public void setDistanceToWaterSurfaceMax(java.lang.Double distanceToWaterSurfaceMax)
public java.lang.String getDistanceToWaterSurfaceText()
getDistanceToWaterSurface()
,
#getDistanceToWaterSurfaceRange(Double, Double)
public void setDistanceToWaterSurfaceText(java.lang.String distanceToWaterSurfaceText)
public void setDistanceToWaterSurfaceRange(java.lang.Double minimumDistance, java.lang.Double maximumDistance) throws java.lang.IllegalArgumentException
minimumDistance
- minimum of the range, this is the distance which is closer to the water surfacemaximumDistance
- maximum of the range, this is the distance which is farer to the water surfacejava.lang.IllegalArgumentException
getDistanceToWaterSurface()
,
getDistanceToWaterSurfaceMax()
public Point getExactLocation()
public java.lang.String getExactLocationText(boolean includeEmptySeconds, boolean includeReferenceSystem)
null
the empty
string is returned.includeEmptySeconds
- includeReferenceSystem
- public void setExactLocation(Point exactLocation)
public void setExactLocationByParsing(java.lang.String longitudeToParse, java.lang.String latitudeToParse, ReferenceSystem referenceSystem, java.lang.Integer errorRadius) throws java.text.ParseException
java.text.ParseException
public java.lang.String getGatheringEventDescription()
public void setGatheringEventDescription(java.lang.String description)
public TimePeriod getGatheringPeriod()
public void setGatheringPeriod(TimePeriod timeperiod)
public LanguageString getLocality()
public java.lang.String getLocalityText()
getLocality()
.
getText()
public Language getLocalityLanguage()
getLocality()
.
getLanguage()
public void setLocality(java.lang.String locality)
locality
- public void setLocality(java.lang.String locality, Language language)
public void setLocality(LanguageString locality)
public void setGatheringEvent(GatheringEvent gatheringEvent)
gatheringEvent
- getAbsoluteElevation()
,
#getAbsoluteElevationError()
,
getDistanceToGround()
,
getDistanceToWaterSurface()
,
getExactLocation()
,
getGatheringEventDescription()
,
getGatheringPeriod()
,
getCollectingAreas()
,
getCollectingMethod()
,
getLocality()
,
getCollector()
public boolean hasGatheringEvent()
public GatheringEvent innerGatheringEvent()
public GatheringEvent getGatheringEvent(boolean createIfNotExists)
public boolean hasFieldObject()
null.
public java.lang.String getEcology()
public java.lang.String getEcology(Language language)
public java.util.Map<Language,LanguageString> getEcologyAll()
TextData#getMultilanguageText()}
public void setEcology(java.lang.String ecology)
public void setEcology(java.lang.String ecologyText, Language language)
public void removeEcology(Language language)
public void removeEcology()
public java.lang.String getPlantDescription()
public java.lang.String getPlantDescription(Language language)
public java.util.Map<Language,LanguageString> getPlantDescriptionAll()
TextData#getMultilanguageText()}
public void setPlantDescription(java.lang.String plantDescription)
public void setPlantDescription(java.lang.String plantDescriptionText, Language language)
public void removePlantDescription(Language language)
public java.lang.String getLifeform()
public java.lang.String getLifeform(Language language)
public java.util.Map<Language,LanguageString> getLifeformAll()
TextData#getMultilanguageText()}
public void setLifeform(java.lang.String lifeform)
public void setLifeform(java.lang.String lifeformText, Language language)
public void removeLifeform(Language language)
public void removeLifeform()
public void addFieldObjectDefinition(java.lang.String text, Language language)
public java.util.Map<Language,LanguageString> getFieldObjectDefinition()
public java.lang.String getFieldObjectDefinition(Language language)
public void removeFieldObjectDefinition(Language lang)
public boolean addFieldObjectMedia(Media media)
public boolean hasFieldObjectImageGallery()
true
if the image gallery is empty.public void setFieldObjectImageGallery(SpecimenDescription imageGallery) throws DerivedUnitFacadeNotSupportedException
public SpecimenDescription getFieldObjectImageGallery(boolean createIfNotExists)
createIfNotExists
- public java.util.List<Media> getFieldObjectMedia()
public boolean removeFieldObjectMedia(Media media)
public java.lang.String getFieldNumber()
public void setFieldNumber(java.lang.String fieldNumber)
public Person getPrimaryCollector()
public void setPrimaryCollector(Person primaryCollector)
public java.lang.String getFieldNotes()
public void setFieldNotes(java.lang.String fieldNotes)
public java.lang.String getIndividualCount()
public void setIndividualCount(java.lang.String individualCount)
public DefinedTerm getLifeStage()
public void setLifeStage(DefinedTerm lifeStage)
public DefinedTerm getSex()
public void setSex(DefinedTerm sex)
public DefinedTerm getFieldUnitKindOfUnit()
public DefinedTerm getDerivedUnitKindOfUnit()
public void setFieldUnitKindOfUnit(DefinedTerm kindOfUnit)
kindOfUnit
- public void setDerivedUnitKindOfUnit(DefinedTerm kindOfUnit)
public boolean hasFieldUnit()
public FieldUnit innerFieldUnit()
public FieldUnit getFieldUnit(boolean createIfNotExists)
public void setFieldUnit(FieldUnit fieldUnit)
public void addDerivedUnitDefinition(java.lang.String text, Language language)
public java.util.Map<Language,LanguageString> getDerivedUnitDefinitions()
public java.lang.String getDerivedUnitDefinition(Language language)
public void removeDerivedUnitDefinition(Language lang)
public void addDetermination(DeterminationEvent determination)
public DeterminationEvent getPreferredDetermination()
public void setPreferredDetermination(DeterminationEvent newEvent)
getOtherDeterminations()
,
getDeterminations()
public java.util.Set<DeterminationEvent> getOtherDeterminations()
getPreferredDetermination()
,
getDeterminations()
public java.util.Set<DeterminationEvent> getDeterminations()
getPreferredDetermination()
and all others getOtherDeterminations()
.public void removeDetermination(DeterminationEvent determination)
public boolean addDerivedUnitMedia(Media media)
public boolean hasDerivedUnitImageGallery()
true
if the image gallery is empty.public SpecimenDescription getDerivedUnitImageGallery(boolean createIfNotExists)
public void setDerivedUnitImageGallery(SpecimenDescription imageGallery) throws DerivedUnitFacadeNotSupportedException
public java.util.List<Media> getDerivedUnitMedia()
public boolean removeDerivedUnitMedia(Media media)
public java.lang.String getAccessionNumber()
public java.lang.String getSpecimenLabel()
public void setAccessionNumber(java.lang.String accessionNumber)
public java.lang.String getCatalogNumber()
public void setCatalogNumber(java.lang.String catalogNumber)
public java.lang.String getBarcode()
public void setBarcode(java.lang.String barcode)
public PreservationMethod getPreservationMethod() throws MethodNotSupportedByDerivedUnitTypeException
MethodNotSupportedByDerivedUnitTypeException
#DerivedUnitType
public void setPreservationMethod(PreservationMethod preservation) throws MethodNotSupportedByDerivedUnitTypeException
MethodNotSupportedByDerivedUnitTypeException
#DerivedUnitType
public java.net.URI getPreferredStableUri()
public void setPreferredStableUri(java.net.URI stableUri)
public TaxonName getStoredUnder()
public void setStoredUnder(TaxonName storedUnder)
public java.lang.String getTitleCache()
public boolean isProtectedTitleCache()
public void setTitleCache(java.lang.String titleCache, boolean isProtected)
public DerivedUnit innerDerivedUnit()
public java.lang.String getExsiccatum() throws MethodNotSupportedByDerivedUnitTypeException
public void setExsiccatum(java.lang.String exsiccatum) throws java.lang.Exception
java.lang.Exception
public java.lang.String getOriginalLabelInfo()
public void setOriginalLabelInfo(java.lang.String originalLabelInfo)
public void addSource(IdentifiableSource source)
public IdentifiableSource addSource(OriginalSourceType type, Reference reference, java.lang.String microReference, java.lang.String originalNameString)
orignal source
or type ,
adds it to the specimen and returns it.reference
- microReference
- originalNameString
- public java.util.Set<IdentifiableSource> getSources()
public void removeSource(IdentifiableSource source)
public void addIdentifier(Identifier identifier)
public java.util.List<Identifier> getIdentifiers()
public void removeIdentifier(Identifier identifier)
public java.util.Set<Rights> getRights()
public Collection getCollection()
public void setCollection(Collection collection)
collection
- the collection to setpublic void addAnnotation(Annotation annotation)
public void getAnnotations()
public void removeAnnotation(Annotation annotation)
public DerivedUnit addDuplicate(Collection collection, java.lang.String catalogNumber, java.lang.String accessionNumber, TaxonName storedUnder, PreservationMethod preservation)
collection
- catalogNumber
- accessionNumber
- storedUnder
- preservation
- public void addDuplicate(DerivedUnit duplicateSpecimen)
public java.util.Set<DerivedUnit> getDuplicates()
public void removeDuplicate(DerivedUnit duplicateSpecimen)
public SpecimenOrObservationBase<?> baseUnit()
public void setType(SpecimenOrObservationType type)
public SpecimenOrObservationType getType()
public void close()
public static java.lang.String distanceString(java.lang.Number min, java.lang.Number max, java.lang.String text, java.lang.String unit)
min
- min value as numbermax
- max value as numbertext
- text representation of distancepublic boolean isPublish()
true
then true
is returned. If the field unit is null
the inner derived unit
is checked.true
if this facade can be publishedCopyright © 2007-2020 EDIT. All Rights Reserved.