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:
luce

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

Method Detail

getAccessionCode

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


getAccessionCodes

String getAccessionCodes(String database)

getDatabases

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


setReference

void setReference(String database,
                  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

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



Copyright © 2004 Weill Cornell Medical College. All Rights Reserved.