org.crosswire.common.diff
Enum EditType

java.lang.Object
  extended by java.lang.Enum<EditType>
      extended by org.crosswire.common.diff.EditType
All Implemented Interfaces:
Serializable, Comparable<EditType>

public enum EditType
extends Enum<EditType>

An Enumeration of the possible Edits.

Author:
DM Smith
See Also:
for license details.
The copyright to this program is held by it's authors.

Enum Constant Summary
DELETE
          Delete a sequence.
EQUAL
          Equal sequences
INSERT
          Insert a sequence
 
Field Summary
private  String name
          The name of the FeatureType
private  char symbol
          The symbol representing the EditType
 
Method Summary
static EditType fromString(String name)
          Get a CompressorType from a String
static EditType fromSymbol(char symbol)
          Lookup method to convert from a String
 char getSymbol()
           
 String toString()
           
static EditType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EditType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DELETE

public static final EditType DELETE
Delete a sequence.


INSERT

public static final EditType INSERT
Insert a sequence


EQUAL

public static final EditType EQUAL
Equal sequences

Field Detail

name

private String name
The name of the FeatureType


symbol

private char symbol
The symbol representing the EditType

Method Detail

values

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

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

valueOf

public static EditType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getSymbol

public char getSymbol()
Returns:
te symbol for this EditType

fromString

public static EditType fromString(String name)
Get a CompressorType from a String

Parameters:
name - the case insensitive representation of the desired CompressorType
Returns:
the desired compressor or null if not found.

fromSymbol

public static EditType fromSymbol(char symbol)
Lookup method to convert from a String


toString

public String toString()
Overrides:
toString in class Enum<EditType>

Copyright ? 2003-2011