|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.ebi.intact.util.BioSourceFactory
That class his hidding the logic which allow to get a valid biosource from a taxid.
Constructor Summary | |
BioSourceFactory(IntactHelper helper)
|
|
BioSourceFactory(IntactHelper helper,
Institution institution)
|
|
BioSourceFactory(IntactHelper helper,
Institution institution,
int cacheSize)
|
Method Summary | |
java.lang.String |
getUpToDateTaxid(java.lang.String taxid)
Gives a valid taxid. |
BioSource |
getValidBioSource(java.lang.String aTaxId)
Create or update a BioSource object from a taxid. |
void |
setLogger(org.apache.log4j.Logger logger)
Set a logger to keep track of the internal processing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BioSourceFactory(IntactHelper helper) throws IntactException
public BioSourceFactory(IntactHelper helper, Institution institution)
public BioSourceFactory(IntactHelper helper, Institution institution, int cacheSize)
Method Detail |
public void setLogger(org.apache.log4j.Logger logger)
logger
- the logger to setpublic BioSource getValidBioSource(java.lang.String aTaxId) throws IntactException
aTaxId
- The tax id to create/update a biosource for
IntactException
public java.lang.String getUpToDateTaxid(java.lang.String taxid) throws IntactException
taxid
- the original taxid
IntactException
- if an error occur when accessing IntAct or an inconstistancy.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |