sbc.orthoxml
Class Database

java.lang.Object
  extended by sbc.orthoxml.Database

public class Database
extends java.lang.Object

The Database class represent the source database for genes, proteins or transcripts.

Author:
Thomas Schmitt

Constructor Summary
Database(java.lang.String name, java.lang.String version)
          Creates a database object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getGeneLink()
          Returns the link to the gene in the database how this link is create is source specific.
 java.lang.String getName()
          The name of the database
 java.lang.String getProtLink()
          Returns the link to the protein in the database how this link is create is source specific.
 java.lang.String getTranscriptLink()
          Returns the link to the transcript in the database how this link is create is source specific.
 java.lang.String getVersion()
          Returns the version the database;
 int hashCode()
           
 void setGeneLink(java.lang.String geneLink)
          Allows to link to the gene in the database how this link is create is source specific.
 void setProtLink(java.lang.String protLink)
          Allows to link to the protein in the database how this link is create is source specific.
 void setTranscriptLink(java.lang.String transcriptLink)
          Allows to link to the transcript in the database how this link is create is source specific.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Database

public Database(java.lang.String name,
                java.lang.String version)
Creates a database object.

Parameters:
name - The database name i.e. Ensembl
version - The database version i.e. '53' or 'March 2011'
Method Detail

getName

public java.lang.String getName()
The name of the database

Returns:
the name of the database

getProtLink

public java.lang.String getProtLink()
Returns the link to the protein in the database how this link is create is source specific.

Returns:
the protein link

setProtLink

public void setProtLink(java.lang.String protLink)
Allows to link to the protein in the database how this link is create is source specific.

Parameters:
protLink - the protein link to set

getGeneLink

public java.lang.String getGeneLink()
Returns the link to the gene in the database how this link is create is source specific.

Returns:
the gene link

setGeneLink

public void setGeneLink(java.lang.String geneLink)
Allows to link to the gene in the database how this link is create is source specific.

Parameters:
geneLink - the gene link to set

getTranscriptLink

public java.lang.String getTranscriptLink()
Returns the link to the transcript in the database how this link is create is source specific.

Returns:
the transcriptLink

setTranscriptLink

public void setTranscriptLink(java.lang.String transcriptLink)
Allows to link to the transcript in the database how this link is create is source specific.

Parameters:
transcriptLink - the transcriptLink to set

getVersion

public java.lang.String getVersion()
Returns the version the database;

Returns:
the database version

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object