com.starteam
Class Requirement.StreamState

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

public static final class Requirement.StreamState
extends EnumeratedValue

The Info Stream State of the Requirement

See Also:
Serialized Form

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

PENDING

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


ACCEPTED

public static final Requirement.StreamState ACCEPTED
Requirement info stream set to Accepted


REJECTED

public static final Requirement.StreamState REJECTED
Requirement info stream set to Rejected


ALL

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

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:
Requirement.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 Requirement.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 Requirement.StreamState fromValue(EnumeratedValue value)
Gets the stream state 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.