|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ProposalType> edu.nrao.sss.model.proposal.ProposalType
public enum ProposalType
Placeholder for time when we integrate proposal work. An enumeration of proposal types.
Enum Constant Summary | |
---|---|
EXPLORATORY_TIME
Represents a rapid response proposal for exploratory time. |
|
KNOWN_TRANSIENT_PHENOMENA
Represents a rapid response proposal for a know transient phenomenon. |
|
LARGE_PROPOSAL_LARGE_PROJECT
Represents a proposal for a larger project. |
|
LARGE_PROPOSAL_SURVEY
Represents a proposal for a large survey. |
|
REGULAR_PROPOSAL
Represents a regular proposal. |
|
TARGET_OF_OPPORTUNITY
Represents a rapid response proposal for a target of opportunity. |
|
UNKNOWN
Represents a proposal of unknown type. |
Method Summary | |
---|---|
static ProposalType |
fromString(String text)
Returns the proposal type represented by text . |
static ProposalType |
getDefault()
Returns a default proposal type. |
String |
getEmailLookup()
Returns the web.xml tag used to look up the list of people who should be sent email for each type of proposal. |
boolean |
isImmediateResponse()
Returns true if the proposal needs to be put into the current proposal cycle as opposed to waiting until the next proposal deadline and going through the referring process. |
boolean |
isLargeProposal()
Returns true if the proposal requires a large amount of viewing time and thus must go through a special referring process. |
boolean |
isRapidResponse()
Returns true if the proposal is a rapid response proposal; false, otherwise. |
String |
toString()
|
static ProposalType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ProposalType[] |
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 |
---|
public static final ProposalType REGULAR_PROPOSAL
The acceptable names of this element (for use with
getInstanceFromName(String)
) are
REGULAR_PROPOSAL and Regular Proposal.
public static final ProposalType LARGE_PROPOSAL_SURVEY
The acceptable names of this element (for use with
getInstanceFromName(String)
) are
LARGE_PROPOSAL_SURVEY and Large Proposal - Survey.
public static final ProposalType LARGE_PROPOSAL_LARGE_PROJECT
The acceptable names of this element (for use with
getInstanceFromName(String)
) are
LARGE_PROPOSAL_LARGE_PROJECT and
Large Proposal - Large Project.
public static final ProposalType EXPLORATORY_TIME
The acceptable names of this element (for use with
getInstanceFromName(String)
) are
EXPLORATORY_TIME and Rapid Response - Exploratory Time.
public static final ProposalType TARGET_OF_OPPORTUNITY
The acceptable names of this element (for use with
getInstanceFromName(String)
) are
TARGET_OF_OPPORTUNITY and
Rapid Response - Target of Opportunity.
public static final ProposalType KNOWN_TRANSIENT_PHENOMENA
The acceptable names of this element (for use with
getInstanceFromName(String)
) are
KNOWN_TRANSIENT_PHENOMENA and
Rapid Response - Known Transient Phenomena.
public static final ProposalType UNKNOWN
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 |
---|
public static ProposalType[] values()
for (ProposalType c : ProposalType.values()) System.out.println(c);
public static ProposalType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<ProposalType>
public boolean isLargeProposal()
public boolean isRapidResponse()
public boolean isImmediateResponse()
public String getEmailLookup()
public static ProposalType getDefault()
public static ProposalType fromString(String text)
text
.
For details about the transformation, see
EnumerationUtility.enumFromString(Class, String)
.
text
- a text representation of a proposal type.
text
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |