com.starteam
Class TaskDependency

java.lang.Object
  extended by com.starteam.TypedResource
      extended by com.starteam.LiveObject
          extended by com.starteam.TrackedObject
              extended by com.starteam.TaskDependency
All Implemented Interfaces:
java.lang.Cloneable

public final class TaskDependency
extends TrackedObject

This is a class representing a dependency between two tasks.


Nested Class Summary
static class TaskDependency.PredecessorType
          Task Predecessor type
static class TaskDependency.Type
          The Type of TaskDependency.
static class TaskDependency.WebCacheTaskDependency
          Item accessor for cached SDK Task Dependencies contained objects are obtained from the artifact cache
 
Nested classes/interfaces inherited from class com.starteam.TrackedObject
TrackedObject.WebCacheTrackedObject
 
Nested classes/interfaces inherited from class com.starteam.LiveObject
LiveObject.WebCacheLiveObject
 
Nested classes/interfaces inherited from class com.starteam.TypedResource
TypedResource.BranchState
 
Method Summary
 TaskDependency copy()
          Creates a copy of this task dependency object.
 boolean equals(java.lang.Object another)
          Returns true if the other object represents the same task dependency
 int getID()
          Returns the integer identifier for this task dependency.
 int getLagTime()
          Returns the lag time for this task dependency.
 int getPredecessorID()
          Returns the ObjectID of the predecessor Task.
 TaskDependency.PredecessorType getPredecessorType()
          Returns the PredecessorType of this task dependency.
 TaskDependency.Type.PropertyCollection getProperties()
          Gets the PropertyCollection for this Task dependency
 int getTaskID()
          Returns the ObjectID of the successor Task.
 boolean isDirty()
          Returns true if this task dependency has been modified but not yet saved.
 void setLagTime(int lagTime)
          Sets the lag time for this task dependency.
 void setPredecessorType(TaskDependency.PredecessorType type)
          Sets the PredecessorType of this task dependency.
 java.lang.Object setValue(Property property, java.lang.Object value)
          Sets the value of the specified property and return the old value.
 
Methods inherited from class com.starteam.TrackedObject
getModifiedBy, getModifiedTime
 
Methods inherited from class com.starteam.LiveObject
getCreatedBy, getCreatedTime, toStarTeamURL
 
Methods inherited from class com.starteam.TypedResource
addToIntegerArray, getBooleanValue, getByteArrayValue, getCachedProperties, getContentValue, getDateTimeValue, getDateValue, getDisplayName, getDoubleValue, getEnumDisplayName, getEnumeratedValues, getIntegerArrayValue, getIntegerValue, getLinkValue, getLongValue, getObjectID, getPossibleValues, getServer, getStringValue, getTimeSpanValue, getType, getValue, hasCachedProperties, hasValue, isNew, removeFromIntegerArray, setBooleanValue, setByteArrayValue, setContentValue, setDateTimeValue, setDateValue, setDoubleValue, setEnumeratedValue, setEnumeratedValues, setIntegerArrayValue, setIntegerValue, setLinkValue, setLongValue, setStringValue, setTimeSpanValue, toString
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getProperties

public TaskDependency.Type.PropertyCollection getProperties()
Gets the PropertyCollection for this Task dependency


getTaskID

public int getTaskID()
Returns the ObjectID of the successor Task.

Returns:
The ObjectID of the successor Task.

getID

public int getID()
Returns the integer identifier for this task dependency.

Overrides:
getID in class TypedResource
Returns:
The integer identifier for this task dependency.

getPredecessorID

public int getPredecessorID()
Returns the ObjectID of the predecessor Task.

Returns:
The ObjectID of the predecessor Task.
See Also:
TaskDependency.Type.PredecessorProperty.NAME

getLagTime

public int getLagTime()
Returns the lag time for this task dependency.

Returns:
the lag time for this task dependency.
See Also:
TaskDependency.Type.LagTimeProperty.NAME

setLagTime

public void setLagTime(int lagTime)
Sets the lag time for this task dependency.

Parameters:
lagTime - the lag time for this dependency.
See Also:
TaskDependency.Type.LagTimeProperty.NAME

getPredecessorType

public TaskDependency.PredecessorType getPredecessorType()
Returns the PredecessorType of this task dependency.

Returns:
the PredecessorType of this task dependency.
See Also:
TaskDependency.Type.PredecessorProperty.NAME

setPredecessorType

public void setPredecessorType(TaskDependency.PredecessorType type)
Sets the PredecessorType of this task dependency.

Parameters:
type - the new PredecessorType for this task dependency.

setValue

public java.lang.Object setValue(Property property,
                                 java.lang.Object value)
                          throws NoSuchPropertyException,
                                 java.lang.ClassCastException
Sets the value of the specified property and return the old value.

Overrides:
setValue in class TypedResource
Parameters:
property - the property to set
value - the new value to set for the specified property
Returns:
the old property value
Throws:
NoSuchPropertyException - if the named property does not exist
java.lang.ClassCastException - if the value is of the wrong type for the specified property

isDirty

public boolean isDirty()
Returns true if this task dependency has been modified but not yet saved. Task dependencies are saved but updating the to corresponding Task object.

Overrides:
isDirty in class TypedResource
Returns:
true if this task dependency has been modified but not yet saved.
See Also:
Task.update()

copy

public TaskDependency copy()
Creates a copy of this task dependency object.

Returns:
A new copy of this task dependency object.
See Also:
TypedResource.isEqualTo(com.starteam.TypedResource)

equals

public boolean equals(java.lang.Object another)
Returns true if the other object represents the same task dependency

Overrides:
equals in class java.lang.Object
Parameters:
another - the object to be compared with
Returns:
true if the other object represents the same task dependency


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