com.starteam
Class Requirement.Status

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

public static final class Requirement.Status
extends EnumeratedValue

Status of the Requirement

See Also:
Serialized Form

Field Summary
static Requirement.Status ACCEPTED
          Requirement has been Accepted
static Requirement.Status[] ALL
          All legal Status values
static Requirement.Status APPROVED
          Requirement is Approved
static Requirement.Status COMPLETE
          Requirement is Complete
static Requirement.Status DEFERRED
          Requirement is Deferred
static Requirement.Status DRAFT
          Requirement is in a Draft form
static Requirement.Status PENDING
          Requirement is Pending
static Requirement.Status READY
          Requirement is Ready
static Requirement.Status REJECTED
          Requirement is Rejected
static Requirement.Status REVIEW
          Requirement is under Review
static Requirement.Status SUBMITTED
          Requirement is submitted
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this EnumeratedValue instance with another one.
static Requirement.Status fromID(int id)
          Gets the Status value corresponding to the given ID.
static Requirement.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 a unique hash for this instance
 boolean isClosedState()
          Returns true if this Enumerated Value represents a Closed State for its Property Note that the closed state is only meaningful if the property is the status property This property was first introduced in the 12.0 server
 
Methods inherited from class com.starteam.EnumeratedValue
addChild, assignParent, copy, disable, enable, findChild, getChildValues, getDebugString, getDepthInHierarchy, getDisplayName, getDisplayNameTranslations, getInternalName, getParentValue, getSortOrder, hasChildValues, 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

SUBMITTED

public static final Requirement.Status SUBMITTED
Requirement is submitted


PENDING

public static final Requirement.Status PENDING
Requirement is Pending


ACCEPTED

public static final Requirement.Status ACCEPTED
Requirement has been Accepted


DRAFT

public static final Requirement.Status DRAFT
Requirement is in a Draft form


DEFERRED

public static final Requirement.Status DEFERRED
Requirement is Deferred


REVIEW

public static final Requirement.Status REVIEW
Requirement is under Review


COMPLETE

public static final Requirement.Status COMPLETE
Requirement is Complete


READY

public static final Requirement.Status READY
Requirement is Ready


REJECTED

public static final Requirement.Status REJECTED
Requirement is Rejected


APPROVED

public static final Requirement.Status APPROVED
Requirement is Approved


ALL

public static final Requirement.Status[] ALL
All legal 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:
Requirement.Type.StatusProperty.NAME

isClosedState

public boolean isClosedState()
Returns true if this Enumerated Value represents a Closed State for its Property Note that the closed state is only meaningful if the property is the status property This property was first introduced in the 12.0 server

Overrides:
isClosedState in class EnumeratedValue
Returns:
true if this Enumerated Value represents the Closed State for its Property

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 Requirement.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 Requirement.Status fromID(int id)
Gets the Status value corresponding to the given ID.

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

equals

public boolean equals(java.lang.Object o)
Description copied from class: EnumeratedValue
Compares this EnumeratedValue instance with another one. Returns true if their properties match, false otherwise

Overrides:
equals in class EnumeratedValue
Parameters:
o - The other EnumeratedValue instance
Returns:
boolean true if the two EnumeratedValues are equals

hashCode

public int hashCode()
Description copied from class: EnumeratedValue
returns a unique hash for this instance

Overrides:
hashCode in class EnumeratedValue
Returns:
a unique hash for this instance


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