Package org.gbif.api.model.registry.eml
Class Collection
- java.lang.Object
-
- org.gbif.api.model.registry.eml.Collection
-
- All Implemented Interfaces:
Serializable
public class Collection extends Object implements Serializable
Collection data for the Dataset.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Collection()
Collection(String name, String parentIdentifier, String identifier, PreservationMethodType specimenPreservationMethod, List<CuratorialUnitComposite> curatorialUnits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCuratorialUnitComposite(CuratorialUnitComposite curatorialUnitComposite)
Adds a CuratorialUnitComposite to the Collection's list of CuratorialUnitComposit.boolean
equals(Object o)
List<CuratorialUnitComposite>
getCuratorialUnits()
The quantitative descriptor (number of specimens, samples or batches).String
getIdentifier()
The URI (LSID or URL) of the collection.String
getName()
The official name of the Collection in the local language.String
getParentIdentifier()
The identifier for the parent collection for this sub-collection.PreservationMethodType
getSpecimenPreservationMethod()
Picklist keyword indicating the process or technique used to prevent physical deterioration of non-living collections.int
hashCode()
void
setCuratorialUnits(List<CuratorialUnitComposite> curatorialUnits)
void
setIdentifier(String identifier)
void
setName(String name)
void
setParentIdentifier(String parentIdentifier)
void
setSpecimenPreservationMethod(PreservationMethodType specimenPreservationMethod)
String
toString()
-
-
-
Constructor Detail
-
Collection
public Collection()
-
Collection
public Collection(String name, String parentIdentifier, String identifier, PreservationMethodType specimenPreservationMethod, List<CuratorialUnitComposite> curatorialUnits)
-
-
Method Detail
-
getIdentifier
public String getIdentifier()
The URI (LSID or URL) of the collection. In RDF, used as URI of the collection resource.- Returns:
- the collection identifier
-
setIdentifier
public void setIdentifier(String identifier)
-
getName
public String getName()
The official name of the Collection in the local language.- Returns:
- the collection name.
-
getCuratorialUnits
public List<CuratorialUnitComposite> getCuratorialUnits()
The quantitative descriptor (number of specimens, samples or batches). The actual quantification could be covered by 1) an exact number of “JGI-units” in the collection plus a measure of uncertainty (+/- x); 2) a range of numbers (x to x), with the lower value representing an exact number, when the higher value is omitted. The discussion concluded that the quantification should encompass all specimens, not only those that have not yet been digitised. This is to avoid having to update the numbers too often. The number of non-public data (not digitised or not accessible) can be calculated from the GBIF numbers as opposed to the JGTI-data.- Returns:
- the list of curatorial units
-
setCuratorialUnits
public void setCuratorialUnits(List<CuratorialUnitComposite> curatorialUnits)
-
getParentIdentifier
public String getParentIdentifier()
The identifier for the parent collection for this sub-collection. Enables a hierarchy of collections and sub collections to be built.- Returns:
- the parent collection identifier
-
setParentIdentifier
public void setParentIdentifier(String parentIdentifier)
-
getSpecimenPreservationMethod
public PreservationMethodType getSpecimenPreservationMethod()
Picklist keyword indicating the process or technique used to prevent physical deterioration of non-living collections. Expected to contain an instance from the Specimen Preservation Method Type Term vocabulary.- Returns:
- the preservation method type
-
setSpecimenPreservationMethod
public void setSpecimenPreservationMethod(PreservationMethodType specimenPreservationMethod)
-
addCuratorialUnitComposite
public void addCuratorialUnitComposite(CuratorialUnitComposite curatorialUnitComposite)
Adds a CuratorialUnitComposite to the Collection's list of CuratorialUnitComposit.- Parameters:
curatorialUnitComposite
- curatorial unit
-
-