uk.ac.ebi.intenz.domain.constants
Class EnzymeSourceConstant

java.lang.Object
  extended by uk.ac.ebi.intenz.domain.constants.EnzymeSourceConstant

public class EnzymeSourceConstant
extends Object

This class represents an enumeration of all database source types.

Instances of this class are immutable.

Version:
$Revision: 1.2 $ $Date: 2008/01/28 12:33:06 $
Author:
Michael Darsow

Field Summary
static EnzymeSourceConstant BRENDA
           
static EnzymeSourceConstant INTENZ
           
static EnzymeSourceConstant IUBMB
           
static EnzymeSourceConstant SIB
           
static EnzymeSourceConstant UNDEF
           
 
Method Summary
 boolean equals(Object o)
          Standard equals method.
 int hashCode()
          Returns the hash code of this object.
 String toDisplayString()
          Deprecated.  
static String toDisplayString(String source)
          Deprecated.  
 String toString()
          Returns the database code.
static EnzymeSourceConstant valueOf(String sourceCode)
          Returns the corresponding instance of the given source code.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNDEF

public static final EnzymeSourceConstant UNDEF

IUBMB

public static final EnzymeSourceConstant IUBMB

SIB

public static final EnzymeSourceConstant SIB

BRENDA

public static final EnzymeSourceConstant BRENDA

INTENZ

public static final EnzymeSourceConstant INTENZ
Method Detail

valueOf

public static EnzymeSourceConstant valueOf(String sourceCode)
Returns the corresponding instance of the given source code.

If the source code does not match any code an exception is thrown.

Parameters:
sourceCode - The source code.
Returns:
the class constant corresponding to the given code.
Throws:
NullPointerException - if sourceCode is null.
IllegalArgumentException - if the code is invalid.

equals

public boolean equals(Object o)
Standard equals method.

Overrides:
equals in class Object
Parameters:
o - Object to be compared to this one.
Returns:
true if the objects are equal.

hashCode

public int hashCode()
Returns the hash code of this object.

Overrides:
hashCode in class Object
Returns:
the hash code of this object.

toString

public String toString()
Returns the database code.

Overrides:
toString in class Object
Returns:
the database code.

toDisplayString

public static String toDisplayString(String source)
Deprecated. 

Parameters:
source -
Returns:

toDisplayString

public String toDisplayString()
Deprecated. 

Returns:


Copyright © 2013 EMBL-EBI. All Rights Reserved.