com.starteam
Class Project.Status

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

public static final class Project.Status
extends EnumeratedValue

Defines the status of a Project This property is new to 12.0+ servers

See Also:
Serialized Form

Field Summary
static Project.Status ACTIVE
          Defines an active project
static Project.Status[] ALL
          All supported Status types.
static Project.Status PARKED
          Defines a parked (inactive) project
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare a Status instance with this one
static Project.Status fromID(int id)
          returns a Status from an integer ID
static Project.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 hashCode for this instance
 
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

ACTIVE

public static final Project.Status ACTIVE
Defines an active project


PARKED

public static final Project.Status PARKED
Defines a parked (inactive) project


ALL

public static final Project.Status[] ALL
All supported Status types.

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:
Project.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 Project.Status fromValue(EnumeratedValue value)
Gets the Status value corresponding to the given EnumeratedValue.

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

fromID

public static Project.Status fromID(int id)
returns a Status from an integer ID

Parameters:
id - the id of the Status to look for
Returns:
the equivalent Status

equals

public boolean equals(java.lang.Object o)
Compare a Status instance with this one

Overrides:
equals in class EnumeratedValue
Parameters:
o - the Object to compare to
Returns:
true if the two objects are identical

hashCode

public int hashCode()
returns a hashCode for this instance

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


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