Revision 423M

org.bridgedb
Class AbstractIDMapper

java.lang.Object
  extended by org.bridgedb.AbstractIDMapper
All Implemented Interfaces:
IDMapper
Direct Known Subclasses:
IDMapperWebservice

public abstract class AbstractIDMapper
extends java.lang.Object
implements IDMapper

Contains default implementation of some IDMapper methods.


Constructor Summary
AbstractIDMapper()
           
 
Method Summary
 java.util.Set<Xref> mapID(Xref srcRef, DataSource... tgtDataSources)
          Default implementation of mapID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.bridgedb.IDMapper
close, freeSearch, getCapabilities, isConnected, mapID, xrefExists
 

Constructor Detail

AbstractIDMapper

public AbstractIDMapper()
Method Detail

mapID

public java.util.Set<Xref> mapID(Xref srcRef,
                                 DataSource... tgtDataSources)
                          throws IDMapperException
Default implementation of mapID. This just calls
mapID (Set<Xref>, Set<DataSource>)
for mapping multiple id's with a set containing only a single Xref. Get all cross-references for the given entity, restricting the result to contain only references from the given set of data sources.

Specified by:
mapID in interface IDMapper
Parameters:
srcRef - the entity to get cross-references for.
tgtDataSources - target ID types/data sources. Set this to null if you want to retrieve all results.
Returns:
A Set containing the cross references, or an empty Set when no cross references could be found. This method does not return null.
Throws:
IDMapperException - if the mapping service is (temporarily) unavailable

Generated July 29 2010