com.starteam
Class TreeItem.MoSCoW

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

public static final class TreeItem.MoSCoW
extends EnumeratedValue

The MoSCoW value for a compliant TreeItem Type

See Also:
Serialized Form

Field Summary
static TreeItem.MoSCoW[] ALL
          All valid stream states for the Story
static TreeItem.MoSCoW COULD_HAVE
          Could Have
static TreeItem.MoSCoW MUST_HAVE
          Must Have
static TreeItem.MoSCoW SHOULD_HAVE
          Should Have
static TreeItem.MoSCoW WONT_HAVE
          Could Have
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this StreamState with the Object o
static TreeItem.MoSCoW fromID(int id)
          Gets the MoSCoW corresponding to the given ID.
static TreeItem.MoSCoW fromValue(EnumeratedValue value)
          Gets the story 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 MoSCoWProperty.
 int hashCode()
          Returns the hash code for the StreamState.
 
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

MUST_HAVE

public static final TreeItem.MoSCoW MUST_HAVE
Must Have


SHOULD_HAVE

public static final TreeItem.MoSCoW SHOULD_HAVE
Should Have


COULD_HAVE

public static final TreeItem.MoSCoW COULD_HAVE
Could Have


WONT_HAVE

public static final TreeItem.MoSCoW WONT_HAVE
Could Have


ALL

public static final TreeItem.MoSCoW[] ALL
All valid stream states for the Story

Method Detail

getID

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

Returns:
the ID of this Value value.
See Also:
TreeItem.Type.MoSCoWProperty.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 TreeItem.MoSCoW fromID(int id)
Gets the MoSCoW corresponding to the given ID.

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

fromValue

public static TreeItem.MoSCoW fromValue(EnumeratedValue value)
Gets the story value corresponding to the given EnumeratedValue.

Parameters:
value - one of the EnumeratedValues of a StreamStateProperty.
Returns:
the corresponding StreamState value, or null.

equals

public boolean equals(java.lang.Object o)
Compares this StreamState 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 StreamState.

Overrides:
hashCode in class EnumeratedValue
Returns:
the hash code for the StreamState


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