Ensembl Model v1.09
© Roslin Institute 2010. GNU General Public License, version3
Ensembl Model
v1.09

uk.ac.roslin.ensembl.config
Class EnsemblDBType

java.lang.Object
  extended by uk.ac.roslin.ensembl.config.EnsemblType
      extended by uk.ac.roslin.ensembl.config.EnsemblDBType
All Implemented Interfaces:
Serializable, Comparable<EnsemblDBType>, DatabaseType, ObjectType

public class EnsemblDBType
extends EnsemblType
implements DatabaseType, Comparable<EnsemblDBType>

Concrete implementation of DatabaseType interface for representing static Ensembl DatabaseTypes. Implements static strings representing each of the current enesmbl database types, and concrete DatabaseTypes for each of these string types.

Author:
paterson
See Also:
Serialized Form

Field Summary
static EnsemblDBType ancestral
          A concrete instantiation of an DatabaseType object representing the ensembl ancestral database sType
static EnsemblDBType cdna
          A concrete instantiation of an DatabaseType object representing the ensembl species cDNA database sType
static EnsemblDBType collection_core
          A concrete instantiation of an DatabaseType object representing the ensemblgenomes collection core database sType
static EnsemblDBType collection_funcgen
          A concrete instantiation of an DatabaseType object representing the ensemblgenomes collection funcgen database sType
static EnsemblDBType collection_variation
          A concrete instantiation of an DatabaseType object representing the ensemblgenomes collection variation database sType
static EnsemblDBType compara
          A concrete instantiation of an DatabaseType object representing the ensembl compara database sType
static EnsemblDBType core
          A concrete instantiation of an DatabaseType object representing the ensembl species core database sType
static EnsemblDBType coreexpressionest
          A concrete instantiation of an DatabaseType object representing the ensembl species coreexpressioncdna database sType
static EnsemblDBType coreexpressiongnf
          A concrete instantiation of an DatabaseType object representing the ensembl species coreexpressiongnf database sType
static EnsemblDBType funcgen
          A concrete instantiation of an DatabaseType object representing the ensembl species funcgen database sType
static EnsemblDBType go
          A concrete instantiation of an DatabaseType object representing the ensembl go database sType
static EnsemblDBType ontology
          A concrete instantiation of an DatabaseType object representing the ensembl ontology database sType
static EnsemblDBType otherfeatures
          A concrete instantiation of an DatabaseType object representing the ensembl species otherfeatures database sType
static EnsemblDBType variation
          A concrete instantiation of an DatabaseType object representing the ensembl species variation database sType
static EnsemblDBType vega
          A concrete instantiation of an DatabaseType object representing the ensembl species vega database sType
static EnsemblDBType website
          A concrete instantiation of an DatabaseType object representing the ensembl website database sType
 
Fields inherited from class uk.ac.roslin.ensembl.config.EnsemblType
label
 
Method Summary
 int compareTo(EnsemblDBType other)
           
 boolean equals(Object obj)
          Overrides the Object method to test for equality
static Collection<EnsemblDBType> getAllDatabaseTypes()
           
static TreeSet<EnsemblDBType> getCollectionDatabaseTypes()
           
static EnsemblDBType getDBTypeForName(String typeName)
          Public Method to return the static EnsemblDBType for a typeName.
static TreeSet<EnsemblDBType> getSingleSpeciesDatabaseTypes()
           
static TreeSet<EnsemblDBType> getSpeciesComparisonDatabaseTypes()
           
 int hashCode()
          Overrides Object method to generate a hashCode
 String toString()
          We often use the constants in a String context, so this routine allows us to do that easily
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

cdna

public static EnsemblDBType cdna
A concrete instantiation of an DatabaseType object representing the ensembl species cDNA database sType


core

public static EnsemblDBType core
A concrete instantiation of an DatabaseType object representing the ensembl species core database sType


coreexpressionest

public static EnsemblDBType coreexpressionest
A concrete instantiation of an DatabaseType object representing the ensembl species coreexpressioncdna database sType


coreexpressiongnf

public static EnsemblDBType coreexpressiongnf
A concrete instantiation of an DatabaseType object representing the ensembl species coreexpressiongnf database sType


funcgen

public static EnsemblDBType funcgen
A concrete instantiation of an DatabaseType object representing the ensembl species funcgen database sType


otherfeatures

public static EnsemblDBType otherfeatures
A concrete instantiation of an DatabaseType object representing the ensembl species otherfeatures database sType


variation

public static EnsemblDBType variation
A concrete instantiation of an DatabaseType object representing the ensembl species variation database sType


vega

public static EnsemblDBType vega
A concrete instantiation of an DatabaseType object representing the ensembl species vega database sType


ancestral

public static EnsemblDBType ancestral
A concrete instantiation of an DatabaseType object representing the ensembl ancestral database sType


compara

public static EnsemblDBType compara
A concrete instantiation of an DatabaseType object representing the ensembl compara database sType


go

public static EnsemblDBType go
A concrete instantiation of an DatabaseType object representing the ensembl go database sType


ontology

public static EnsemblDBType ontology
A concrete instantiation of an DatabaseType object representing the ensembl ontology database sType


website

public static EnsemblDBType website
A concrete instantiation of an DatabaseType object representing the ensembl website database sType


collection_core

public static EnsemblDBType collection_core
A concrete instantiation of an DatabaseType object representing the ensemblgenomes collection core database sType


collection_funcgen

public static EnsemblDBType collection_funcgen
A concrete instantiation of an DatabaseType object representing the ensemblgenomes collection funcgen database sType


collection_variation

public static EnsemblDBType collection_variation
A concrete instantiation of an DatabaseType object representing the ensemblgenomes collection variation database sType

Method Detail

toString

public String toString()
We often use the constants in a String context, so this routine allows us to do that easily

Overrides:
toString in class EnsemblType
Returns:
The String name of this EnsemblDBType object

equals

public boolean equals(Object obj)
Overrides the Object method to test for equality

Overrides:
equals in class Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

hashCode

public int hashCode()
Overrides Object method to generate a hashCode

Overrides:
hashCode in class Object
Returns:
a hash code value for this object.

getDBTypeForName

public static EnsemblDBType getDBTypeForName(String typeName)
Public Method to return the static EnsemblDBType for a typeName. Checks to see if the supplied sType is the name of a valid EnsemblDBType and returns the corresponding EnsemblDBType object if it is, or returns null if not; also returns null if the typeHashList is not initialized.

Parameters:
typeName - String
Returns:
EnsemblDBType for the query typeName

getSpeciesComparisonDatabaseTypes

public static TreeSet<EnsemblDBType> getSpeciesComparisonDatabaseTypes()

getSingleSpeciesDatabaseTypes

public static TreeSet<EnsemblDBType> getSingleSpeciesDatabaseTypes()

getCollectionDatabaseTypes

public static TreeSet<EnsemblDBType> getCollectionDatabaseTypes()

getAllDatabaseTypes

public static Collection<EnsemblDBType> getAllDatabaseTypes()

compareTo

public int compareTo(EnsemblDBType other)
Specified by:
compareTo in interface Comparable<EnsemblDBType>

Ensembl Model
v1.09

Ensembl Model v1.09
© Roslin Institute 2010. GNU General Public License, version3