|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ProfessionalStatus> edu.nrao.sss.model.proposal.ProfessionalStatus
public enum ProfessionalStatus
Placeholder for time when we integrate proposal work. An enumeration of professional status types.
Enum Constant Summary | |
---|---|
ALL_OTHERS
Any status not covered by the other types. |
|
GRADUATE
The graduate student status. |
|
UNDERGRADUATE
The undergraduate student status. |
Method Summary | |
---|---|
static ProfessionalStatus |
fromString(String text)
Returns the professional status represented by text . |
static ProfessionalStatus |
getDefault()
Returns a default professional status. |
String |
toString()
|
static ProfessionalStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ProfessionalStatus[] |
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 ProfessionalStatus UNDERGRADUATE
The acceptable names of this element (for use with
getInstanceFromName(String)
) are
UNDERGRADUATE and Undergraduate Student.
public static final ProfessionalStatus GRADUATE
The acceptable names of this element (for use with
getInstanceFromName(String)
) are
GRADUATE and Graduate Student.
public static final ProfessionalStatus ALL_OTHERS
The acceptable names of this element (for use with
getInstanceFromName(String)
) are
ALL_OTHERS and All Others.
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 ProfessionalStatus[] values()
for (ProfessionalStatus c : ProfessionalStatus.values()) System.out.println(c);
public static ProfessionalStatus 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 ProfessionalStatus getDefault()
public String toString()
toString
in class Enum<ProfessionalStatus>
public static ProfessionalStatus fromString(String text)
text
.
For details about the transformation, see
EnumerationUtility.enumFromString(Class, String)
.
text
- a text representation of a professional status.
text
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |