|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ScientificType> edu.nrao.sss.model.proposal.ScientificType
public enum ScientificType
An enumeration of scientific exploration types.
Enum Constant Summary | |
---|---|
EXTRAGALACTIC
Represents an extragalactic scientific exploration. |
|
GALACTIC
Represents a scientific exploration of something in our galaxy. |
|
OTHER
Represents a scientific exploration of a type other than those listed herein. |
|
SOLAR_SYSTEM
Represents a scientific exploration of something in the solar system. |
|
STELLAR
Represents a scientific exploration of a stellar object. |
|
UNKNOWN
Represents a scientific exploration of unknown type. |
Method Summary | |
---|---|
static ScientificType |
fromString(String text)
Returns the scientific type represented by text . |
static ScientificType |
getDefault()
Returns a default scientific type. |
String |
toString()
Returns a text representation of this enumeration constant. |
static ScientificType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ScientificType[] |
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 ScientificType EXTRAGALACTIC
The name of this element (for use with
getInstanceFromName(String)
) is
EXTRAGALACTIC.
public static final ScientificType SOLAR_SYSTEM
The acceptable names of this element (for use with
getInstanceFromName(String)
) are
SOLAR_SYSTEM and Solar System.
public static final ScientificType GALACTIC
The name of this element (for use with
getInstanceFromName(String)
) is
GALACTIC.
public static final ScientificType STELLAR
The name of this element (for use with
getInstanceFromName(String)
) is
STELLAR.
public static final ScientificType OTHER
The name of this element (for use with
getInstanceFromName(String)
) is
OTHER.
public static final ScientificType 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 ScientificType[] values()
for (ScientificType c : ScientificType.values()) System.out.println(c);
public static ScientificType 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 ScientificType getDefault()
public String toString()
toString
in class Enum<ScientificType>
public static ScientificType fromString(String text)
text
.
For details about the transformation, see
EnumerationUtility.enumFromString(Class, String)
.
text
- a text representation of a scientific type.
text
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |