Package org.bridgedb.rdf
Enum DataSourceMetaDataProvidor
- java.lang.Object
-
- java.lang.Enum<DataSourceMetaDataProvidor>
-
- org.bridgedb.rdf.DataSourceMetaDataProvidor
-
- All Implemented Interfaces:
Serializable,Comparable<DataSourceMetaDataProvidor>
public enum DataSourceMetaDataProvidor extends Enum<DataSourceMetaDataProvidor>
- Author:
- Christian
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BIOMIRIAM_ONLYRDF
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassumeUnknownsAreBio()static intcompare(String sysCode1, String sysCode2)static DataSourceMetaDataProvidorgetProvider(String sysCode)static voidsetProvidor(String sysCode, DataSourceMetaDataProvidor providor)static DataSourceMetaDataProvidorvalueOf(String name)Returns the enum constant of this type with the specified name.static DataSourceMetaDataProvidor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BIO
public static final DataSourceMetaDataProvidor BIO
-
RDF
public static final DataSourceMetaDataProvidor RDF
-
MIRIAM_ONLY
public static final DataSourceMetaDataProvidor MIRIAM_ONLY
-
-
Method Detail
-
values
public static DataSourceMetaDataProvidor[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DataSourceMetaDataProvidor c : DataSourceMetaDataProvidor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataSourceMetaDataProvidor valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
assumeUnknownsAreBio
public static void assumeUnknownsAreBio()
-
setProvidor
public static void setProvidor(String sysCode, DataSourceMetaDataProvidor providor)
-
getProvider
public static DataSourceMetaDataProvidor getProvider(String sysCode) throws BridgeDBException
- Throws:
BridgeDBException
-
compare
public static int compare(String sysCode1, String sysCode2) throws BridgeDBException
- Throws:
BridgeDBException
-
-