com.starteam
Class Trace.Status

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

public static final class Trace.Status
extends EnumeratedValue

The Status of a Trace

See Also:
Serialized Form

Field Summary
static Trace.Status[] ALL
          All valid status values
static Trace.Status UNDEFINED
          This Trace status is undefined
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this Status with the Object o
static Trace.Status fromID(int id)
          Gets the Status value corresponding to the given ID.
static Trace.Status fromValue(EnumeratedValue value)
          Gets the Status value corresponding to the given EnumeratedValue.
 int getCode()
          Return the enum code for this object.
 int getID()
          The ID of the corresponding EnumeratedValue, as defined in StatusProperty.
 int hashCode()
          Returns the hashcode for the tracetype
 
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

UNDEFINED

public static final Trace.Status UNDEFINED
This Trace status is undefined


ALL

public static final Trace.Status[] ALL
All valid status values

Method Detail

getID

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

Returns:
The ID of this Status value.
See Also:
Trace.Type.StatusProperty.NAME

getCode

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

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

fromValue

public static Trace.Status fromValue(EnumeratedValue value)
Gets the Status value corresponding to the given EnumeratedValue.

Parameters:
value - One of the EnumeratedValues of a StatusProperty.
Returns:
The corresponding Status value, or null.

fromID

public static Trace.Status fromID(int id)
Gets the Status value corresponding to the given ID.

Parameters:
id - The ID of a Status value.
Returns:
The corresponding Status value, or null.

equals

public boolean equals(java.lang.Object o)
Compares this Status 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 hashcode for the tracetype

Overrides:
hashCode in class EnumeratedValue
Returns:
the hashcode for the tracetype


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