edu.nrao.sss.util
Enum AlterationStatus

java.lang.Object
  extended by java.lang.Enum<AlterationStatus>
      extended by edu.nrao.sss.util.AlterationStatus
All Implemented Interfaces:
Serializable, Comparable<AlterationStatus>

public enum AlterationStatus
extends Enum<AlterationStatus>

The manner in which an object came to be in its current state.

CVS Info:

$Revision: 161 $
$Date: 2006-12-15 11:48:34 -0700 (Fri, 15 Dec 2006) $
$Author: btruitt $

Since:
2006-08-02
Author:
David M. Harland

Enum Constant Summary
AUTO_GENERATED_AND_UNALTERED
           
AUTO_GENERATED_THEN_ALTERED
           
MANUALLY_CREATED
           
UNKNOWN
           
 
Method Summary
static AlterationStatus fromString(String text)
          Returns the alteration status represented by text.
static AlterationStatus getDefault()
          Returns a default alteration status.
 String toString()
          Returns a text representation of this enumeration constant.
static AlterationStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AlterationStatus[] 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

AUTO_GENERATED_AND_UNALTERED

public static final AlterationStatus AUTO_GENERATED_AND_UNALTERED

AUTO_GENERATED_THEN_ALTERED

public static final AlterationStatus AUTO_GENERATED_THEN_ALTERED

MANUALLY_CREATED

public static final AlterationStatus MANUALLY_CREATED

UNKNOWN

public static final AlterationStatus UNKNOWN
Method Detail

values

public static AlterationStatus[] 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 (AlterationStatus c : AlterationStatus.values())
    System.out.println(c);

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

valueOf

public static AlterationStatus 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

getDefault

public static AlterationStatus getDefault()
Returns a default alteration status.

Returns:
a default alteration status.

toString

public String toString()
Returns a text representation of this enumeration constant.

Overrides:
toString in class Enum<AlterationStatus>
Returns:
a text representation of this enumeration constant.

fromString

public static AlterationStatus fromString(String text)
Returns the alteration status represented by text.

For details about the transformation, see EnumerationUtility.enumFromString(Class, String).

Parameters:
text - a text representation of an alteration status.
Returns:
the alteration status represented by text.


Copyright © 2009. All Rights Reserved.