com.starteam
Class Task.Status

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

public static final class Task.Status
extends EnumeratedValue

Status of the Task

See Also:
Serialized Form

Field Summary
static Task.Status[] ALL
          All possible Task statuses
static Task.Status CLOSED
          Task is closed
static Task.Status FINISHED
          Task is finished
static Task.Status HOLD
          Task is on Hold
static Task.Status IN_PROGRESS
          Task is in Progress
static Task.Status PENDING
          Task is pending
static Task.Status READY_TO_START
          Task is Ready to Start
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this Task Status with the Object o
static Task.Status fromID(int id)
          Gets the Status value corresponding to the given ID.
static Task.Status fromValue(EnumeratedValue value)
          Gets the Status 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 StatusProperty.
 int hashCode()
          Returns hashcode of the task status
 boolean isClosedState()
          Returns true if this Enumerated Value represents a Closed State for its Property Note that the closed state is only meaningful if the property is the status property This property was first introduced in the 12.0 server
 
Methods inherited from class com.starteam.EnumeratedValue
addChild, assignParent, copy, disable, enable, findChild, getChildValues, getDebugString, getDepthInHierarchy, getDisplayName, getDisplayNameTranslations, getInternalName, getParentValue, getSortOrder, hasChildValues, 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

PENDING

public static final Task.Status PENDING
Task is pending


READY_TO_START

public static final Task.Status READY_TO_START
Task is Ready to Start


IN_PROGRESS

public static final Task.Status IN_PROGRESS
Task is in Progress


FINISHED

public static final Task.Status FINISHED
Task is finished


CLOSED

public static final Task.Status CLOSED
Task is closed


HOLD

public static final Task.Status HOLD
Task is on Hold


ALL

public static final Task.Status[] ALL
All possible Task statuses

Method Detail

getID

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

Returns:
The ID of this Status value.
See Also:
Task.Type.StatusProperty.NAME

isClosedState

public boolean isClosedState()
Returns true if this Enumerated Value represents a Closed State for its Property Note that the closed state is only meaningful if the property is the status property This property was first introduced in the 12.0 server

Overrides:
isClosedState in class EnumeratedValue
Returns:
true if this Enumerated Value represents the Closed State for its Property

getCode

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

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

fromValue

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

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

fromID

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

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

equals

public boolean equals(java.lang.Object o)
Compares this Task Status 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 hashcode of the task status

Overrides:
hashCode in class EnumeratedValue
Returns:
hashcode of the task status


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