public abstract class AbstractIDMapperCapabilities extends Object implements IDMapperCapabilities
| Constructor and Description |
|---|
AbstractIDMapperCapabilities(Set<DataSource> supportedDataSources,
boolean freeSearchSupported,
Map<String,String> props) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getKeys() |
String |
getProperty(String key)
Return a value for a property, or null if this property is not defined.
|
Set<DataSource> |
getSupportedSrcDataSources() |
Set<DataSource> |
getSupportedTgtDataSources() |
boolean |
isFreeSearchSupported() |
boolean |
isMappingSupported(DataSource src,
DataSource tgt) |
public AbstractIDMapperCapabilities(Set<DataSource> supportedDataSources, boolean freeSearchSupported, Map<String,String> props)
supportedDataSources - Supported DataSources. IDMappers
are usually symmetrical, so in the default implementation
supportedDataSources is both target and source DataSources.props - properties, may be null.freeSearchSupported - if free search is supported or notpublic Set<String> getKeys()
getKeys in interface IDMapperCapabilitiespublic String getProperty(String key)
getProperty in interface IDMapperCapabilitieskey - keypublic Set<DataSource> getSupportedSrcDataSources() throws IDMapperException
getSupportedSrcDataSources in interface IDMapperCapabilitiesIDMapperException - if supported DataSources
could not be determined because of service unavailability.public Set<DataSource> getSupportedTgtDataSources() throws IDMapperException
getSupportedTgtDataSources in interface IDMapperCapabilitiesIDMapperException - if supported DataSources
could not be determined because of service unavailability.public boolean isMappingSupported(DataSource src, DataSource tgt) throws IDMapperException
isMappingSupported in interface IDMapperCapabilitiessrc - source data sourcetgt - target data sourceIDMapperException - if service is unavailablepublic boolean isFreeSearchSupported()
isFreeSearchSupported in interface IDMapperCapabilitiesCopyright © 2006–2021 BridgeDb project. All rights reserved.