|
Revision 423M | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bridgedb.file.IDMapperFile
public abstract class IDMapperFile
Interface for ID mapping from files.
| Field Summary | |
|---|---|
protected org.bridgedb.file.IDMapperFile.IDMapperFileCapabilities |
cap
|
protected IDMappingReader |
reader
|
| Constructor Summary | |
|---|---|
IDMapperFile(IDMappingReader reader)
Constuctor from a IDMappingReader. |
|
IDMapperFile(IDMappingReader reader,
boolean freeSearch)
Constuctor from a IDMappingReader and user-defined free search
capacity. |
|
| Method Summary | |
|---|---|
void |
close()
dispose any resources (such as open database connections) associated with this IDMapper. |
IDMapperCapabilities |
getCapabilities()
|
protected IDMappingReader |
getIDMappingReader()
|
boolean |
isConnected()
Use this method to check if the IDMapper is still valid. |
java.util.Map<Xref,java.util.Set<Xref>> |
mapID(java.util.Collection<Xref> srcXrefs,
DataSource... tgtDataSources)
Get all cross-references for a set of entities, restricting the result to contain only references from the given set of data sources. |
java.util.Set<Xref> |
mapID(Xref srcXref,
DataSource... tgtDataSources)
Get all cross-references for the given entity, restricting the result to contain only references from the given set of data sources. |
boolean |
xrefExists(Xref xref)
Check whether an Xref is known by the given mapping source. |
| 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 |
|---|
freeSearch |
| Field Detail |
|---|
protected final org.bridgedb.file.IDMapperFile.IDMapperFileCapabilities cap
protected final IDMappingReader reader
| Constructor Detail |
|---|
public IDMapperFile(IDMappingReader reader)
throws IDMapperException
IDMappingReader. transitivity is unsupported
by default.
reader - ID mapping reader
IDMapperException - when failed to read
public IDMapperFile(IDMappingReader reader,
boolean freeSearch)
throws IDMapperException
IDMappingReader and user-defined free search
capacity.
reader - ID mapping readerfreeSearch - if this IDMapper supports free search
IDMapperException - when failed to read
java.lang.IllegalArgumentException - if reader is null| Method Detail |
|---|
public java.util.Map<Xref,java.util.Set<Xref>> mapID(java.util.Collection<Xref> srcXrefs,
DataSource... tgtDataSources)
throws IDMapperException
mapID in interface IDMappersrcXrefs - source Xref, containing ID and ID type/data sourcetgtDataSources - target ID types/data sources. Set this to null
if you want to retrieve all results.
IDMapperException - if the mapping service is (temporarily) unavailable
public java.util.Set<Xref> mapID(Xref srcXref,
DataSource... tgtDataSources)
throws IDMapperException
mapID in interface IDMappersrcXref - the entity to get cross-references for.tgtDataSources - target ID types/data sources. Set this to null if you
want to retrieve all results.
IDMapperException - if the mapping service is (temporarily) unavailable
public boolean xrefExists(Xref xref)
throws IDMapperException
xrefExists in interface IDMapperxref - reference to check
IDMapperException - if failed, UnsupportedOperationException if it's not supported by the Driver.
public void close()
throws IDMapperException
close in interface IDMapperIDMapperException - if the associated resources could not be freed.public boolean isConnected()
isConnected in interface IDMapperpublic IDMapperCapabilities getCapabilities()
getCapabilities in interface IDMapperprotected IDMappingReader getIDMappingReader()
|
Generated July 29 2010 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||