edu.mssm.crover.webapps.dimlib.datamodel
Interface ExternalReferences

All Known Implementing Classes:
ExternalReferencesImpl

public interface ExternalReferences

Keeps references to external databases. If an ims instance describes an object i which is also described swissprot, a call such as i.setReference(Databases.SWISSPROT,"P08100") will record the link.

Author:
Fabien Campagne, luce

Method Summary
 java.lang.String getAccessionCode(java.lang.String database)
          Returns an accession code in the database.
 java.lang.String getAccessionCodes(java.lang.String database)
           
 java.lang.String[] getDatabases()
          Returns the list of databases to which this er links.
 void removeReference(java.lang.String database, java.lang.String accession_code)
          Removes a reference to an external database.
 void setReference(java.lang.String database, java.lang.String accession_code)
          Creates a reference to an entity in an external database.
 

Method Detail

getAccessionCode

public java.lang.String getAccessionCode(java.lang.String database)
Returns an accession code in the database.


getAccessionCodes

public java.lang.String getAccessionCodes(java.lang.String database)

getDatabases

public java.lang.String[] getDatabases()
Returns the list of databases to which this er links.


setReference

public void setReference(java.lang.String database,
                         java.lang.String accession_code)
Creates a reference to an entity in an external database.

Parameters:
database - The name of the external database (e.g. sw).

removeReference

public void removeReference(java.lang.String database,
                            java.lang.String accession_code)
Removes a reference to an external database. This method should only be used in exceptional cases.



Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.