com.starteam
Class ChangePackage.State

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

public static final class ChangePackage.State
extends EnumeratedValue

The current state of the change package.

See Also:
ChangePackage.Type.StateProperty, ChangePackage.Type.PropertyCollection.STATE, Serialized Form

Field Summary
static ChangePackage.State ACTIVE
          An active ChangePackage.
static ChangePackage.State[] ALL
           
static ChangePackage.State COMMITTED
          A committed ChangePackage.
static ChangePackage.State COMPARED
          A compared ChangePackage.
static ChangePackage.State NEW
          A new ChangePackage.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this EnumeratedValue instance with another one.
static ChangePackage.State fromID(int id)
          Gets the State value corresponding to the given ID.
static ChangePackage.State fromValue(EnumeratedValue value)
          Gets the State 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 StateProperty.
 int hashCode()
          returns a unique hash 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

NEW

public static final ChangePackage.State NEW
A new ChangePackage.


COMPARED

public static final ChangePackage.State COMPARED
A compared ChangePackage.


ACTIVE

public static final ChangePackage.State ACTIVE
An active ChangePackage.


COMMITTED

public static final ChangePackage.State COMMITTED
A committed ChangePackage.


ALL

public static final ChangePackage.State[] ALL
Method Detail

getID

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

Returns:
The ID of this State value.

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 ChangePackage.State fromValue(EnumeratedValue value)
Gets the State value corresponding to the given EnumeratedValue.

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

fromID

public static ChangePackage.State fromID(int id)
Gets the State value corresponding to the given ID.

Parameters:
id - A State ID.
Returns:
The corresponding State 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.