BioLegato 0.5.7

org.biolegato.core.data.sequence
Enum Sequence.Type

java.lang.Object
  extended by java.lang.Enum<Sequence.Type>
      extended by org.biolegato.core.data.sequence.Sequence.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Sequence.Type>
Enclosing class:
Sequence

public static enum Sequence.Type
extends java.lang.Enum<Sequence.Type>

This enum is used for typing/storing sequence types. This method of storage ensures proper type casting. Feel free to add more types as necessary.


Enum Constant Summary
DNA
          Sequence type DNA
MASK
          Sequence type colour mask
PROTEIN
          Sequence type protein
RNA
          Sequence type RNA
TEXT
          Sequence type is text (represented as '"')
 
Method Summary
static Sequence.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Sequence.Type[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DNA

public static final Sequence.Type DNA
Sequence type DNA


RNA

public static final Sequence.Type RNA
Sequence type RNA


PROTEIN

public static final Sequence.Type PROTEIN
Sequence type protein


MASK

public static final Sequence.Type MASK
Sequence type colour mask


TEXT

public static final Sequence.Type TEXT
Sequence type is text (represented as '"')

Method Detail

values

public static final Sequence.Type[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Sequence.Type c : Sequence.Type.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Sequence.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

BioLegato 0.5.7

Copyright © 2008-2009 University of Manitoba.