|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<SupportType> edu.nrao.sss.model.proposal.SupportType
public enum SupportType
Placeholder for time when we integrate proposal work. An enumeration of the levels of support that an observer might need from NRAO.
Enum Constant Summary | |
---|---|
CONSULTATION
Signifies that an observer would like to consult with NRAO about their project. |
|
FRIEND
Signifies that an observer would like to have NRAO heavily involved with their project. |
|
NONE
Signifies that an observer needs no help from NRAO with their project. |
|
UNKNOWN
Signifies that the observer's need for support is unknown. |
Method Summary | |
---|---|
static SupportType |
fromString(String text)
Returns the support type represented by text . |
static SupportType |
getDefault()
Returns a default support type. |
String |
toString()
Returns a text representation of this enumeration constant. |
static SupportType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SupportType[] |
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 SupportType NONE
The name of this element (for use with
getInstanceFromName(String)
) is NONE.
public static final SupportType CONSULTATION
The name of this element (for use with
getInstanceFromName(String)
) is CONSULTATION.
public static final SupportType FRIEND
The name of this element (for use with
getInstanceFromName(String)
) is FRIEND.
public static final SupportType 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 SupportType[] values()
for (SupportType c : SupportType.values()) System.out.println(c);
public static SupportType 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 static SupportType getDefault()
public String toString()
toString
in class Enum<SupportType>
public static SupportType fromString(String text)
text
.
For details about the transformation, see
EnumerationUtility.enumFromString(Class, String)
.
text
- a text representation of a support type.
text
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |