com.starteam
Class Story.StreamState

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

public static final class Story.StreamState
extends EnumeratedValue

The Info Stream State of the Story

See Also:
Serialized Form

Field Summary
static Story.StreamState ACCEPTED
          Story's info stream set to Accepted
static Story.StreamState[] ALL
          All valid stream states for the Story
static Story.StreamState NOT_STREAMED
          Story's info stream is not streamed
static Story.StreamState PENDING
          Story info stream set to Pending
static Story.StreamState REJECTED
          Story's info stream set to Rejected
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this StreamState with the Object o
static Story.StreamState fromID(int id)
          Gets the Stream State corresponding to the given ID.
static Story.StreamState 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 StreamStateProperty.
 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

NOT_STREAMED

public static final Story.StreamState NOT_STREAMED
Story's info stream is not streamed


PENDING

public static final Story.StreamState PENDING
Story info stream set to Pending


ACCEPTED

public static final Story.StreamState ACCEPTED
Story's info stream set to Accepted


REJECTED

public static final Story.StreamState REJECTED
Story's info stream set to Rejected


ALL

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

Method Detail

getID

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

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

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

fromValue

public static Story.StreamState 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.