HiRISE

HiRISE.HiPlan.HiWeb
Enum Suggestion.Priority

java.lang.Object
  extended by java.lang.Enum<Suggestion.Priority>
      extended by HiRISE.HiPlan.HiWeb.Suggestion.Priority
All Implemented Interfaces:
Serializable, Comparable<Suggestion.Priority>
Enclosing class:
Suggestion

public static enum Suggestion.Priority
extends Enum<Suggestion.Priority>

An enumeration of the suggestion priority values.

Version:
1.9
Author:
Guy McArthur, Christian Schaller - UA/PIRL

Enum Constant Summary
PRIORITY_00
           
PRIORITY_01
           
PRIORITY_02
           
PRIORITY_03
           
PRIORITY_04
           
PRIORITY_05
           
PRIORITY_06
           
PRIORITY_07
           
PRIORITY_08
           
PRIORITY_09
           
PRIORITY_10
           
PRIORITY_11
           
PRIORITY_12
           
PRIORITY_13
           
PRIORITY_14
           
PRIORITY_15
           
 
Method Summary
 int getValue()
          Gets the numeric value of this priority.
 String toString()
          Returns a string representation of the priority.
static String transformText(String text)
          Returns a transformed string representation of a human-language string.
static Suggestion.Priority valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Suggestion.Priority[] 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

PRIORITY_00

public static final Suggestion.Priority PRIORITY_00

PRIORITY_01

public static final Suggestion.Priority PRIORITY_01

PRIORITY_02

public static final Suggestion.Priority PRIORITY_02

PRIORITY_03

public static final Suggestion.Priority PRIORITY_03

PRIORITY_04

public static final Suggestion.Priority PRIORITY_04

PRIORITY_05

public static final Suggestion.Priority PRIORITY_05

PRIORITY_06

public static final Suggestion.Priority PRIORITY_06

PRIORITY_07

public static final Suggestion.Priority PRIORITY_07

PRIORITY_08

public static final Suggestion.Priority PRIORITY_08

PRIORITY_09

public static final Suggestion.Priority PRIORITY_09

PRIORITY_10

public static final Suggestion.Priority PRIORITY_10

PRIORITY_11

public static final Suggestion.Priority PRIORITY_11

PRIORITY_12

public static final Suggestion.Priority PRIORITY_12

PRIORITY_13

public static final Suggestion.Priority PRIORITY_13

PRIORITY_14

public static final Suggestion.Priority PRIORITY_14

PRIORITY_15

public static final Suggestion.Priority PRIORITY_15
Method Detail

values

public static Suggestion.Priority[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Suggestion.Priority c : Suggestion.Priority.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Suggestion.Priority valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null

getValue

public int getValue()
Gets the numeric value of this priority.

Returns:
the numeric value.

toString

public String toString()
Returns a string representation of the priority. This representation is the value of the priority enumeration as stored in HiCat. It is useful for menus and the reporting of information back to the operator.

Overrides:
toString in class Enum<Suggestion.Priority>
Returns:
the string representation.

transformText

public static String transformText(String text)
Returns a transformed string representation of a human-language string. The transformed text is rendered as the text "PRIORITY_" followed by the leading integer number of the input text, if any, zero-padded. All other input text is discarded.

This transformation is that used in the derivation of the enumeration's identifiers from their original human-languge representations. This method can be used on menu items that were derived from the enumeration's toString() method to get the enumeration value via the valueOf(java.lang.String) method.

Note, however, that there is no guarantee that the results of this transformation will be a valid enumeration identifier.

Parameters:
text - the input text.
Returns:
the transformed text.

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona