de.smartics.sandbox.agile
Enum Priority

Package class diagram package Priority
java.lang.Object
  extended by java.lang.Enum<Priority>
      extended by de.smartics.sandbox.agile.Priority
All Implemented Interfaces:
Serializable, Comparable< Priority>

public enum Priority
     
     
extends Enum< Priority>

The valid priority values for user stories.

Only required, very important are items that are necessary to be implemented.


Enum Constant Summary
DISPENSABLE
          The story is not necessary to be part of the release, but may be included if resources are available.
NICE_TO_HAVE
          The story is a nice-to-have for the final product, but not relevant for the release.
POLISHING
          The story would add to the user experience of the user, but is not relevant for the release.
REQUIRED
          The story is required for the final product.
VERY_IMPORTANT
          The story is very important for the final product.
 
Method Summary
 Priority fromString(String valueAsString)
          Parses the string representation of a priority instance.
 String getId()
          Returns the identifier of the priority.
 int getPriorityValue()
          Returns the value of the priority.
 List<Priority> getValues()
          Returns the priority values as a list.
 String toString()
          
 String toString(Locale locale)
          Returns the string representation of the instance for the given locale.
static Priority valueOf(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 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

REQUIRED

public static final Priority REQUIRED
The story is required for the final product.

This and VERY_IMPORTANT are items necessary to be implemented.


VERY_IMPORTANT

public static final Priority VERY_IMPORTANT
The story is very important for the final product.

This and REQUIRED are items necessary to be implemented.


NICE_TO_HAVE

public static final Priority NICE_TO_HAVE
The story is a nice-to-have for the final product, but not relevant for the release.


POLISHING

public static final Priority POLISHING
The story would add to the user experience of the user, but is not relevant for the release.


DISPENSABLE

public static final Priority DISPENSABLE
The story is not necessary to be part of the release, but may be included if resources are available. If the product backlog contains only dispensable stores, the development is likely to come to an end.

The priority is available to keep stories in the product backlog for further references.

Method Detail

values

public static 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 (Priority c : 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 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

getId

public String getId()
Returns the identifier of the priority. This value is used for resource lookups.

Returns:
the identifier of the priority.

getPriorityValue

public int getPriorityValue()
Returns the value of the priority.

Returns:
the value of the priority.

getValues

public List<Priority> getValues()
Returns the priority values as a list.

Returns:
the priority values as a list.

fromString

public Priority fromString(String valueAsString)
                    throws IllegalArgumentException
Parses the string representation of a priority instance.

Returns:
the priority instance read from the string.
Throws:
IllegalArgumentException - if valueAsString is not a valid string representation of a priority value.

toString

public String toString(Locale locale)
Returns the string representation of the instance for the given locale.

Parameters:
locale - the locale for which the string representation is requested.
Returns:
the string representation of this instance.

toString

public String toString()

Overrides:
toString in class Enum<Priority>
See Also:
Enum.toString()


Copyright © 2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.