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

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

public class EnzymeNameTypeConstant
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 EnzymeNameTypeConstant COMMON_NAME
           
static EnzymeNameTypeConstant OTHER_NAME
           
static EnzymeNameTypeConstant SYSTEMATIC_NAME
           
static EnzymeNameTypeConstant UNDEF
           
 
Method Summary
 boolean equals(Object o)
          Standard equals method.
 int hashCode()
          Returns the hash code of this object.
 String toString()
          Returns the database code.
static EnzymeNameTypeConstant valueOf(String type)
          Returns an EnzymeNameTypeConstant instance of the given type string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNDEF

public static final EnzymeNameTypeConstant UNDEF

COMMON_NAME

public static final EnzymeNameTypeConstant COMMON_NAME

SYSTEMATIC_NAME

public static final EnzymeNameTypeConstant SYSTEMATIC_NAME

OTHER_NAME

public static final EnzymeNameTypeConstant OTHER_NAME
Method Detail

valueOf

public static EnzymeNameTypeConstant valueOf(String type)
Returns an EnzymeNameTypeConstant instance of the given type string.

Parameters:
type - The type string defining this instance.
Returns:
The EnzymeNameTypeConstant instance.
Throws:
NullPointerException - if type is null.
IllegalArgumentException - if type is unknown.

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.


Copyright © 2013 EMBL-EBI. All Rights Reserved.