Task

Inheritance: java.lang.Object, com.aspose.tasks.IContainer

All Implemented Interfaces: com.aspose.ms.System.IEquatable, com.aspose.tasks.IExtendedAttributeParent, com.aspose.tasks.IEntityWithNotes, com.aspose.tasks.IEntityWithHyperlink, java.lang.Cloneable

public class Task extends IContainer<Byte> implements System.IEquatable<Task>, IExtendedAttributeParent, IEntityWithNotes, IEntityWithHyperlink, Cloneable

Represents a task in a project.


The Task is representing a one atomic chuck of work.

One can use Task to plan a project by creating tasks and assign appropriate resources onto them. Tasks in a project are organized as a rooted hierarchical tree structure, with a root task and subtrees of children tasks.

To build a tree of tasks one can use a specialized collection TaskCollection by accessing Project.RootTask (Project.getRootTask/Project.setRootTask(Task)) property e.g.:


  Project project = new Project();
  // add new tasks
  Task task1 = project.RootTask.Children.Add(); // a parent task with empty name is added
  Task childTask1 = task1.Children.Add("Child 1");
  childTask1.Set(Tsk.Start, new DateTime(2020, 2, 12, 8, 0, 0))
  childTask1.Set(Tsk.Duration, project.GetDuration(8, TimeUnitType.Hour));
  childTask1.Set(Tsk.Finish, new DateTime(2020, 2, 12, 17, 0, 0));
  Task childTask3 = task1.Children.Add("Child 3");
  childTask3.Set(Tsk.Start, new DateTime(2020, 2, 13, 8, 0, 0))
  childTask3.Set(Tsk.Duration, project.GetDuration(8, TimeUnitType.Hour));
  childTask3.Set(Tsk.Finish, new DateTime(2020, 2, 13, 17, 0, 0));
  Task childTask2 = task1.Children.Add("Child 2", 2); // inserts a task before the childTask3
  childTask2.Set(Tsk.Start, new DateTime(2020, 2, 14, 8, 0, 0))
  childTask2.Set(Tsk.Duration, project.GetDuration(8, TimeUnitType.Hour));
  childTask2.Set(Tsk.Finish, new DateTime(2020, 2, 14, 17, 0, 0));

  // save project in the one of available formats
  project.Save("Filled project.xml", SaveFileFormat.Mpp);
  

Methods

MethodDescription
<T>get(Key<T,Byte> key)Returns the value to which the property is mapped in this container.
<T>set(Key<T,Byte> key, T val)Maps the specified property to the specified value in this container.
deepClone()Creates full copy of a task without subtasks.
delete()Deletes a task from parent project tasks collection and all its assignments.
equals(Task other)Returns a value indicating whether this instance is equal to a specified task.
equals(Object obj)Returns a value indicating whether this instance is equal to a specified object.
getACWP()Gets a value of ACWP.
getActivityId()Represents activity id field - a task’s unique identifier used by Primavera.
getActualCost()Gets a value of ActualCost.
getActualDuration()Gets a value of ActualDuration.
getActualFinish()Gets a value of ActualFinish.
getActualOvertimeCost()Gets a value of ActualOvertimeCost.
getActualOvertimeWork()Gets a value of ActualOvertimeWork.
getActualOvertimeWorkProtected()Gets a value of ActualOvertimeWorkProtected.
getActualStart()Gets a value of ActualStart.
getActualWork()Gets a value of ActualWork.
getActualWorkProtected()Gets a value of ActualWorkProtected.
getAssignments()Gets a collection of resource assignments for this object.
getBCWP()Gets a value of BCWP.
getBCWS()Gets a value of BCWS.
getBaselines()Gets the collection of baseline values of the task.
getBudgetCost()Gets a value of BudgetCost.
getBudgetWork()Gets a value of BudgetWork.
getCV()Gets a value of CV.
getCalendar()Gets a value of Calendar.
getChildren()Gets a child task collection of this object.
getCommitmentFinish()Gets a value of CommitmentFinish.
getCommitmentStart()Gets a value of CommitmentStart.
getCommitmentType()Gets a value of CommitmentType.
getConstraintDate()Gets a value of ConstraintDate.
getConstraintType()Gets a value of ConstraintType.
getContact()Gets a value of Contact.
getCost()Gets a value of Cost.
getCostVariance()Gets a value of CostVariance.
getCreated()Gets a value of Created.
getDeadline()Gets a value of Deadline.
getDisplayAsSummary()Gets a value indicating whether DisplayAsSummary is set or not.
getDisplayOnTimeline()Gets a value indicating whether DisplayOnTimeline is set or not.
getDuration()Gets a value of Duration.
getDurationFormat()Gets a value of DurationFormat.
getDurationText()Gets a value of DurationText.
getDurationVariance()Gets a value of DurationVariance.
getEarlyFinish()Gets a value of EarlyFinish.
getEarlyStart()Gets a value of EarlyStart.
getEarnedValueMethod()Gets a value of EarnedValueMethod.
getExtendedAttributes()Gets ExtendedAttributeCollection object containing the values of an extended attribute.
getExternalId()Gets a value of ExternalId.
getExternalTaskProject()Gets a value of ExternalTaskProject.
getExternalUid()Gets the external task’s Unique identifier when the task is external.
getFinish()Gets a value of Finish.
getFinishSlack()Gets a value of FinishSlack.
getFinishText()Gets a value of FinishText.
getFinishVariance()Gets a value of FinishVariance.
getFixedCost()Gets a value of FixedCost.
getFixedCostAccrual()Gets a value of FixedCostAccrual.
getFreeSlack()Gets a value of FreeSlack.
getGuid()Gets a value of Guid.
getHideBar()Gets a value indicating whether HideBar is set or not.
getHyperlink()Gets the title or explanatory text for a hyperlink associated with a task.
getHyperlinkAddress()Gets the address for a hyperlink associated with a task.
getHyperlinkSubAddress()Gets the specific location in a document in a hyperlink associated with a task.
getId()Gets a value of Id.
getIgnoreResourceCalendar()Gets a value indicating whether IgnoreResourceCalendar is set or not.
getIgnoreWarnings()Gets a value indicating whether IgnoreWarnings is set or not.
getItems(){@inheritDoc}
getLateFinish()Gets a value of LateFinish.
getLateStart()Gets a value of LateStart.
getLevelAssignments()Gets a value indicating whether LevelAssignments is set or not.
getLevelingCanSplit()Gets a value indicating whether LevelingCanSplit is set or not.
getLevelingDelay()Gets a value of LevelingDelay.
getManualDuration()Gets a value of ManualDuration.
getManualFinish()Gets a value of ManualFinish.
getManualStart()Gets a value of ManualStart.
getName()Gets a value of Name.
getNotesRTF()Gets a value of NotesRTF.
getNotesText()Gets a value of NotesText.
getOutlineCodes()Gets OutlineCodeCollection object.
getOutlineLevel()Gets a value of OutlineLevel.
getOutlineNumber()Gets a value of OutlineNumber.
getOvertimeCost()Gets a value of OvertimeCost.
getOvertimeWork()Gets a value of OvertimeWork.
getParentProject()Gets the parent project of a task.
getParentTask()Gets the parent task of a task.
getPercentComplete()Gets a value of PercentComplete.
getPercentWorkComplete()Gets a value of PercentWorkComplete.
getPhysicalPercentComplete()Gets a value of PhysicalPercentComplete.
getPredecessors()Gets a TaskCollection object which contains all predecessors of this Task object.
getPreleveledFinish()Gets a value of PreleveledFinish.
getPreleveledStart()Gets a value of PreleveledStart.
getPrimaveraProperties()Gets an object containing Primavera-specific properties for a task read from Primavera file.
getPriority()Gets a value of Priority.
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;
getRegularWork()Gets a value of RegularWork.
getRemainingCost()Gets a value of RemainingCost.
getRemainingDuration()Gets a value of RemainingDuration.
getRemainingOvertimeCost()Gets a value of RemainingOvertimeCost.
getRemainingOvertimeWork()Gets a value of RemainingOvertimeWork.
getRemainingWork()Gets a value of RemainingWork.
getResume()Gets a value of Resume.
getSV()The earned value schedule variance, through the project status date.
getSplitParts()Gets a SplitPart collection that represents the portions of a task.
getStart()Gets a value of Start.
getStartSlack()Gets a value of StartSlack.
getStartText()Gets a value of StartText.
getStartVariance()Gets a value of StartVariance.
getStatus()Gets task status.
getStatusManager()Gets a value of StatusManager.
getStop()Gets a value of Stop.
getSubprojectName()Gets a value of SubprojectName.
getSuccessors()Gets a TaskCollection object which contains all successors of this Task object.
getTimephasedData()Gets a TimephasedDataCollection object of this task.
getTimephasedData(Date start, Date end)Returns TimephasedDataCollection object with TimephasedData (getTimephasedData()/setTimephasedData(TimephasedDataCollection)) values within given start and end dates.
getTimephasedData(Date start, Date end, byte timephasedType)Returns TimephasedDataCollection object with TimephasedData (getTimephasedData()/setTimephasedData(TimephasedDataCollection)) values within given start and end dates of specified time-phased data type.
getTotalSlack()Gets a value of TotalSlack.
getType()Gets a value of Type.
getUid()Gets a value of Uid.
getWBS()Gets a value of WBS.
getWBSLevel()Gets a value of WBSLevel.
getWarning()Gets a value indicating whether Warning is set or not.
getWork()Gets a value of Work.
getWorkVariance()Gets a value of WorkVariance.
hasChildren()Gets a value indicating that this task has children.
hashCode()Returns a hash code value for this Task.
isActive()Gets a value indicating whether IsActive is set or not.
isCritical()Gets a value indicating whether IsCritical is set or not.
isEffortDriven()Gets a value indicating whether IsEffortDriven is set or not.
isEstimated()Gets a value indicating whether IsEstimated is set or not.
isExpanded()Gets a value indicating whether IsExpanded is set or not.
isExternalTask()Gets a value indicating whether IsExternalTask is set or not.
isManual()Gets a value indicating whether IsManual is set or not.
isMarked()Gets a value indicating whether IsMarked is set or not.
isMilestone()Gets a value indicating whether IsMilestone is set or not.
isNull()Gets a value indicating whether IsNull is set or not.
isOverallocated()Gets a value indicating whether IsOverallocated is set or not.
isPublished()Gets a value indicating whether IsPublished is set or not.
isRecurring()Gets a value indicating whether IsRecurring is set or not.
isResumeValid()Gets a value indicating whether IsResumeValid is set or not.
isRollup()Gets a value indicating whether IsRollup is set or not.
isSubproject()Gets a value indicating whether IsSubproject is set or not.
isSubprojectReadOnly()Gets a value indicating whether IsSubprojectReadOnly is set or not.
isSummary()Gets a value indicating whether IsSummary is set or not.
moveToSibling(Task beforeTask)Moves the current task at the same Outline Level before the specified task.
moveToSibling(int beforeTaskId)Moves the current task at the same Outline Level before a task with the specified Id.
outlineIndent()Indents a task in the outline.
outlineOutdent()Promotes a task in the outline.
selectAllChildTasks()Recursively collects all child tasks of this task.
set(Key<Date,Byte> key, Date val)Maps the specified property to the specified value in this container.
setACWP(double value)Sets a value of ACWP.
setActive(NullableBool value)Sets a value indicating whether IsActive is set or not.
setActivityId(String value)Represents activity id field - a task’s unique identifier used by Primavera.
setActualCost(BigDecimal value)Sets a value of ActualCost.
setActualDuration(Duration value)Sets a value of ActualDuration.
setActualFinish(Date value)Sets a value of ActualFinish.
setActualOvertimeCost(BigDecimal value)Sets a value of ActualOvertimeCost.
setActualOvertimeWork(Duration value)Sets a value of ActualOvertimeWork.
setActualOvertimeWorkProtected(Duration value)Sets a value of ActualOvertimeWorkProtected.
setActualStart(Date value)Sets a value of ActualStart.
setActualWork(Duration value)Sets a value of ActualWork.
setActualWorkProtected(Duration value)Sets a value of ActualWorkProtected.
setBCWP(double value)Sets a value of BCWP.
setBCWS(double value)Sets a value of BCWS.
setBaselines(TaskBaselineCollection value)Sets the collection of baseline values of the task.
setBudgetCost(BigDecimal value)Sets a value of BudgetCost.
setBudgetWork(Duration value)Sets a value of BudgetWork.
setCV(double value)Sets a value of CV.
setCalendar(Calendar value)Sets a value of Calendar.
setCommitmentFinish(Date value)Sets a value of CommitmentFinish.
setCommitmentStart(Date value)Sets a value of CommitmentStart.
setCommitmentType(int value)Sets a value of CommitmentType.
setConstraintDate(Date value)Sets a value of ConstraintDate.
setConstraintType(int value)Sets a value of ConstraintType.
setContact(String value)Sets a value of Contact.
setCost(BigDecimal value)Sets a value of Cost.
setCostVariance(double value)Sets a value of CostVariance.
setCreated(Date value)Sets a value of Created.
setCritical(NullableBool value)Sets a value indicating whether IsCritical is set or not.
setDeadline(Date value)Sets a value of Deadline.
setDisplayAsSummary(NullableBool value)Sets a value indicating whether DisplayAsSummary is set or not.
setDisplayOnTimeline(boolean value)Sets a value indicating whether DisplayOnTimeline is set or not.
setDuration(Duration value)Sets a value of Duration.
setDurationFormat(byte value)Sets a value of DurationFormat.
setDurationText(String value)Sets a value of DurationText.
setDurationVariance(Duration value)Sets a value of DurationVariance.
setEarlyFinish(Date value)Sets a value of EarlyFinish.
setEarlyStart(Date value)Sets a value of EarlyStart.
setEarnedValueMethod(int value)Sets a value of EarnedValueMethod.
setEffortDriven(NullableBool value)Sets a value indicating whether IsEffortDriven is set or not.
setEstimated(NullableBool value)Sets a value indicating whether IsEstimated is set or not.
setExpanded(NullableBool value)Sets a value indicating whether IsExpanded is set or not.
setExternalId(int value)Sets a value of ExternalId.
setExternalTask(boolean value)Sets a value indicating whether IsExternalTask is set or not.
setExternalTaskProject(String value)Sets a value of ExternalTaskProject.
setExternalUid(int value)Set the external task’s Unique identifier when the task is external.
setFinish(Date value)Sets a value of Finish.
setFinishSlack(double value)Sets a value of FinishSlack.
setFinishText(String value)Sets a value of FinishText.
setFinishVariance(Duration value)Sets a value of FinishVariance.
setFixedCost(double value)Sets a value of FixedCost.
setFixedCostAccrual(int value)Sets a value of FixedCostAccrual.
setFreeSlack(double value)Sets a value of FreeSlack.
setGuid(String value)Sets a value of Guid.
setHideBar(NullableBool value)Sets a value indicating whether HideBar is set or not.
setHyperlink(String value)Sets the title or explanatory text for a hyperlink associated with a task.
setHyperlinkAddress(String value)Sets the address for a hyperlink associated with a task.
setHyperlinkSubAddress(String value)Sets the specific location in a document in a hyperlink associated with a task.
setId(int value)Sets a value of Id.
setIgnoreResourceCalendar(NullableBool value)Sets a value indicating whether IgnoreResourceCalendar is set or not.
setIgnoreWarnings(boolean value)Sets a value indicating whether IgnoreWarnings is set or not.
setLateFinish(Date value)Sets a value of LateFinish.
setLateStart(Date value)Sets a value of LateStart.
setLevelAssignments(NullableBool value)Sets a value indicating whether LevelAssignments is set or not.
setLevelingCanSplit(NullableBool value)Sets a value indicating whether LevelingCanSplit is set or not.
setLevelingDelay(Duration value)Sets a value of LevelingDelay.
setManual(NullableBool value)Sets a value indicating whether IsManual is set or not.
setManualDuration(Duration value)Sets a value of ManualDuration.
setManualFinish(Date value)Sets a value of ManualFinish.
setManualStart(Date value)Sets a value of ManualStart.
setMarked(boolean value)Sets a value indicating whether IsMarked is set or not.
setMilestone(NullableBool value)Sets a value indicating whether IsMilestone is set or not.
setName(String value)Sets a value of Name.
setNotesRTF(String value)Sets a value of NotesRTF.
setNotesText(String value)Sets a value of NotesText.
setNull(NullableBool value)Sets a value indicating whether IsNull is set or not.
setOutlineCodes(OutlineCodeCollection value)Sets OutlineCodeCollection object.
setOutlineLevel(int value)Sets a value of OutlineLevel.
setOutlineNumber(String value)Sets a value of OutlineNumber.
setOverallocated(NullableBool value)Sets a value indicating whether IsOverallocated is set or not.
setOvertimeCost(BigDecimal value)Sets a value of OvertimeCost.
setOvertimeWork(Duration value)Sets a value of OvertimeWork.
setPercentComplete(int value)Sets a value of PercentComplete.
setPercentWorkComplete(int value)Sets a value of PercentWorkComplete.
setPhysicalPercentComplete(int value)Sets a value of PhysicalPercentComplete.
setPreleveledFinish(Date value)Sets a value of PreleveledFinish.
setPreleveledStart(Date value)Sets a value of PreleveledStart.
setPriority(int value)Sets a value of Priority.
setPublished(NullableBool value)Sets a value indicating whether IsPublished is set or not.
setRecurring(NullableBool value)Sets a value indicating whether IsRecurring is set or not.
setRegularWork(Duration value)Sets a value of RegularWork.
setRemainingCost(BigDecimal value)Sets a value of RemainingCost.
setRemainingDuration(Duration value)Sets a value of RemainingDuration.
setRemainingOvertimeCost(BigDecimal value)Sets a value of RemainingOvertimeCost.
setRemainingOvertimeWork(Duration value)Sets a value of RemainingOvertimeWork.
setRemainingWork(Duration value)Sets a value of RemainingWork.
setResume(Date value)Sets a value of Resume.
setResumeValid(NullableBool value)Sets a value indicating whether IsResumeValid is set or not.
setRollup(NullableBool value)Sets a value indicating whether IsRollup is set or not.
setSV(double value)The earned value schedule variance, through the project status date.
setStart(Date value)Sets a value of Start.
setStartSlack(double value)Sets a value of StartSlack.
setStartText(String value)Sets a value of StartText.
setStartVariance(Duration value)Sets a value of StartVariance.
setStatusManager(String value)Sets a value of StatusManager.
setStop(Date value)Sets a value of Stop.
setSubproject(boolean value)Sets a value indicating whether IsSubproject is set or not.
setSubprojectName(String value)Sets a value of SubprojectName.
setSubprojectReadOnly(NullableBool value)Sets a value indicating whether IsSubprojectReadOnly is set or not.
setSummary(boolean value)Sets a value indicating whether IsSummary is set or not.
setTimephasedData(TimephasedDataCollection value)Sets a TimephasedDataCollection object of this task.
setTotalSlack(double value)Sets a value of TotalSlack.
setType(int value)Sets a value of Type.
setUid(int value)Sets a value of Uid.
setWBS(String value)Sets a value of WBS.
setWBSLevel(String value)Sets a value of WBSLevel.
setWarning(boolean value)Sets a value indicating whether Warning is set or not.
setWork(Duration value)Sets a value of Work.
setWorkVariance(Duration value)Sets a value of WorkVariance.
toString()Returns short string representation of a task.

<T>get(Key<T,Byte> key)

public final T <T>get(Key<T,Byte> key)

Returns the value to which the property is mapped in this container.

Parameters:

ParameterTypeDescription
keycom.aspose.tasks.Key<T,java.lang.Byte>the specified property key. Tsk for getting the property key.

Returns: T - the value to which the property is mapped in this container.

<T>set(Key<T,Byte> key, T val)

public final void <T>set(Key<T,Byte> key, T val)

Maps the specified property to the specified value in this container.

Parameters:

ParameterTypeDescription
keycom.aspose.tasks.Key<T,java.lang.Byte>the specified property key. Tsk for getting the property key.
valTthe value.

deepClone()

public final Object deepClone()

Creates full copy of a task without subtasks.

Returns: java.lang.Object - Created copy of a task.

delete()

public final void delete()

Deletes a task from parent project tasks collection and all its assignments.

equals(Task other)

public final boolean equals(Task other)

Returns a value indicating whether this instance is equal to a specified task.

Parameters:

ParameterTypeDescription
otherTaskThe specified task to compare with this instance.

Returns: boolean - returns true if the specified task and this instance have equal unique ids.

equals(Object obj)

public boolean equals(Object obj)

Returns a value indicating whether this instance is equal to a specified object.

Parameters:

ParameterTypeDescription
objjava.lang.ObjectThe specified object to compare with this instance.

Returns: boolean - returns true if the specified task and this instance have equal unique ids.

getACWP()

public final double getACWP()

Gets a value of ACWP.

Returns: double - a value of ACWP.

getActivityId()

public final String getActivityId()

Represents activity id field - a task’s unique identifier used by Primavera. (only applicable to Primavera projects).

Returns: java.lang.String - a value of ActivityId.

getActualCost()

public final BigDecimal getActualCost()

Gets a value of ActualCost.

Returns: java.math.BigDecimal - a value of ActualCost.

getActualDuration()

public final Duration getActualDuration()

Gets a value of ActualDuration.

Returns: Duration - a value of ActualDuration.

getActualFinish()

public final Date getActualFinish()

Gets a value of ActualFinish.

Returns: java.util.Date - a value of ActualFinish.

getActualOvertimeCost()

public final BigDecimal getActualOvertimeCost()

Gets a value of ActualOvertimeCost.

Returns: java.math.BigDecimal - a value of ActualOvertimeCost.

getActualOvertimeWork()

public final Duration getActualOvertimeWork()

Gets a value of ActualOvertimeWork.

Returns: Duration - a value of ActualOvertimeWork.

getActualOvertimeWorkProtected()

public final Duration getActualOvertimeWorkProtected()

Gets a value of ActualOvertimeWorkProtected.

Returns: Duration - a value of ActualOvertimeWorkProtected.

getActualStart()

public final Date getActualStart()

Gets a value of ActualStart.

Returns: java.util.Date - a value of ActualStart.

getActualWork()

public final Duration getActualWork()

Gets a value of ActualWork.

Returns: Duration - a value of ActualWork.

getActualWorkProtected()

public final Duration getActualWorkProtected()

Gets a value of ActualWorkProtected.

Returns: Duration - a value of ActualWorkProtected.

getAssignments()

public final ResourceAssignmentCollection getAssignments()

Gets a collection of resource assignments for this object.

Returns: ResourceAssignmentCollection - a collection of resource assignments for this object.

getBCWP()

public final double getBCWP()

Gets a value of BCWP.

Returns: double - a value of BCWP.

getBCWS()

public final double getBCWS()

Gets a value of BCWS.

Returns: double - a value of BCWS.

getBaselines()

public final TaskBaselineCollection getBaselines()

Gets the collection of baseline values of the task.

Returns: TaskBaselineCollection - the collection of baseline values of the task.

getBudgetCost()

public final BigDecimal getBudgetCost()

Gets a value of BudgetCost.

Returns: java.math.BigDecimal - a value of BudgetCost.

getBudgetWork()

public final Duration getBudgetWork()

Gets a value of BudgetWork.

Returns: Duration - a value of BudgetWork.

getCV()

public final double getCV()

Gets a value of CV.

Returns: double - a value of CV.

getCalendar()

public final Calendar getCalendar()

Gets a value of Calendar.

Returns: Calendar - a value of Calendar.

getChildren()

public final TaskCollection getChildren()

Gets a child task collection of this object. TaskCollection object which represents children tasks.

Returns: TaskCollection - a child task collection of this object.

getCommitmentFinish()

public final Date getCommitmentFinish()

Gets a value of CommitmentFinish.

Returns: java.util.Date - a value of CommitmentFinish.

getCommitmentStart()

public final Date getCommitmentStart()

Gets a value of CommitmentStart.

Returns: java.util.Date - a value of CommitmentStart.

getCommitmentType()

public final int getCommitmentType()

Gets a value of CommitmentType.

Returns: int - a value of CommitmentType.

getConstraintDate()

public final Date getConstraintDate()

Gets a value of ConstraintDate.

Returns: java.util.Date - a value of ConstraintDate.

getConstraintType()

public final int getConstraintType()

Gets a value of ConstraintType.

Returns: int - a value of ConstraintType.

getContact()

public final String getContact()

Gets a value of Contact.

Returns: java.lang.String - a value of Contact.

getCost()

public final BigDecimal getCost()

Gets a value of Cost.

Returns: java.math.BigDecimal - a value of Cost.

getCostVariance()

public final double getCostVariance()

Gets a value of CostVariance.

Returns: double - a value of CostVariance.

getCreated()

public final Date getCreated()

Gets a value of Created.

Returns: java.util.Date - a value of Created.

getDeadline()

public final Date getDeadline()

Gets a value of Deadline.

Returns: java.util.Date - a value of Deadline.

getDisplayAsSummary()

public final NullableBool getDisplayAsSummary()

Gets a value indicating whether DisplayAsSummary is set or not.

Returns: NullableBool - a value indicating whether DisplayAsSummary is set or not.

getDisplayOnTimeline()

public final boolean getDisplayOnTimeline()

Gets a value indicating whether DisplayOnTimeline is set or not.

Returns: boolean - a value indicating whether DisplayOnTimeline is set or not.

getDuration()

public final Duration getDuration()

Gets a value of Duration.

Returns: Duration - a value of Duration.

getDurationFormat()

public final byte getDurationFormat()

Gets a value of DurationFormat.

Returns: byte - a value of DurationFormat.

getDurationText()

public final String getDurationText()

Gets a value of DurationText.

Returns: java.lang.String - a value of DurationText.

getDurationVariance()

public final Duration getDurationVariance()

Gets a value of DurationVariance.

Returns: Duration - a value of DurationVariance.

getEarlyFinish()

public final Date getEarlyFinish()

Gets a value of EarlyFinish.

Returns: java.util.Date - a value of EarlyFinish.

getEarlyStart()

public final Date getEarlyStart()

Gets a value of EarlyStart.

Returns: java.util.Date - a value of EarlyStart.

getEarnedValueMethod()

public final int getEarnedValueMethod()

Gets a value of EarnedValueMethod.

Returns: int - a value of EarnedValueMethod.

getExtendedAttributes()

public final ExtendedAttributeCollection getExtendedAttributes()

Gets ExtendedAttributeCollection object containing the values of an extended attribute.


Two pieces of data are necessary - a pointer back to the extended attribute table which is specified either by the unique ID or the Field ID, and the value which is specified either with the value, or a pointer back to the value list.

Returns: ExtendedAttributeCollection - ExtendedAttributeCollection object containing the values of an extended attribute.

getExternalId()

public final int getExternalId()

Gets a value of ExternalId.

Returns: int - a value of ExternalId.

getExternalTaskProject()

public final String getExternalTaskProject()

Gets a value of ExternalTaskProject.

Returns: java.lang.String - a value of ExternalTaskProject.

getExternalUid()

public final int getExternalUid()

Gets the external task’s Unique identifier when the task is external.

Returns: int - the external task’s Unique identifier when the task is external.

getFinish()

public final Date getFinish()

Gets a value of Finish.

Returns: java.util.Date - a value of Finish.

getFinishSlack()

public final double getFinishSlack()

Gets a value of FinishSlack.

Returns: double - a value of FinishSlack.

getFinishText()

public final String getFinishText()

Gets a value of FinishText.

Returns: java.lang.String - a value of FinishText.

getFinishVariance()

public final Duration getFinishVariance()

Gets a value of FinishVariance.

Returns: Duration - a value of FinishVariance.

getFixedCost()

public final double getFixedCost()

Gets a value of FixedCost.

Returns: double - a value of FixedCost.

getFixedCostAccrual()

public final int getFixedCostAccrual()

Gets a value of FixedCostAccrual.

Returns: int - a value of FixedCostAccrual.

getFreeSlack()

public final double getFreeSlack()

Gets a value of FreeSlack.

Returns: double - a value of FreeSlack.

getGuid()

public final String getGuid()

Gets a value of Guid.

Returns: java.lang.String - a value of Guid.

getHideBar()

public final NullableBool getHideBar()

Gets a value indicating whether HideBar is set or not.

Returns: NullableBool - a value indicating whether HideBar is set or not.

public final String getHyperlink()

Gets the title or explanatory text for a hyperlink associated with a task.

Returns: java.lang.String - the title or explanatory text for a hyperlink associated with a task.

getHyperlinkAddress()

public final String getHyperlinkAddress()

Gets the address for a hyperlink associated with a task.


The full address (Hyperlink Href in Microsoft Project) of the hyperlink is a concatenation of HyperlinkAddress and HyperlinkSubAddress.

Returns: java.lang.String - the address for a hyperlink associated with a task.

getHyperlinkSubAddress()

public final String getHyperlinkSubAddress()

Gets the specific location in a document in a hyperlink associated with a task.


The full address (Hyperlink Href in Microsoft Project) of the hyperlink is a concatenation of HyperlinkAddress and HyperlinkSubAddress.

Returns: java.lang.String - the specific location in a document in a hyperlink associated with a task.

getId()

public final int getId()

Gets a value of Id.

Returns: int - a value of Id.

getIgnoreResourceCalendar()

public final NullableBool getIgnoreResourceCalendar()

Gets a value indicating whether IgnoreResourceCalendar is set or not.

Returns: NullableBool - a value indicating whether IgnoreResourceCalendar is set or not.

getIgnoreWarnings()

public final boolean getIgnoreWarnings()

Gets a value indicating whether IgnoreWarnings is set or not.

Returns: boolean - a value indicating whether IgnoreWarnings is set or not.

getItems()

public final Iterable<IExtendedAttributeParent> getItems()

Reserved for internal usage.

Returns: java.lang.Iterable<com.aspose.tasks.IExtendedAttributeParent> - {@inheritDoc}

getLateFinish()

public final Date getLateFinish()

Gets a value of LateFinish.

Returns: java.util.Date - a value of LateFinish.

getLateStart()

public final Date getLateStart()

Gets a value of LateStart.

Returns: java.util.Date - a value of LateStart.

getLevelAssignments()

public final NullableBool getLevelAssignments()

Gets a value indicating whether LevelAssignments is set or not.

Returns: NullableBool - a value indicating whether LevelAssignments is set or not.

getLevelingCanSplit()

public final NullableBool getLevelingCanSplit()

Gets a value indicating whether LevelingCanSplit is set or not.

Returns: NullableBool - a value indicating whether LevelingCanSplit is set or not.

getLevelingDelay()

public final Duration getLevelingDelay()

Gets a value of LevelingDelay.

Returns: Duration - a value of LevelingDelay.

getManualDuration()

public final Duration getManualDuration()

Gets a value of ManualDuration.

Returns: Duration - a value of ManualDuration.

getManualFinish()

public final Date getManualFinish()

Gets a value of ManualFinish.

Returns: java.util.Date - a value of ManualFinish.

getManualStart()

public final Date getManualStart()

Gets a value of ManualStart.

Returns: java.util.Date - a value of ManualStart.

getName()

public final String getName()

Gets a value of Name.

Returns: java.lang.String - a value of Name.

getNotesRTF()

public final String getNotesRTF()

Gets a value of NotesRTF.

Returns: java.lang.String - a value of NotesRTF.

getNotesText()

public final String getNotesText()

Gets a value of NotesText.

Returns: java.lang.String - a value of NotesText.

getOutlineCodes()

public final OutlineCodeCollection getOutlineCodes()

Gets OutlineCodeCollection object.


Two pieces of data are necessary - a pointer to the outline code table that is specified by the FieldID, and the value that is specified either by the ValueID or ValueGUID pointer to the value list.

Returns: OutlineCodeCollection - OutlineCodeCollection object.

getOutlineLevel()

public final int getOutlineLevel()

Gets a value of OutlineLevel.

Returns: int - a value of OutlineLevel.

getOutlineNumber()

public final String getOutlineNumber()

Gets a value of OutlineNumber.

Returns: java.lang.String - a value of OutlineNumber.

getOvertimeCost()

public final BigDecimal getOvertimeCost()

Gets a value of OvertimeCost.

Returns: java.math.BigDecimal - a value of OvertimeCost.

getOvertimeWork()

public final Duration getOvertimeWork()

Gets a value of OvertimeWork.

Returns: Duration - a value of OvertimeWork.

getParentProject()

public final Project getParentProject()

Gets the parent project of a task.


Call Project.UpdateReferences to update these properties.

Returns: Project - the parent project of a task.

getParentTask()

public final Task getParentTask()

Gets the parent task of a task.

Returns: Task - the parent task of a task.

getPercentComplete()

public final int getPercentComplete()

Gets a value of PercentComplete.

Returns: int - a value of PercentComplete.

getPercentWorkComplete()

public final int getPercentWorkComplete()

Gets a value of PercentWorkComplete.

Returns: int - a value of PercentWorkComplete.

getPhysicalPercentComplete()

public final int getPhysicalPercentComplete()

Gets a value of PhysicalPercentComplete.

Returns: int - a value of PhysicalPercentComplete.

getPredecessors()

public final TaskCollection getPredecessors()

Gets a TaskCollection object which contains all predecessors of this Task object.

Returns: TaskCollection - Read-only instance of TaskCollection class.

getPreleveledFinish()

public final Date getPreleveledFinish()

Gets a value of PreleveledFinish.

Returns: java.util.Date - a value of PreleveledFinish.

getPreleveledStart()

public final Date getPreleveledStart()

Gets a value of PreleveledStart.

Returns: java.util.Date - a value of PreleveledStart.

getPrimaveraProperties()

public final PrimaveraTaskProperties getPrimaveraProperties()

Gets an object containing Primavera-specific properties for a task read from Primavera file.

Returns: PrimaveraTaskProperties - an object containing Primavera-specific properties for a task read from Primavera file.

getPriority()

public final int getPriority()

Gets a value of Priority.

Returns: int - a value of Priority.

getRecurringInfo()

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;


The info for the instance of RecurringTaskInfo is present in mpp file format only.

Returns: RecurringTaskInfo - the instance of RecurringTaskInfo class for the task which is a recurring task; if the task is not a recurring one then returns null;

getRegularWork()

public final Duration getRegularWork()

Gets a value of RegularWork.

Returns: Duration - a value of RegularWork.

getRemainingCost()

public final BigDecimal getRemainingCost()

Gets a value of RemainingCost.

Returns: java.math.BigDecimal - a value of RemainingCost.

getRemainingDuration()

public final Duration getRemainingDuration()

Gets a value of RemainingDuration.

Returns: Duration - a value of RemainingDuration.

getRemainingOvertimeCost()

public final BigDecimal getRemainingOvertimeCost()

Gets a value of RemainingOvertimeCost.

Returns: java.math.BigDecimal - a value of RemainingOvertimeCost.

getRemainingOvertimeWork()

public final Duration getRemainingOvertimeWork()

Gets a value of RemainingOvertimeWork.

Returns: Duration - a value of RemainingOvertimeWork.

getRemainingWork()

public final Duration getRemainingWork()

Gets a value of RemainingWork.

Returns: Duration - a value of RemainingWork.

getResume()

public final Date getResume()

Gets a value of Resume.

Returns: java.util.Date - a value of Resume.

getSV()

public final double getSV()

The earned value schedule variance, through the project status date. Schedule variance (SV) is the difference between the BCWP and the BCWS.

Returns: double - a value of SV.

getSplitParts()

public final SplitPartCollection getSplitParts()

Gets a SplitPart collection that represents the portions of a task.

Returns: SplitPartCollection - a SplitPart collection that represents the portions of a task.

getStart()

public final Date getStart()

Gets a value of Start.

Returns: java.util.Date - a value of Start.

getStartSlack()

public final double getStartSlack()

Gets a value of StartSlack.

Returns: double - a value of StartSlack.

getStartText()

public final String getStartText()

Gets a value of StartText.

Returns: java.lang.String - a value of StartText.

getStartVariance()

public final Duration getStartVariance()

Gets a value of StartVariance.

Returns: Duration - a value of StartVariance.

getStatus()

public final int getStatus()

Gets task status.

Returns: int - task status.

getStatusManager()

public final String getStatusManager()

Gets a value of StatusManager.

Returns: java.lang.String - a value of StatusManager.

getStop()

public final Date getStop()

Gets a value of Stop.

Returns: java.util.Date - a value of Stop.

getSubprojectName()

public final String getSubprojectName()

Gets a value of SubprojectName.

Returns: java.lang.String - a value of SubprojectName.

getSuccessors()

public final TaskCollection getSuccessors()

Gets a TaskCollection object which contains all successors of this Task object.

Returns: TaskCollection - Read-only instance of TaskCollection class.

getTimephasedData()

public final TimephasedDataCollection getTimephasedData()

Gets a TimephasedDataCollection object of this task. The time phased data block associated with a task.


Reading supported for XML format only.

Returns: TimephasedDataCollection - a TimephasedDataCollection object of this task.

getTimephasedData(Date start, Date end)

public final TimephasedDataCollection getTimephasedData(Date start, Date end)

Returns TimephasedDataCollection object with TimephasedData (getTimephasedData()/setTimephasedData(TimephasedDataCollection)) values within given start and end dates.

Parameters:

ParameterTypeDescription
startjava.util.DateThe start date for the time phased data.
endjava.util.DateThe end date for the time phased data.

Returns: TimephasedDataCollection - List of TimephasedData to be filled in.

getTimephasedData(Date start, Date end, byte timephasedType)

public final TimephasedDataCollection getTimephasedData(Date start, Date end, byte timephasedType)

Returns TimephasedDataCollection object with TimephasedData (getTimephasedData()/setTimephasedData(TimephasedDataCollection)) values within given start and end dates of specified time-phased data type.

Parameters:

ParameterTypeDescription
startjava.util.DateThe start date for the time phased data.
endjava.util.DateThe end date for the time phased data.
timephasedTypebyteThe type of time phased data (TimephasedDataType).

Returns: TimephasedDataCollection - A TimephasedDataCollection object with TimephasedData (getTimephasedData()/setTimephasedData(TimephasedDataCollection)) values within given start and end dates of specified timephased data type.

getTotalSlack()

public final double getTotalSlack()

Gets a value of TotalSlack.

Returns: double - a value of TotalSlack.

getType()

public final int getType()

Gets a value of Type.

Returns: int - a value of Type.

getUid()

public final int getUid()

Gets a value of Uid.

Returns: int - a value of Uid.

getWBS()

public final String getWBS()

Gets a value of WBS.

Returns: java.lang.String - a value of WBS.

getWBSLevel()

public final String getWBSLevel()

Gets a value of WBSLevel.

Returns: java.lang.String - a value of WBSLevel.

getWarning()

public final boolean getWarning()

Gets a value indicating whether Warning is set or not.

Returns: boolean - a value indicating whether Warning is set or not.

getWork()

public final Duration getWork()

Gets a value of Work.

Returns: Duration - a value of Work.

getWorkVariance()

public final Duration getWorkVariance()

Gets a value of WorkVariance.

Returns: Duration - a value of WorkVariance.

hasChildren()

public final boolean hasChildren()

Gets a value indicating that this task has children.

Returns: boolean - a value indicating that this task has children.

hashCode()

public int hashCode()

Returns a hash code value for this Task.

Returns: int - returns a hash code value for this object.

isActive()

public final NullableBool isActive()

Gets a value indicating whether IsActive is set or not.

Returns: NullableBool - a value indicating whether IsActive is set or not.

isCritical()

public final NullableBool isCritical()

Gets a value indicating whether IsCritical is set or not.

Returns: NullableBool - a value indicating whether IsCritical is set or not.

isEffortDriven()

public final NullableBool isEffortDriven()

Gets a value indicating whether IsEffortDriven is set or not.

Returns: NullableBool - a value indicating whether IsEffortDriven is set or not.

isEstimated()

public final NullableBool isEstimated()

Gets a value indicating whether IsEstimated is set or not.

Returns: NullableBool - a value indicating whether IsEstimated is set or not.

isExpanded()

public final NullableBool isExpanded()

Gets a value indicating whether IsExpanded is set or not.

Returns: NullableBool - a value indicating whether IsExpanded is set or not.

isExternalTask()

public final boolean isExternalTask()

Gets a value indicating whether IsExternalTask is set or not.

Returns: boolean - a value indicating whether IsExternalTask is set or not.

isManual()

public final NullableBool isManual()

Gets a value indicating whether IsManual is set or not.

Returns: NullableBool - a value indicating whether IsManual is set or not.

isMarked()

public final boolean isMarked()

Gets a value indicating whether IsMarked is set or not.

Returns: boolean - a value indicating whether IsMarked is set or not.

isMilestone()

public final NullableBool isMilestone()

Gets a value indicating whether IsMilestone is set or not.

Returns: NullableBool - a value indicating whether IsMilestone is set or not.

isNull()

public final NullableBool isNull()

Gets a value indicating whether IsNull is set or not.

Returns: NullableBool - a value indicating whether IsNull is set or not.

isOverallocated()

public final NullableBool isOverallocated()

Gets a value indicating whether IsOverallocated is set or not.

Returns: NullableBool - a value indicating whether IsOverallocated is set or not.

isPublished()

public final NullableBool isPublished()

Gets a value indicating whether IsPublished is set or not.

Returns: NullableBool - a value indicating whether IsPublished is set or not.

isRecurring()

public final NullableBool isRecurring()

Gets a value indicating whether IsRecurring is set or not.

Returns: NullableBool - a value indicating whether IsRecurring is set or not.

isResumeValid()

public final NullableBool isResumeValid()

Gets a value indicating whether IsResumeValid is set or not.

Returns: NullableBool - a value indicating whether IsResumeValid is set or not.

isRollup()

public final NullableBool isRollup()

Gets a value indicating whether IsRollup is set or not.

Returns: NullableBool - a value indicating whether IsRollup is set or not.

isSubproject()

public final boolean isSubproject()

Gets a value indicating whether IsSubproject is set or not.

Returns: boolean - a value indicating whether IsSubproject is set or not.

isSubprojectReadOnly()

public final NullableBool isSubprojectReadOnly()

Gets a value indicating whether IsSubprojectReadOnly is set or not.

Returns: NullableBool - a value indicating whether IsSubprojectReadOnly is set or not.

isSummary()

public final boolean isSummary()

Gets a value indicating whether IsSummary is set or not.

Returns: boolean - a value indicating whether IsSummary is set or not.

moveToSibling(Task beforeTask)

public final void moveToSibling(Task beforeTask)

Moves the current task at the same Outline Level before the specified task. 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).

Parameters:

ParameterTypeDescription
beforeTaskTaskTask before which the current task will be inserted.

moveToSibling(int beforeTaskId)

public final void moveToSibling(int beforeTaskId)

Moves the current task at the same Outline Level before a task with the specified Id. 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).

Parameters:

ParameterTypeDescription
beforeTaskIdintId (Tsk.ID) of a task before which the current task will be inserted.

outlineIndent()

public final void outlineIndent()

Indents a task in the outline.

outlineOutdent()

public final void outlineOutdent()

Promotes a task in the outline.

selectAllChildTasks()

public final Iterable<Task> selectAllChildTasks()

Recursively collects all child tasks of this task.

Returns: java.lang.Iterable<com.aspose.tasks.Task> - A list of child tasks of this task.

set(Key<Date,Byte> key, Date val)

public final void set(Key<Date,Byte> key, Date val)

Maps the specified property to the specified value in this container.

Parameters:

ParameterTypeDescription
keycom.aspose.tasks.Key<java.util.Date,java.lang.Byte>the specified property key. Tsk for getting the property key.
valjava.util.Datethe value.

setACWP(double value)

public final void setACWP(double value)

Sets a value of ACWP.

Parameters:

ParameterTypeDescription
valuedoublea value of ACWP.

setActive(NullableBool value)

public final void setActive(NullableBool value)

Sets a value indicating whether IsActive is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether IsActive is set or not.

setActivityId(String value)

public final void setActivityId(String value)

Represents activity id field - a task’s unique identifier used by Primavera. (only applicable to Primavera projects).

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of ActivityId.

setActualCost(BigDecimal value)

public final void setActualCost(BigDecimal value)

Sets a value of ActualCost.

Parameters:

ParameterTypeDescription
valuejava.math.BigDecimala value of ActualCost.

setActualDuration(Duration value)

public final void setActualDuration(Duration value)

Sets a value of ActualDuration.

Parameters:

ParameterTypeDescription
valueDurationa value of ActualDuration.

setActualFinish(Date value)

public final void setActualFinish(Date value)

Sets a value of ActualFinish.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of ActualFinish.

setActualOvertimeCost(BigDecimal value)

public final void setActualOvertimeCost(BigDecimal value)

Sets a value of ActualOvertimeCost.

Parameters:

ParameterTypeDescription
valuejava.math.BigDecimala value of ActualOvertimeCost.

setActualOvertimeWork(Duration value)

public final void setActualOvertimeWork(Duration value)

Sets a value of ActualOvertimeWork.

Parameters:

ParameterTypeDescription
valueDurationa value of ActualOvertimeWork.

setActualOvertimeWorkProtected(Duration value)

public final void setActualOvertimeWorkProtected(Duration value)

Sets a value of ActualOvertimeWorkProtected.

Parameters:

ParameterTypeDescription
valueDurationa value of ActualOvertimeWorkProtected.

setActualStart(Date value)

public final void setActualStart(Date value)

Sets a value of ActualStart.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of ActualStart.

setActualWork(Duration value)

public final void setActualWork(Duration value)

Sets a value of ActualWork.

Parameters:

ParameterTypeDescription
valueDurationa value of ActualWork.

setActualWorkProtected(Duration value)

public final void setActualWorkProtected(Duration value)

Sets a value of ActualWorkProtected.

Parameters:

ParameterTypeDescription
valueDurationa value of ActualWorkProtected.

setBCWP(double value)

public final void setBCWP(double value)

Sets a value of BCWP.

Parameters:

ParameterTypeDescription
valuedoublea value of BCWP.

setBCWS(double value)

public final void setBCWS(double value)

Sets a value of BCWS.

Parameters:

ParameterTypeDescription
valuedoublea value of BCWS.

setBaselines(TaskBaselineCollection value)

public final void setBaselines(TaskBaselineCollection value)

Sets the collection of baseline values of the task.

Parameters:

ParameterTypeDescription
valueTaskBaselineCollectionthe collection of baseline values of the task.

setBudgetCost(BigDecimal value)

public final void setBudgetCost(BigDecimal value)

Sets a value of BudgetCost.

Parameters:

ParameterTypeDescription
valuejava.math.BigDecimala value of BudgetCost.

setBudgetWork(Duration value)

public final void setBudgetWork(Duration value)

Sets a value of BudgetWork.

Parameters:

ParameterTypeDescription
valueDurationa value of BudgetWork.

setCV(double value)

public final void setCV(double value)

Sets a value of CV.

Parameters:

ParameterTypeDescription
valuedoublea value of CV.

setCalendar(Calendar value)

public final void setCalendar(Calendar value)

Sets a value of Calendar.

Parameters:

ParameterTypeDescription
valueCalendara value of Calendar.

setCommitmentFinish(Date value)

public final void setCommitmentFinish(Date value)

Sets a value of CommitmentFinish.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of CommitmentFinish.

setCommitmentStart(Date value)

public final void setCommitmentStart(Date value)

Sets a value of CommitmentStart.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of CommitmentStart.

setCommitmentType(int value)

public final void setCommitmentType(int value)

Sets a value of CommitmentType.

Parameters:

ParameterTypeDescription
valueinta value of CommitmentType.

setConstraintDate(Date value)

public final void setConstraintDate(Date value)

Sets a value of ConstraintDate.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of ConstraintDate.

setConstraintType(int value)

public final void setConstraintType(int value)

Sets a value of ConstraintType.

Parameters:

ParameterTypeDescription
valueinta value of ConstraintType.

setContact(String value)

public final void setContact(String value)

Sets a value of Contact.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of Contact.

setCost(BigDecimal value)

public final void setCost(BigDecimal value)

Sets a value of Cost.

Parameters:

ParameterTypeDescription
valuejava.math.BigDecimala value of Cost.

setCostVariance(double value)

public final void setCostVariance(double value)

Sets a value of CostVariance.

Parameters:

ParameterTypeDescription
valuedoublea value of CostVariance.

setCreated(Date value)

public final void setCreated(Date value)

Sets a value of Created.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of Created.

setCritical(NullableBool value)

public final void setCritical(NullableBool value)

Sets a value indicating whether IsCritical is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether IsCritical is set or not.

setDeadline(Date value)

public final void setDeadline(Date value)

Sets a value of Deadline.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of Deadline.

setDisplayAsSummary(NullableBool value)

public final void setDisplayAsSummary(NullableBool value)

Sets a value indicating whether DisplayAsSummary is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether DisplayAsSummary is set or not.

setDisplayOnTimeline(boolean value)

public final void setDisplayOnTimeline(boolean value)

Sets a value indicating whether DisplayOnTimeline is set or not.

Parameters:

ParameterTypeDescription
valuebooleana value indicating whether DisplayOnTimeline is set or not.

setDuration(Duration value)

public final void setDuration(Duration value)

Sets a value of Duration.

Parameters:

ParameterTypeDescription
valueDurationa value of Duration.

setDurationFormat(byte value)

public final void setDurationFormat(byte value)

Sets a value of DurationFormat.

Parameters:

ParameterTypeDescription
valuebytea value of DurationFormat.

setDurationText(String value)

public final void setDurationText(String value)

Sets a value of DurationText.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of DurationText.

setDurationVariance(Duration value)

public final void setDurationVariance(Duration value)

Sets a value of DurationVariance.

Parameters:

ParameterTypeDescription
valueDurationa value of DurationVariance.

setEarlyFinish(Date value)

public final void setEarlyFinish(Date value)

Sets a value of EarlyFinish.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of EarlyFinish.

setEarlyStart(Date value)

public final void setEarlyStart(Date value)

Sets a value of EarlyStart.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of EarlyStart.

setEarnedValueMethod(int value)

public final void setEarnedValueMethod(int value)

Sets a value of EarnedValueMethod.

Parameters:

ParameterTypeDescription
valueinta value of EarnedValueMethod.

setEffortDriven(NullableBool value)

public final void setEffortDriven(NullableBool value)

Sets a value indicating whether IsEffortDriven is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether IsEffortDriven is set or not.

setEstimated(NullableBool value)

public final void setEstimated(NullableBool value)

Sets a value indicating whether IsEstimated is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether IsEstimated is set or not.

setExpanded(NullableBool value)

public final void setExpanded(NullableBool value)

Sets a value indicating whether IsExpanded is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether IsExpanded is set or not.

setExternalId(int value)

public final void setExternalId(int value)

Sets a value of ExternalId.

Parameters:

ParameterTypeDescription
valueinta value of ExternalId.

setExternalTask(boolean value)

public final void setExternalTask(boolean value)

Sets a value indicating whether IsExternalTask is set or not.

Parameters:

ParameterTypeDescription
valuebooleana value indicating whether IsExternalTask is set or not.

setExternalTaskProject(String value)

public final void setExternalTaskProject(String value)

Sets a value of ExternalTaskProject.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of ExternalTaskProject.

setExternalUid(int value)

public final void setExternalUid(int value)

Set the external task’s Unique identifier when the task is external.

Parameters:

ParameterTypeDescription
valueintthe external task’s Unique identifier when the task is external.

setFinish(Date value)

public final void setFinish(Date value)

Sets a value of Finish.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of Finish.

setFinishSlack(double value)

public final void setFinishSlack(double value)

Sets a value of FinishSlack.

Parameters:

ParameterTypeDescription
valuedoublea value of FinishSlack.

setFinishText(String value)

public final void setFinishText(String value)

Sets a value of FinishText.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of FinishText.

setFinishVariance(Duration value)

public final void setFinishVariance(Duration value)

Sets a value of FinishVariance.

Parameters:

ParameterTypeDescription
valueDurationa value of FinishVariance.

setFixedCost(double value)

public final void setFixedCost(double value)

Sets a value of FixedCost.

Parameters:

ParameterTypeDescription
valuedoublea value of FixedCost.

setFixedCostAccrual(int value)

public final void setFixedCostAccrual(int value)

Sets a value of FixedCostAccrual.

Parameters:

ParameterTypeDescription
valueinta value of FixedCostAccrual.

setFreeSlack(double value)

public final void setFreeSlack(double value)

Sets a value of FreeSlack.

Parameters:

ParameterTypeDescription
valuedoublea value of FreeSlack.

setGuid(String value)

public final void setGuid(String value)

Sets a value of Guid.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of Guid.

setHideBar(NullableBool value)

public final void setHideBar(NullableBool value)

Sets a value indicating whether HideBar is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether HideBar is set or not.
public final void setHyperlink(String value)

Sets the title or explanatory text for a hyperlink associated with a task.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringthe title or explanatory text for a hyperlink associated with a task.

setHyperlinkAddress(String value)

public final void setHyperlinkAddress(String value)

Sets the address for a hyperlink associated with a task.


The full address (Hyperlink Href in Microsoft Project) of the hyperlink is a concatenation of HyperlinkAddress and HyperlinkSubAddress.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringthe address for a hyperlink associated with a task.

setHyperlinkSubAddress(String value)

public final void setHyperlinkSubAddress(String value)

Sets the specific location in a document in a hyperlink associated with a task.


The full address (Hyperlink Href in Microsoft Project) of the hyperlink is a concatenation of HyperlinkAddress and HyperlinkSubAddress.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringthe specific location in a document in a hyperlink associated with a task.

setId(int value)

public final void setId(int value)

Sets a value of Id.

Parameters:

ParameterTypeDescription
valueinta value of Id.

setIgnoreResourceCalendar(NullableBool value)

public final void setIgnoreResourceCalendar(NullableBool value)

Sets a value indicating whether IgnoreResourceCalendar is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether IgnoreResourceCalendar is set or not.

setIgnoreWarnings(boolean value)

public final void setIgnoreWarnings(boolean value)

Sets a value indicating whether IgnoreWarnings is set or not.

Parameters:

ParameterTypeDescription
valuebooleana value indicating whether IgnoreWarnings is set or not.

setLateFinish(Date value)

public final void setLateFinish(Date value)

Sets a value of LateFinish.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of LateFinish.

setLateStart(Date value)

public final void setLateStart(Date value)

Sets a value of LateStart.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of LateStart.

setLevelAssignments(NullableBool value)

public final void setLevelAssignments(NullableBool value)

Sets a value indicating whether LevelAssignments is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether LevelAssignments is set or not.

setLevelingCanSplit(NullableBool value)

public final void setLevelingCanSplit(NullableBool value)

Sets a value indicating whether LevelingCanSplit is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether LevelingCanSplit is set or not.

setLevelingDelay(Duration value)

public final void setLevelingDelay(Duration value)

Sets a value of LevelingDelay.

Parameters:

ParameterTypeDescription
valueDurationa value of LevelingDelay.

setManual(NullableBool value)

public final void setManual(NullableBool value)

Sets a value indicating whether IsManual is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether IsManual is set or not.

setManualDuration(Duration value)

public final void setManualDuration(Duration value)

Sets a value of ManualDuration.

Parameters:

ParameterTypeDescription
valueDurationa value of ManualDuration.

setManualFinish(Date value)

public final void setManualFinish(Date value)

Sets a value of ManualFinish.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of ManualFinish.

setManualStart(Date value)

public final void setManualStart(Date value)

Sets a value of ManualStart.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of ManualStart.

setMarked(boolean value)

public final void setMarked(boolean value)

Sets a value indicating whether IsMarked is set or not.

Parameters:

ParameterTypeDescription
valuebooleana value indicating whether IsMarked is set or not.

setMilestone(NullableBool value)

public final void setMilestone(NullableBool value)

Sets a value indicating whether IsMilestone is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether IsMilestone is set or not.

setName(String value)

public final void setName(String value)

Sets a value of Name.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of Name.

setNotesRTF(String value)

public final void setNotesRTF(String value)

Sets a value of NotesRTF.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of NotesRTF.

setNotesText(String value)

public final void setNotesText(String value)

Sets a value of NotesText.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of NotesText.

setNull(NullableBool value)

public final void setNull(NullableBool value)

Sets a value indicating whether IsNull is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether IsNull is set or not.

setOutlineCodes(OutlineCodeCollection value)

public final void setOutlineCodes(OutlineCodeCollection value)

Sets OutlineCodeCollection object.


Two pieces of data are necessary - a pointer to the outline code table that is specified by the FieldID, and the value that is specified either by the ValueID or ValueGUID pointer to the value list.

Parameters:

ParameterTypeDescription
valueOutlineCodeCollectionOutlineCodeCollection object.

setOutlineLevel(int value)

public final void setOutlineLevel(int value)

Sets a value of OutlineLevel.

Parameters:

ParameterTypeDescription
valueinta value of OutlineLevel.

setOutlineNumber(String value)

public final void setOutlineNumber(String value)

Sets a value of OutlineNumber.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of OutlineNumber.

setOverallocated(NullableBool value)

public final void setOverallocated(NullableBool value)

Sets a value indicating whether IsOverallocated is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether IsOverallocated is set or not.

setOvertimeCost(BigDecimal value)

public final void setOvertimeCost(BigDecimal value)

Sets a value of OvertimeCost.

Parameters:

ParameterTypeDescription
valuejava.math.BigDecimala value of OvertimeCost.

setOvertimeWork(Duration value)

public final void setOvertimeWork(Duration value)

Sets a value of OvertimeWork.

Parameters:

ParameterTypeDescription
valueDurationa value of OvertimeWork.

setPercentComplete(int value)

public final void setPercentComplete(int value)

Sets a value of PercentComplete.

Parameters:

ParameterTypeDescription
valueinta value of PercentComplete.

setPercentWorkComplete(int value)

public final void setPercentWorkComplete(int value)

Sets a value of PercentWorkComplete.

Parameters:

ParameterTypeDescription
valueinta value of PercentWorkComplete.

setPhysicalPercentComplete(int value)

public final void setPhysicalPercentComplete(int value)

Sets a value of PhysicalPercentComplete.

Parameters:

ParameterTypeDescription
valueinta value of PhysicalPercentComplete.

setPreleveledFinish(Date value)

public final void setPreleveledFinish(Date value)

Sets a value of PreleveledFinish.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of PreleveledFinish.

setPreleveledStart(Date value)

public final void setPreleveledStart(Date value)

Sets a value of PreleveledStart.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of PreleveledStart.

setPriority(int value)

public final void setPriority(int value)

Sets a value of Priority.

Parameters:

ParameterTypeDescription
valueinta value of Priority.

setPublished(NullableBool value)

public final void setPublished(NullableBool value)

Sets a value indicating whether IsPublished is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether IsPublished is set or not.

setRecurring(NullableBool value)

public final void setRecurring(NullableBool value)

Sets a value indicating whether IsRecurring is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether IsRecurring is set or not.

setRegularWork(Duration value)

public final void setRegularWork(Duration value)

Sets a value of RegularWork.

Parameters:

ParameterTypeDescription
valueDurationa value of RegularWork.

setRemainingCost(BigDecimal value)

public final void setRemainingCost(BigDecimal value)

Sets a value of RemainingCost.

Parameters:

ParameterTypeDescription
valuejava.math.BigDecimala value of RemainingCost.

setRemainingDuration(Duration value)

public final void setRemainingDuration(Duration value)

Sets a value of RemainingDuration.

Parameters:

ParameterTypeDescription
valueDurationa value of RemainingDuration.

setRemainingOvertimeCost(BigDecimal value)

public final void setRemainingOvertimeCost(BigDecimal value)

Sets a value of RemainingOvertimeCost.

Parameters:

ParameterTypeDescription
valuejava.math.BigDecimala value of RemainingOvertimeCost.

setRemainingOvertimeWork(Duration value)

public final void setRemainingOvertimeWork(Duration value)

Sets a value of RemainingOvertimeWork.

Parameters:

ParameterTypeDescription
valueDurationa value of RemainingOvertimeWork.

setRemainingWork(Duration value)

public final void setRemainingWork(Duration value)

Sets a value of RemainingWork.

Parameters:

ParameterTypeDescription
valueDurationa value of RemainingWork.

setResume(Date value)

public final void setResume(Date value)

Sets a value of Resume.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of Resume.

setResumeValid(NullableBool value)

public final void setResumeValid(NullableBool value)

Sets a value indicating whether IsResumeValid is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether IsResumeValid is set or not.

setRollup(NullableBool value)

public final void setRollup(NullableBool value)

Sets a value indicating whether IsRollup is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether IsRollup is set or not.

setSV(double value)

public final void setSV(double value)

The earned value schedule variance, through the project status date. Schedule variance (SV) is the difference between the BCWP and the BCWS.

Parameters:

ParameterTypeDescription
valuedoublea value of SV.

setStart(Date value)

public final void setStart(Date value)

Sets a value of Start.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of Start.

setStartSlack(double value)

public final void setStartSlack(double value)

Sets a value of StartSlack.

Parameters:

ParameterTypeDescription
valuedoublea value of StartSlack.

setStartText(String value)

public final void setStartText(String value)

Sets a value of StartText.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of StartText.

setStartVariance(Duration value)

public final void setStartVariance(Duration value)

Sets a value of StartVariance.

Parameters:

ParameterTypeDescription
valueDurationa value of StartVariance.

setStatusManager(String value)

public final void setStatusManager(String value)

Sets a value of StatusManager.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of StatusManager.

setStop(Date value)

public final void setStop(Date value)

Sets a value of Stop.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of Stop.

setSubproject(boolean value)

public final void setSubproject(boolean value)

Sets a value indicating whether IsSubproject is set or not.

Parameters:

ParameterTypeDescription
valuebooleana value indicating whether IsSubproject is set or not.

setSubprojectName(String value)

public final void setSubprojectName(String value)

Sets a value of SubprojectName.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of SubprojectName.

setSubprojectReadOnly(NullableBool value)

public final void setSubprojectReadOnly(NullableBool value)

Sets a value indicating whether IsSubprojectReadOnly is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether IsSubprojectReadOnly is set or not.

setSummary(boolean value)

public final void setSummary(boolean value)

Sets a value indicating whether IsSummary is set or not.

Parameters:

ParameterTypeDescription
valuebooleana value indicating whether IsSummary is set or not.

setTimephasedData(TimephasedDataCollection value)

public final void setTimephasedData(TimephasedDataCollection value)

Sets a TimephasedDataCollection object of this task. The time phased data block associated with a task.


Reading supported for XML format only.

Parameters:

ParameterTypeDescription
valueTimephasedDataCollectiona TimephasedDataCollection object of this task.

setTotalSlack(double value)

public final void setTotalSlack(double value)

Sets a value of TotalSlack.

Parameters:

ParameterTypeDescription
valuedoublea value of TotalSlack.

setType(int value)

public final void setType(int value)

Sets a value of Type.

Parameters:

ParameterTypeDescription
valueinta value of Type.

setUid(int value)

public final void setUid(int value)

Sets a value of Uid.

Parameters:

ParameterTypeDescription
valueinta value of Uid.

setWBS(String value)

public final void setWBS(String value)

Sets a value of WBS.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of WBS.

setWBSLevel(String value)

public final void setWBSLevel(String value)

Sets a value of WBSLevel.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of WBSLevel.

setWarning(boolean value)

public final void setWarning(boolean value)

Sets a value indicating whether Warning is set or not.

Parameters:

ParameterTypeDescription
valuebooleana value indicating whether Warning is set or not.

setWork(Duration value)

public final void setWork(Duration value)

Sets a value of Work.

Parameters:

ParameterTypeDescription
valueDurationa value of Work.

setWorkVariance(Duration value)

public final void setWorkVariance(Duration value)

Sets a value of WorkVariance.

Parameters:

ParameterTypeDescription
valueDurationa value of WorkVariance.

toString()

public String toString()

Returns short string representation of a task. The exact details of the representation are unspecified and subject to change.

Returns: java.lang.String - short string which represents task object.