com.starteam
Class Story.Status

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

public static final class Story.Status
extends EnumeratedValue

The status of this story

See Also:
Serialized Form

Field Summary
static Story.Status ACCEPTED
          All of its tasks are "accepted"
static Story.Status[] ALL
          All legal status values
static Story.Status COMPLETED
          All of its tasks are "completed"
static Story.Status IN_REVIEW
          All of its tasks are "in review"
static Story.Status NOT_STARTED
          All of its tasks are "not started"
static Story.Status REJECTED
          All of its tasks are "rejected"
static Story.Status STARTED
          At least one of its tasks is "started"
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this object with the Object o
static Story.Status fromID(int id)
          Gets the Status value corresponding to the given ID.
static Story.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 a hashCode for this instance
 
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

NOT_STARTED

public static final Story.Status NOT_STARTED
All of its tasks are "not started"


STARTED

public static final Story.Status STARTED
At least one of its tasks is "started"


COMPLETED

public static final Story.Status COMPLETED
All of its tasks are "completed"


ACCEPTED

public static final Story.Status ACCEPTED
All of its tasks are "accepted"


REJECTED

public static final Story.Status REJECTED
All of its tasks are "rejected"


IN_REVIEW

public static final Story.Status IN_REVIEW
All of its tasks are "in review"


ALL

public static final Story.Status[] ALL
All legal status values

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:
Story.Type.StatusProperty.NAME

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 Story.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 Story.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 object with the Object o

Overrides:
equals in class EnumeratedValue
Parameters:
o - the Object to compare for equality
Returns:
true if the two objects are identical

hashCode

public int hashCode()
returns a hashCode for this instance

Overrides:
hashCode in class EnumeratedValue
Returns:
a hashCode for this instance


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