Package tethys
Enum Class Collection
- All Implemented Interfaces:
Serializable
,Comparable<Collection>
,Constable
Names of Tethys Collections. These are the plural names, though contain functionality
to get the document names, which are generally the singular of the enum
- Author:
- dg50
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionGet the name of a document in this collection, this is generally the singular of the collection name.static Collection
get Tethys collection name from nilus collection objectsstatic Collection
Find a collection for the given name.static Collection[]
mainList()
A list of the main collections in the database, i.e.static Collection
Returns the enum constant of this class with the specified name.static Collection[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
Deployments
-
Detections
-
Calibrations
-
Localizations
-
SpeciesAbbreviations
-
Ensembles
-
SourceMaps
-
ITIS
-
ITIS_ranks
-
OTHER
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
mainList
A list of the main collections in the database, i.e. ones the user will possibly want to interract with through the GUI.- Returns:
- list of main collections.
-
documentName
Get the name of a document in this collection, this is generally the singular of the collection name.- Returns:
- Document name, e.g. Detection for Detections
-
collectionName
-
fromName
Find a collection for the given name. This does a bit more than the simple 'valueof' since it also allows the user to input a documentname in place, which is just the collection name without the plural 's' on the end- Parameters:
name
- Collection name.- Returns:
- Collection or null.
-
fromClass
get Tethys collection name from nilus collection objects- Parameters:
className
- nilus object Class Name- Returns:
- name of Tethys collection
-