com.starteam
Class Task.Priority

java.lang.Object
  extended by com.starteam.EnumeratedValue
      extended by com.starteam.Task.Priority
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Task

public static final class Task.Priority
extends EnumeratedValue

Priority of the Task

See Also:
Serialized Form

Field Summary
static Task.Priority[] ALL
          All valid priorities for the task
static Task.Priority DO_NOT_LEVEL
          Task's priority should be ignored
static Task.Priority HIGH
          Task's priority is high
static Task.Priority HIGHER
          Task's priority is higher
static Task.Priority HIGHEST
          Task is of the highest priority
static Task.Priority LOW
          Task's priority is low
static Task.Priority LOWER
          Task's priority is lower
static Task.Priority LOWEST
          Task's priority is the lowest
static Task.Priority MEDIUM
          Task is of medium priority
static Task.Priority VERY_HIGH
          Task is of very high Priority
static Task.Priority VERY_LOW
          Task's priority is very low
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this Task Priority with the Object o
static Task.Priority fromID(int id)
          Gets the Priority value corresponding to the given ID.
static Task.Priority fromValue(EnumeratedValue value)
          Gets the Priority value corresponding to the given EnumeratedValue.
 int getCode()
          Return the enum code for this object.
 int getID()
          The ID of the corresponding EnumeratedValue, as defined in PriorityProperty.
 int hashCode()
          Returns the hashcode for the task priority
 
Methods inherited from class com.starteam.EnumeratedValue
addChild, assignParent, copy, disable, enable, findChild, getChildValues, getDebugString, getDepthInHierarchy, getDisplayName, getDisplayNameTranslations, getInternalName, getParentValue, getSortOrder, hasChildValues, isClosedState, isDisabled, isEnabled, isEqualTo, isLeafValue, isRootValue, isSelectable, setAfter, setChildValues, setClosedState, setDisplayName, setDisplayNameTranslations, setEnabled, setInternalName, setSelectable, setSortOrder, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DO_NOT_LEVEL

public static final Task.Priority DO_NOT_LEVEL
Task's priority should be ignored


HIGHEST

public static final Task.Priority HIGHEST
Task is of the highest priority


VERY_HIGH

public static final Task.Priority VERY_HIGH
Task is of very high Priority


HIGHER

public static final Task.Priority HIGHER
Task's priority is higher


HIGH

public static final Task.Priority HIGH
Task's priority is high


MEDIUM

public static final Task.Priority MEDIUM
Task is of medium priority


LOW

public static final Task.Priority LOW
Task's priority is low


LOWER

public static final Task.Priority LOWER
Task's priority is lower


VERY_LOW

public static final Task.Priority VERY_LOW
Task's priority is very low


LOWEST

public static final Task.Priority LOWEST
Task's priority is the lowest


ALL

public static final Task.Priority[] ALL
All valid priorities for the task

Method Detail

getID

public int getID()
The ID of the corresponding EnumeratedValue, as defined in PriorityProperty.

Returns:
The ID of this Priority value.
See Also:
Task.Type.PriorityProperty.NAME

getCode

public int getCode()
Return the enum code for this object.

Overrides:
getCode in class EnumeratedValue
Returns:
the enum code for this object.

fromID

public static Task.Priority fromID(int id)
Gets the Priority value corresponding to the given ID.

Parameters:
id - A Priority ID.
Returns:
The corresponding Priority value, or null.

fromValue

public static Task.Priority fromValue(EnumeratedValue value)
Gets the Priority value corresponding to the given EnumeratedValue.

Parameters:
value - One of the EnumeratedValues of a PriorityProperty.
Returns:
The corresponding Priority value, or null.

equals

public boolean equals(java.lang.Object o)
Compares this Task Priority with the Object o

Overrides:
equals in class EnumeratedValue
Parameters:
o - the Object to compare too for equality
Returns:
true if this instance and Object o are identical

hashCode

public int hashCode()
Returns the hashcode for the task priority

Overrides:
hashCode in class EnumeratedValue
Returns:
the hashcode for the task priority


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.