uk.ac.man.bioinf.sequence.types
Class AbstractElement

java.lang.Object
  |
  +--uk.ac.man.bioinf.util.AbstractEnumeration
        |
        +--uk.ac.man.bioinf.sequence.types.AbstractElement
Direct Known Subclasses:
AminoAcid, DNANucleotide, RNANucleotide

public abstract class AbstractElement
extends AbstractEnumeration

AbstractElement.java Created: Mon Feb 28 16:10:45 2000

Version:
$Id: AbstractElement.java,v 1.4 2001/04/11 17:04:43 lord Exp $
Author:
Phillip Lord

Nested Class Summary
 
Nested classes inherited from class uk.ac.man.bioinf.util.AbstractEnumeration
AbstractEnumeration.ElementIterator
 
Field Summary
 
Fields inherited from class uk.ac.man.bioinf.util.AbstractEnumeration
ord
 
Constructor Summary
AbstractElement(String toString, char toChar)
           
 
Method Summary
static Element[] getAllSequenceElements(Class cla)
          Returns all the elements.
 char toChar()
           
 
Methods inherited from class uk.ac.man.bioinf.util.AbstractEnumeration
getAllElements, getSize, iterator, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractElement

public AbstractElement(String toString,
                       char toChar)
Method Detail

toChar

public char toChar()

getAllSequenceElements

public static Element[] getAllSequenceElements(Class cla)
Returns all the elements. This method basically switches the type of the

Parameters:
cla - the class of the elements
Returns:
the Elements of the class