com.starteam
Class Story.StoryValue

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

public static final class Story.StoryValue
extends EnumeratedValue

Value of the Story

See Also:
Serialized Form

Field Summary
static Story.StoryValue[] ALL
          All valid priorities for the Story
static Story.StoryValue HIGH
          Story's value is high
static Story.StoryValue LOW
          Story's value is low
static Story.StoryValue MEDIUM
          Story is of medium StoryValue
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this Story value with the Object o
static Story.StoryValue fromID(int id)
          Gets the story value corresponding to the given ID.
static Story.StoryValue 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 StoryValueProperty.
 int hashCode()
          Returns the hash code for the Story value.
 
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.StoryValue HIGH
Story's value is high


MEDIUM

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


LOW

public static final Story.StoryValue LOW
Story's value is low


ALL

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

Method Detail

getID

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

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

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

fromValue

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

Parameters:
value - one of the EnumeratedValues of a StoryValueProperty.
Returns:
the corresponding StoryValue value, or null.

equals

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

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


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