com.starteam
Class Story.Risk

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

public static final class Story.Risk
extends EnumeratedValue

Risk of the Story

See Also:
Serialized Form

Field Summary
static Story.Risk[] ALL
          All valid priorities for the Story
static Story.Risk HIGH
          Story's Risk is high
static Story.Risk LOW
          Story's Risk is low
static Story.Risk MEDIUM
          Story is of medium Risk
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this Story Risk with the Object o
static Story.Risk fromID(int id)
          Gets the Risk value corresponding to the given ID.
static Story.Risk fromValue(EnumeratedValue value)
          Gets the Risk value corresponding to the given EnumeratedValue.
 int getCode()
          Return the enumerated code for this object.
 int getID()
          The ID of the corresponding EnumeratedValue, as defined in RiskProperty.
 int hashCode()
          Returns the hash code for the Story Risk
 
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

HIGH

public static final Story.Risk HIGH
Story's Risk is high


MEDIUM

public static final Story.Risk MEDIUM
Story is of medium Risk


LOW

public static final Story.Risk LOW
Story's Risk is low


ALL

public static final Story.Risk[] ALL
All valid priorities for the Story

Method Detail

getID

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

Returns:
the ID of this Risk value.
See Also:
Story.Type.RiskProperty.NAME

getCode

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

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

fromID

public static Story.Risk fromID(int id)
Gets the Risk value corresponding to the given ID.

Parameters:
id - A Risk ID.
Returns:
the corresponding Risk value, or null.

fromValue

public static Story.Risk fromValue(EnumeratedValue value)
Gets the Risk value corresponding to the given EnumeratedValue.

Parameters:
value - one of the EnumeratedValues of a RiskProperty.
Returns:
the corresponding Risk value, or null.

equals

public boolean equals(java.lang.Object o)
Compares this Story Risk with the Object o

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

hashCode

public int hashCode()
Returns the hash code for the Story Risk

Overrides:
hashCode in class EnumeratedValue
Returns:
the hash code for the Story Risk


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