Package org.bridgedb
Interface IDMapperCapabilities
-
- All Known Implementing Classes:
AbstractIDMapperCapabilities
public interface IDMapperCapabilitiesDescribes capabilities of an IDMapper. Free form key-value properties are used for version info etc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<String>getKeys()StringgetProperty(String key)Return a value for a property, or null if this property is not defined.Set<DataSource>getSupportedSrcDataSources()Set<DataSource>getSupportedTgtDataSources()booleanisFreeSearchSupported()booleanisMappingSupported(DataSource src, DataSource tgt)
-
-
-
Method Detail
-
isFreeSearchSupported
boolean isFreeSearchSupported()
- Returns:
- true if free text search is supported, false otherwise.
-
getSupportedSrcDataSources
Set<DataSource> getSupportedSrcDataSources() throws IDMapperException
- Returns:
- supported source ID types
- Throws:
IDMapperException- if supported DataSources could not be determined because of service unavailability.
-
getSupportedTgtDataSources
Set<DataSource> getSupportedTgtDataSources() throws IDMapperException
- Returns:
- supported target ID types
- Throws:
IDMapperException- if supported DataSources could not be determined because of service unavailability.
-
isMappingSupported
boolean isMappingSupported(DataSource src, DataSource tgt) throws IDMapperException
- Parameters:
src- source data sourcetgt- target data source- Returns:
- true if mapping is supported from src to des
- Throws:
IDMapperException- if service is unavailable
-
getProperty
String getProperty(String key)
Return a value for a property, or null if this property is not defined. Implementations are free to choose a set of properties. Suggested properties:- Version
- DateCreated
- SourceDatabase
- SourceDatabaseVersion
- Species
- Parameters:
key- key- Returns:
- property string
-
-