hudson.plugins.dry.util.model
Enum Priority

java.lang.Object
  extended by java.lang.Enum<Priority>
      extended by hudson.plugins.dry.util.model.Priority
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Priority>

public enum Priority
extends java.lang.Enum<Priority>

Defines the priority of an annotation.

Author:
Ulli Hafner

Nested Class Summary
static class Priority.PriorityConverter
          Converts priorities for XStream deserialization.
 
Enum Constant Summary
HIGH
          High priority.
LOW
          Low priority.
NORMAL
          Normal priority.
 
Method Summary
static java.util.Collection<Priority> collectPrioritiesFrom(Priority minimumPriority)
          Gets the priorities starting from the specified priority to HIGH.
static Priority fromString(java.lang.String priority)
          Converts a String priority to an actual enumeration value.
 java.lang.String getLocalizedString()
          Returns a localized description of this priority.
 java.lang.String getLongLocalizedString()
          Returns a long localized description of this priority.
static Priority valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Priority[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HIGH

public static final Priority HIGH
High priority.


NORMAL

public static final Priority NORMAL
Normal priority.


LOW

public static final Priority LOW
Low priority.

Method Detail

values

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

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

valueOf

public static Priority valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

fromString

public static Priority fromString(java.lang.String priority)
Converts a String priority to an actual enumeration value.

Parameters:
priority - priority as a String
Returns:
enumeration value.

getLocalizedString

public java.lang.String getLocalizedString()
Returns a localized description of this priority.

Returns:
localized description of this priority

getLongLocalizedString

public java.lang.String getLongLocalizedString()
Returns a long localized description of this priority.

Returns:
long localized description of this priority

collectPrioritiesFrom

public static java.util.Collection<Priority> collectPrioritiesFrom(Priority minimumPriority)
Gets the priorities starting from the specified priority to HIGH.

Parameters:
minimumPriority - the minimum priority
Returns:
the priorities starting from the specified priority


Copyright © 2009. All Rights Reserved.