|
Revision 423M | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bridgedb.AbstractIDMapperCapabilities
public abstract class AbstractIDMapperCapabilities
Simple implementation of IDMapperCapabilities, which assumes that the supported datasources are the same for target and source, and that the supported data sources and properties are static and known at creation time.
| Constructor Summary | |
|---|---|
AbstractIDMapperCapabilities(java.util.Set<DataSource> supportedDataSources,
boolean freeSearchSupported,
java.util.Map<java.lang.String,java.lang.String> props)
|
|
| Method Summary | |
|---|---|
java.util.Set<java.lang.String> |
getKeys()
|
java.lang.String |
getProperty(java.lang.String key)
Return a value for a property, or null if this property is not defined. |
java.util.Set<DataSource> |
getSupportedSrcDataSources()
|
java.util.Set<DataSource> |
getSupportedTgtDataSources()
|
boolean |
isFreeSearchSupported()
|
boolean |
isMappingSupported(DataSource src,
DataSource tgt)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractIDMapperCapabilities(java.util.Set<DataSource> supportedDataSources,
boolean freeSearchSupported,
java.util.Map<java.lang.String,java.lang.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 not| Method Detail |
|---|
public java.util.Set<java.lang.String> getKeys()
getKeys in interface IDMapperCapabilitiespublic java.lang.String getProperty(java.lang.String key)
getProperty in interface IDMapperCapabilitieskey - key
public java.util.Set<DataSource> getSupportedSrcDataSources()
throws IDMapperException
getSupportedSrcDataSources in interface IDMapperCapabilitiesIDMapperException - if supported DataSources
could not be determined because of service unavailability.
public java.util.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 source
IDMapperException - if service is unavailablepublic boolean isFreeSearchSupported()
isFreeSearchSupported in interface IDMapperCapabilities
|
Generated July 29 2010 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||