edu.nrao.sss.model.proposal
Enum ProposalStatus

java.lang.Object
  extended by java.lang.Enum<ProposalStatus>
      extended by edu.nrao.sss.model.proposal.ProposalStatus
All Implemented Interfaces:
Serializable, Comparable<ProposalStatus>

public enum ProposalStatus
extends Enum<ProposalStatus>

Placeholder for time when we integrate proposal work. An enumeration of proposal statuses.

Since:
2006-03-02
Version:
1.1

Enum Constant Summary
ACCEPTED
          Signifies that the given Proposal has been accepted.
DRAFT
          Signifies that the given Proposal is a draft.
EVALUATE
          Signifies that the given Proposal is currently being evaluated.
FINISHED
          Signifies that the given Proposal has been completed.
REFEREE
          Signifies that the given Proposal is in the hands of a referee.
REJECTED
          Signifies that the given Proposal has been rejected.
RELEASE
          Signifies that the given Proposal ???
SCHEDULE
          Signifies that the given Proposal is scheduled for execution.
SUBMITTED
          Signifies that the given Proposal has been submitted for approval.
UNKNOWN
          An unknown proposal status.
WITHDRAWN
          Signifies that the given Proposal has been withdrawn from consideration.
 
Method Summary
static ProposalStatus fromString(String text)
          Returns the proposal status represented by text.
static ProposalStatus getDefault()
          Returns a default proposal status.
 String toString()
          Returns a text representation of this enumeration constant.
static ProposalStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ProposalStatus[] 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

DRAFT

public static final ProposalStatus DRAFT
Signifies that the given Proposal is a draft.


SUBMITTED

public static final ProposalStatus SUBMITTED
Signifies that the given Proposal has been submitted for approval.


WITHDRAWN

public static final ProposalStatus WITHDRAWN
Signifies that the given Proposal has been withdrawn from consideration.


REFEREE

public static final ProposalStatus REFEREE
Signifies that the given Proposal is in the hands of a referee.


EVALUATE

public static final ProposalStatus EVALUATE
Signifies that the given Proposal is currently being evaluated.


ACCEPTED

public static final ProposalStatus ACCEPTED
Signifies that the given Proposal has been accepted.


REJECTED

public static final ProposalStatus REJECTED
Signifies that the given Proposal has been rejected.


SCHEDULE

public static final ProposalStatus SCHEDULE
Signifies that the given Proposal is scheduled for execution.


FINISHED

public static final ProposalStatus FINISHED
Signifies that the given Proposal has been completed.


RELEASE

public static final ProposalStatus RELEASE
Signifies that the given Proposal ???


UNKNOWN

public static final ProposalStatus UNKNOWN
An unknown proposal status. This element is used to implement the Null Object Pattern. In situations where a method might be tempted to return null, this element is returned instead.

Method Detail

values

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

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

valueOf

public static ProposalStatus 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 ProposalStatus getDefault()
Returns a default proposal status.

Returns:
a default proposal status.

toString

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

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

fromString

public static ProposalStatus fromString(String text)
Returns the proposal status represented by text.

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

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


Copyright © 2009. All Rights Reserved.