Package org.ivoa.dm.proposal.prop
Enum Class ProposalKind
- All Implemented Interfaces:
Serializable
,Comparable<ProposalKind>
,Constable
@VoDml(id="proposal:ProposalKind",
role=enumeration)
public enum ProposalKind
extends Enum<ProposalKind>
.
Enumeration ProposalKind :
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final ProposalKind
Return the ProposalKind enum constant corresponding to the given string representation (value)final String
toString()
Return the string representation of this enum constant (value)final String
value()
Return the string representation of this enum constant (value)static ProposalKind
Returns the enum constant of this class with the specified name.static ProposalKind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STANDARD
Value Standard : Normal proposal. -
TOO
Value ToO : target of opportunity. -
SURVEY
Value Survey : Part of a large programme.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
value
Return the string representation of this enum constant (value)- Returns:
- string representation of this enum constant (value)
-
toString
Return the string representation of this enum constant (value)- Overrides:
toString
in classEnum<ProposalKind>
- Returns:
- string representation of this enum constant (value)
- See Also:
-
fromValue
Return the ProposalKind enum constant corresponding to the given string representation (value)- Parameters:
v
- string representation (value)- Returns:
- ProposalKind enum constant
- Throws:
IllegalArgumentException
- if there is no matching enum constant
-