Enum Class DatasourceIdentifier
java.lang.Object
java.lang.Enum<DatasourceIdentifier>
cern.nxcals.api.backport.domain.core.datasource.DatasourceIdentifier
- All Implemented Interfaces:
Serializable,Comparable<DatasourceIdentifier>,Constable
The DatasourceIdentifier represents a data source.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DatasourceIdentifiergetDatasource(String datasource) Utility method used to return the DatasourceIdenfier based on the name given.static DatasourceIdentifierReturns the enum constant of this class with the specified name.static DatasourceIdentifier[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TIMBER
-
LHCLOG
-
MEASDB
-
-
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
-
getDatasource
Utility method used to return the DatasourceIdenfier based on the name given. If the name doesn't match any datasource, null is returned.- Parameters:
datasource- the datasource (represented as a string)- Returns:
- the datasource (represented as DatasourceIdentifier), if the datasource doesn't correspond, the function returns null.
-