Modifier and Type | Method and Description |
---|---|
Object |
deepClone()
Creates full copy of a task without subtasks.
|
void |
delete()
Deletes a task from parent project tasks collection and all its assignments.
|
boolean |
equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
|
boolean |
equals(Task other)
Returns a value indicating whether this instance is equal to a specified task.
|
<T> T |
get(Key<T,Integer> key)
Returns the value to which the property is mapped in this container.
|
ResourceAssignmentCollection |
getAssignments()
Gets a collection of resource assignments for this object.
|
TaskBaselineCollection |
getBaselines()
Gets the collection of baseline values of the task.
|
TaskCollection |
getChildren()
Gets a child task collection of this object.
|
ExtendedAttributeCollection |
getExtendedAttributes()
Gets ExtendedAttributeCollection object containing the values of an extended attribute.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.tasks.IExtendedAttributeParent> |
getItems()
Reserved for internal usage.
|
OutlineCodeCollection |
getOutlineCodes()
Gets
OutlineCodeCollection object. |
Project |
getParentProject()
Gets the parent project of a task.
|
Task |
getParentTask()
Gets the parent task of a task.
|
TaskCollection |
getPredecessors()
Gets a
TaskCollection object which contains all predecessors of this Task object. |
RecurringTaskInfo |
getRecurringInfo()
Gets the instance of
RecurringTaskInfo class for the task which is a recurring task; if the task is not a
recurring one then returns null; |
SplitPartCollection |
getSplitParts()
Gets a SplitPart collection that represents the portions of a task.
|
TaskCollection |
getSuccessors()
Gets a
TaskCollection object which contains all successors of this Task object. |
TimephasedDataCollection |
getTimephasedData()
Gets a TimephasedDataCollection object of this task.
|
TimephasedDataCollection |
getTimephasedData(Date start,
Date end)
Returns
TimephasedDataCollection object with TimephasedData (getTimephasedData() /setTimephasedData(TimephasedDataCollection) ) values within given start and end dates. |
TimephasedDataCollection |
getTimephasedData(Date start,
Date end,
int timephasedType)
Returns
TimephasedDataCollection object with TimephasedData (getTimephasedData() /setTimephasedData(TimephasedDataCollection) ) values within given start and end dates of specified time-phased
data type. |
boolean |
hasChildren()
Gets a value indicating that this task has children.
|
int |
hashCode()
Returns a hash code value for this Task.
|
void |
moveToSibling(int beforeTaskId)
Move the specified task at the same Outline Level
If ParentProject.CalculationMode is None user should invoke Project.Recalculate() after using this method (It
will reschedule all project tasks (start/finish dates, sets early/late dates) and calculate the dependent fields
such as slacks, work and cost fields, outline levels).
|
void |
outlineIndent()
Indents a task in the outline.
|
void |
outlineOutdent()
Promotes a task in the outline.
|
Iterable<Task> |
selectAllChildTasks()
Recursively collects all child tasks of this task.
|
void |
set(Key<Date,Integer> key,
Date val)
Maps the specified property to the specified value in this container.
|
<T> void |
set(Key<T,Integer> key,
T val)
Maps the specified property to the specified value in this container.
|
void |
setBaselines(TaskBaselineCollection value)
Sets the collection of baseline values of the task.
|
void |
setOutlineCodes(OutlineCodeCollection value)
Sets
OutlineCodeCollection object. |
void |
setTimephasedData(TimephasedDataCollection value)
Sets a TimephasedDataCollection object of this task.
|
String |
toString()
Returns short string representation of a task.
|
public final Object deepClone()
Creates full copy of a task without subtasks.
public final void delete()
Deletes a task from parent project tasks collection and all its assignments.
public final boolean equals(Task other)
Returns a value indicating whether this instance is equal to a specified task.
other
- The specified task to compare with this instance.public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
public final <T> T get(Key<T,Integer> key)
Returns the value to which the property is mapped in this container.
key
- the specified property key. Tsk
for getting the property key.
T
: the type of the mapped value.
public final ResourceAssignmentCollection getAssignments()
Gets a collection of resource assignments for this object.
public final TaskBaselineCollection getBaselines()
Gets the collection of baseline values of the task.
public final void setBaselines(TaskBaselineCollection value)
Sets the collection of baseline values of the task.
value
- the collection of baseline values of the task.public final TaskCollection getChildren()
Gets a child task collection of this object. TaskCollection object which represents children tasks.
public final ExtendedAttributeCollection getExtendedAttributes()
Gets ExtendedAttributeCollection object containing the values of an extended attribute.
Read only ExtendedAttributeCollection
instance.
public final com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.tasks.IExtendedAttributeParent> getItems()
public final OutlineCodeCollection getOutlineCodes()
Gets OutlineCodeCollection
object.
OutlineCodeCollection
object.public final void setOutlineCodes(OutlineCodeCollection value)
Sets OutlineCodeCollection
object.
value
- OutlineCodeCollection
object.public final Project getParentProject()
Gets the parent project of a task.
public final Task getParentTask()
Gets the parent task of a task.
public final TaskCollection getPredecessors()
Gets a TaskCollection
object which contains all predecessors of this Task object.
TaskCollection
class.public final RecurringTaskInfo getRecurringInfo()
Gets the instance of RecurringTaskInfo
class for the task which is a recurring task; if the task is not a
recurring one then returns null;
RecurringTaskInfo
is present in mpp file format only.RecurringTaskInfo
class for the task which is a recurring task; if the task is
not a recurring one then returns null;public final SplitPartCollection getSplitParts()
Gets a SplitPart collection that represents the portions of a task.
Read only SplitPartCollection
.
public final TaskCollection getSuccessors()
Gets a TaskCollection
object which contains all successors of this Task object.
TaskCollection
class.public final TimephasedDataCollection getTimephasedData()
Gets a TimephasedDataCollection object of this task.
The time phased data block associated with a task.
Read/write TimephasedDataCollection
object.
public final void setTimephasedData(TimephasedDataCollection value)
Sets a TimephasedDataCollection object of this task.
The time phased data block associated with a task.
Read/write TimephasedDataCollection
object.
value
- a TimephasedDataCollection object of this task.public final TimephasedDataCollection getTimephasedData(Date start, Date end, int timephasedType)
Returns TimephasedDataCollection
object with TimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
) values within given start and end dates of specified time-phased
data type.
start
- The start date for the time phased data.end
- The end date for the time phased data.timephasedType
- The type of time phased data (TimephasedDataType
).TimephasedDataCollection
object with TimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
) values within given start and end dates of specified
timephased data type.public final TimephasedDataCollection getTimephasedData(Date start, Date end)
Returns TimephasedDataCollection
object with TimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
) values within given start and end dates.
start
- The start date for the time phased data.end
- The end date for the time phased data.TimephasedData
to be filled in.public final boolean hasChildren()
public int hashCode()
Returns a hash code value for this Task.
public final void moveToSibling(int beforeTaskId)
Move the specified task at the same Outline Level If ParentProject.CalculationMode is None user should invoke Project.Recalculate() after using this method (It will reschedule all project tasks (start/finish dates, sets early/late dates) and calculate the dependent fields such as slacks, work and cost fields, outline levels). If ParentProject.CalculationMode is Manual the method will calculate only task id, outline level and outline numbers automatically. If ParentProject.CalculationMode is Automatic the method reschedules all project's tasks automatically (start/finish dates, sets early/late dates, calculates slacks, work and cost fields, recalculates ids and outline levels).
beforeTaskId
- the specified id of a task before which a new task will be insertedpublic final void outlineIndent()
Indents a task in the outline.
public final void outlineOutdent()
Promotes a task in the outline.
public final Iterable<Task> selectAllChildTasks()
Recursively collects all child tasks of this task.
public final <T> void set(Key<T,Integer> key, T val)
Maps the specified property to the specified value in this container.
key
- the specified property key. Tsk
for getting the property key.val
- the value.
T
: the type of the mapped value.
public final void set(Key<Date,Integer> key, Date val)
Maps the specified property to the specified value in this container.
key
- the specified property key. Tsk
for getting the property key.val
- the value.