com.starteam
Class Task.Constraint

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

public static final class Task.Constraint
extends EnumeratedValue

Task Constraint Type

See Also:
Serialized Form

Field Summary
static Task.Constraint[] ALL
          All valid Constraints for the task
static Task.Constraint AS_LATE_AS_POSSIBLE
          Task constrained to finish as late as possible
static Task.Constraint AS_SOON_AS_POSSIBLE
          Task constrained to finish as soon as possible
static Task.Constraint FINISH_NO_EARLIER_THAN
          Task constrained to finish no earlier than
static Task.Constraint FINISH_NO_LATER_THAN
          Task constrained to finish no later than
static Task.Constraint MUST_FINISH_ON
          Task constrained must finish on
static Task.Constraint MUST_START_ON
          Task must start on.
static Task.Constraint START_NO_EARLIER_THAN
          Task should start no ealier than
static Task.Constraint START_NO_LATER_THAN
          Task should start no later than
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this Constraint with the Object o
static Task.Constraint fromID(int id)
          Gets the Constraint value corresponding to the given ID.
static Task.Constraint fromValue(EnumeratedValue value)
          Gets the Constraint 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 ConstraintProperty.
 int hashCode()
          Returns the hashcode for the constraint
 
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

AS_LATE_AS_POSSIBLE

public static final Task.Constraint AS_LATE_AS_POSSIBLE
Task constrained to finish as late as possible


AS_SOON_AS_POSSIBLE

public static final Task.Constraint AS_SOON_AS_POSSIBLE
Task constrained to finish as soon as possible


FINISH_NO_EARLIER_THAN

public static final Task.Constraint FINISH_NO_EARLIER_THAN
Task constrained to finish no earlier than


FINISH_NO_LATER_THAN

public static final Task.Constraint FINISH_NO_LATER_THAN
Task constrained to finish no later than


MUST_FINISH_ON

public static final Task.Constraint MUST_FINISH_ON
Task constrained must finish on


MUST_START_ON

public static final Task.Constraint MUST_START_ON
Task must start on.


START_NO_EARLIER_THAN

public static final Task.Constraint START_NO_EARLIER_THAN
Task should start no ealier than


START_NO_LATER_THAN

public static final Task.Constraint START_NO_LATER_THAN
Task should start no later than


ALL

public static final Task.Constraint[] ALL
All valid Constraints for the task

Method Detail

getID

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

Returns:
The ID of this Constraint value.
See Also:
Task.Type.ConstraintProperty.NAME

getCode

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

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

fromID

public static Task.Constraint fromID(int id)
Gets the Constraint value corresponding to the given ID.

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

fromValue

public static Task.Constraint fromValue(EnumeratedValue value)
Gets the Constraint value corresponding to the given EnumeratedValue.

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

equals

public boolean equals(java.lang.Object o)
Compares this Constraint with the Object o

Overrides:
equals in class EnumeratedValue
Parameters:
o - the Object to compare too for equality
Returns:
true if this instance and Object o are identical

hashCode

public int hashCode()
Returns the hashcode for the constraint

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


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