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

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

public class EnzymeNameQualifierConstant
extends Object

This class represents an enumeration of all supported name qualifiers.

Instances of this class are immutable.

Version:
$Revision: 1.3 $ $Date: 2009/04/16 15:01:04 $
Author:
Michael Darsow

Field Summary
static EnzymeNameQualifierConstant AMBIGUOUS
           
static EnzymeNameQualifierConstant INCORRECT
           
static EnzymeNameQualifierConstant MISLEADING
           
static EnzymeNameQualifierConstant MISPRINT
           
static EnzymeNameQualifierConstant OBSOLETE
           
static EnzymeNameQualifierConstant UNDEF
           
 
Method Summary
 boolean equals(Object o)
          Standard equals method.
 String getLabel()
           
 int hashCode()
          Returns the hash code of this object.
 String toASCII(EnzymeNameQualifierConstant name)
          Deprecated.  
 String toEditableHTML()
          Deprecated. MVC sin
 String toHTML(String name)
          Deprecated. MVC sin
 String toString()
          Returns the name qualifier.
static EnzymeNameQualifierConstant valueOf(String qualifier)
          Returns an EnzymeNameQualifierConstant instance of the given qualifier string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNDEF

public static final EnzymeNameQualifierConstant UNDEF

MISLEADING

public static final EnzymeNameQualifierConstant MISLEADING

AMBIGUOUS

public static final EnzymeNameQualifierConstant AMBIGUOUS

OBSOLETE

public static final EnzymeNameQualifierConstant OBSOLETE

MISPRINT

public static final EnzymeNameQualifierConstant MISPRINT

INCORRECT

public static final EnzymeNameQualifierConstant INCORRECT
Method Detail

valueOf

public static EnzymeNameQualifierConstant valueOf(String qualifier)
Returns an EnzymeNameQualifierConstant instance of the given qualifier string.

Parameters:
qualifier - The qualifier string defining this instance.
Returns:
The EnzymeNameQualifierConstant instance.
Throws:
NullPointerException - if qualifier is null.
IllegalArgumentException - if qualifier 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 name qualifier.

Overrides:
toString in class Object
Returns:
the name qualifier.

toASCII

public String toASCII(EnzymeNameQualifierConstant name)
Deprecated. 

TODO: put somewhere else. Returns the human readable representation of the qualifier in ASCII flat file form.

Parameters:
name - The name is used to construct the URL for the ambiguous name search.
Returns:
the human readable representation.

toHTML

public String toHTML(String name)
Deprecated. MVC sin

TODO: put somewhere else. Returns the human readable representation of the qualifier in HTML.

Parameters:
name - The name is used to construct the URL for the ambiguous name search.
Returns:
the human readable representation.

getLabel

public String getLabel()

toEditableHTML

public String toEditableHTML()
Deprecated. MVC sin

TODO: put somewhere else Returns an editable representation of the qualifier in HTML.

Returns:
the human readable representation.


Copyright © 2013 EMBL-EBI. All Rights Reserved.