uk.ac.ebi.xchars.domain
Class EncodingType

java.lang.Object
  extended by uk.ac.ebi.xchars.domain.EncodingType
All Implemented Interfaces:
java.lang.Cloneable

public class EncodingType
extends java.lang.Object
implements java.lang.Cloneable

This class stores all currently supported encoding types.

Version:
1.3 17/11/2003
Author:
Michael Darsow

Field Summary
static EncodingType CHEBI_CODE
          CHEBI ASCII code encoding type.
static EncodingType COMPOSED
          COMPOSED code encoding type.
static EncodingType EXTENDED_HTML
          Encoded HTML encoding type.
static EncodingType GIF
          GIF type.
static EncodingType HTML
          HTML encoding type.
static EncodingType HTML_CODE
          HTML code encoding type.
static EncodingType JPG
          JPEG type.
private  java.lang.String myName
          The value of the type.
static EncodingType SWISSPROT_CODE
          SWISSPROT code encoding type.
static EncodingType UNICODE
          Unicode encoding type.
 
Constructor Summary
private EncodingType(java.lang.String name)
          Sets the value of the EncodingType.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.String toString()
          Returns the type.
static EncodingType valueOf(java.lang.String encodingTypeString)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNICODE

public static final EncodingType UNICODE
Unicode encoding type.


HTML_CODE

public static final EncodingType HTML_CODE
HTML code encoding type.


HTML

public static final EncodingType HTML
HTML encoding type.


EXTENDED_HTML

public static final EncodingType EXTENDED_HTML
Encoded HTML encoding type.


GIF

public static final EncodingType GIF
GIF type.


JPG

public static final EncodingType JPG
JPEG type.


SWISSPROT_CODE

public static final EncodingType SWISSPROT_CODE
SWISSPROT code encoding type.


CHEBI_CODE

public static final EncodingType CHEBI_CODE
CHEBI ASCII code encoding type.


COMPOSED

public static final EncodingType COMPOSED
COMPOSED code encoding type.


myName

private final java.lang.String myName
The value of the type.

Constructor Detail

EncodingType

private EncodingType(java.lang.String name)
Sets the value of the EncodingType.

Parameters:
name - The value.
Method Detail

valueOf

public static EncodingType valueOf(java.lang.String encodingTypeString)

toString

public java.lang.String toString()
Returns the type.

Overrides:
toString in class java.lang.Object
Returns:
the type.

equals

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

hashCode

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


Copyright © 2002-2009 EBI. All Rights Reserved.