Resource

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

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

Represents a resource in a project.

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.
canLevel()Gets a value indicating whether CanLevel is set or not.
delete()Deletes a resource and its assignments from project.
equals(Resource other)Returns a value indicating whether this instance is equal to a specified instance of the Resource class.
equals(Object obj)Returns a value indicating whether this instance is equal to a specified object.
getACWP()Gets a value of ACWP.
getAccrueAt()Gets a value of AccrueAt.
getActiveDirectoryGuid()Gets a value of ActiveDirectoryGuid.
getActualCost()Gets a value of ActualCost.
getActualOvertimeCost()Gets a value of ActualOvertimeCost.
getActualOvertimeWork()Gets a value of ActualOvertimeWork.
getActualOvertimeWorkProtected()Gets a value of ActualOvertimeWorkProtected.
getActualWork()Gets a value of ActualWork.
getActualWorkProtected()Gets a value of ActualWorkProtected.
getAssignmentOwner()Gets a value of AssignmentOwner.
getAssignmentOwnerGuid()Gets a value of AssignmentOwnerGuid.
getAssignments()Gets a collection of resource assignments for this object.
getAvailabilityPeriods()Gets a the instance of the AvailabilityPeriodCollection class.
getAvailableFrom()Gets a value of AvailableFrom.
getAvailableTo()Gets a value of AvailableTo.
getBCWP()Gets a value of BCWP.
getBCWS()Gets a value of BCWS.
getBaselines()Gets a BaselineCollection instance for this object.
getBookingType()Gets a value of BookingType.
getBudgetCost()Gets a value of BudgetCost.
getBudgetWork()Gets a value of BudgetWork.
getCV()Gets a value of CV.
getCalendar()Gets a value of Calendar.
getCode()Gets a value of Code.
getCost()Gets a value of Cost.
getCostCenter()Gets a value of CostCenter.
getCostPerUse()Gets a value of CostPerUse.
getCostVariance()Gets a value of CostVariance.
getCreated()Gets a value of Created.
getEMailAddress()Gets a value of EMailAddress.
getExtendedAttributes()Gets the values of an extended attribute.
getFinish()Gets a value of Finish.
getGroup()Gets a value of Group.
getGuid()Gets a value of Guid.
getHyperlink()Gets the title or explanatory text of a hyperlink associated with a resource.
getHyperlinkAddress()Gets the address for a hyperlink associated with a resource.
getHyperlinkSubAddress()Gets the specific location in a document in a hyperlink associated with a resource.
getId()Gets a value of Id.
getInactive()Gets a value indicating whether Inactive is set or not.
getInitials()Gets a value of Initials.
getItems()Gets child resources.
getMaterialLabel()Gets a value of MaterialLabel.
getMaxUnits()Gets a value of MaxUnits.
getName()Gets a value of Name.
getNotesRTF()Gets a value of NotesRTF.
getNotesText()Gets a value of NotesText.
getOutlineCode()Gets an OutlineCodeCollection object.
getOverallocated()Gets a value indicating whether Overallocated is set or not.
getOvertimeCost()Gets a value of OvertimeCost.
getOvertimeRate()Gets a value of OvertimeRate.
getOvertimeRateFormat()Gets a value of OvertimeRateFormat.
getOvertimeWork()Gets a value of OvertimeWork.
getParentProject()Gets parent project for this container.
getPeakUnits()Gets a value of PeakUnits.
getPercentWorkComplete()Gets a value of PercentWorkComplete.
getPhonetics()Gets a value of Phonetics.
getRates()Gets a the instance of the RateCollection class for this object.
getRegularWork()Gets a value of RegularWork.
getRemainingCost()Gets a value of RemainingCost.
getRemainingOvertimeCost()Gets a value of RemainingOvertimeCost.
getRemainingOvertimeWork()Gets a value of RemainingOvertimeWork.
getRemainingWork()Gets a value of RemainingWork.
getSV()Gets a value of SV.
getStandardRate()Gets a value of StandardRate.
getStandardRateFormat()Gets a value of StandardRateFormat.
getStart()Gets a value of Start.
getTimephasedData()Gets an instance of TimephasedDataCollection class for this object.
getTimephasedData(Date start, Date end)Returns TimephasedDataCollection for this object with TimephasedData (getTimephasedData()/setTimephasedData(TimephasedDataCollection))values within given start and end dates.
getTimephasedData(Date start, Date end, byte timephasedType)Returns an instance of the TimephasedDataCollection class for this object with the TimephasedData (getTimephasedData()/setTimephasedData(TimephasedDataCollection)) values within given start and end dates of specified TimephasedDataType.
getType()Gets a value of Type.
getUid()Gets a value of Uid.
getWindowsUserAccount()Gets a value of WindowsUserAccount.
getWork()Gets a value of Work.
getWorkVariance()Gets a value of WorkVariance.
getWorkgroup()Gets a value of Workgroup.
hasChildren(){@inheritDoc}
hashCode()Returns a hash code value for the instance of the Resource class.
isBudget()Gets a value indicating whether IsBudget is set or not.
isCostResource()Gets a value indicating whether IsCostResource is set or not.
isEnterprise()Gets a value indicating whether IsEnterprise is set or not.
isGeneric()Gets a value indicating whether IsGeneric is set or not.
isNull()Gets a value indicating whether IsNull is set or not.
isRoot()Gets the flag indicating whether resource is a root resource.
isTeamAssignmentPool()Gets a value indicating whether IsTeamAssignmentPool is set or not.
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.
setAccrueAt(int value)Sets a value of AccrueAt.
setActiveDirectoryGuid(String value)Sets a value of ActiveDirectoryGuid.
setActualCost(BigDecimal value)Sets a value of ActualCost.
setActualOvertimeCost(BigDecimal value)Sets a value of ActualOvertimeCost.
setActualOvertimeWork(Duration value)Sets a value of ActualOvertimeWork.
setActualOvertimeWorkProtected(Duration value)Sets a value of ActualOvertimeWorkProtected.
setActualWork(Duration value)Sets a value of ActualWork.
setActualWorkProtected(Duration value)Sets a value of ActualWorkProtected.
setAssignmentOwner(String value)Sets a value of AssignmentOwner.
setAssignmentOwnerGuid(String value)Sets a value of AssignmentOwnerGuid.
setAvailableFrom(Date value)Sets a value of AvailableFrom.
setAvailableTo(Date value)Sets a value of AvailableTo.
setBCWP(double value)Sets a value of BCWP.
setBCWS(double value)Sets a value of BCWS.
setBookingType(int value)Sets a value of BookingType.
setBudget(NullableBool value)Sets a value indicating whether IsBudget is set or not.
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.
setCanLevel(NullableBool value)Sets a value indicating whether CanLevel is set or not.
setCode(String value)Sets a value of Code.
setCost(BigDecimal value)Sets a value of Cost.
setCostCenter(String value)Sets a value of CostCenter.
setCostPerUse(BigDecimal value)Sets a value of CostPerUse.
setCostResource(NullableBool value)Sets a value indicating whether IsCostResource is set or not.
setCostVariance(double value)Sets a value of CostVariance.
setCreated(Date value)Sets a value of Created.
setEMailAddress(String value)Sets a value of EMailAddress.
setEnterprise(NullableBool value)Sets a value indicating whether IsEnterprise is set or not.
setFinish(Date value)Sets a value of Finish.
setGeneric(NullableBool value)Sets a value indicating whether IsGeneric is set or not.
setGroup(String value)Sets a value of Group.
setGuid(String value)Sets a value of Guid.
setHyperlink(String value)Sets the title or explanatory text of a hyperlink associated with a resource.
setHyperlinkAddress(String value)Sets the address for a hyperlink associated with a resource.
setHyperlinkSubAddress(String value)Sets the specific location in a document in a hyperlink associated with a resource.
setId(int value)Sets a value of Id.
setInactive(NullableBool value)Sets a value indicating whether Inactive is set or not.
setInitials(String value)Sets a value of Initials.
setMaterialLabel(String value)Sets a value of MaterialLabel.
setMaxUnits(double value)Sets a value of MaxUnits.
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.
setOverallocated(NullableBool value)Sets a value indicating whether Overallocated is set or not.
setOvertimeCost(BigDecimal value)Sets a value of OvertimeCost.
setOvertimeRate(BigDecimal value)Sets a value of OvertimeRate.
setOvertimeRateFormat(int value)Sets a value of OvertimeRateFormat.
setOvertimeWork(Duration value)Sets a value of OvertimeWork.
setPeakUnits(double value)Sets a value of PeakUnits.
setPercentWorkComplete(int value)Sets a value of PercentWorkComplete.
setPhonetics(String value)Sets a value of Phonetics.
setRegularWork(Duration value)Sets a value of RegularWork.
setRemainingCost(BigDecimal value)Sets a value of RemainingCost.
setRemainingOvertimeCost(BigDecimal value)Sets a value of RemainingOvertimeCost.
setRemainingOvertimeWork(Duration value)Sets a value of RemainingOvertimeWork.
setRemainingWork(Duration value)Sets a value of RemainingWork.
setSV(double value)Sets a value of SV.
setStandardRate(BigDecimal value)Sets a value of StandardRate.
setStandardRateFormat(int value)Sets a value of StandardRateFormat.
setStart(Date value)Sets a value of Start.
setTeamAssignmentPool(boolean value)Sets a value indicating whether IsTeamAssignmentPool is set or not.
setTimephasedData(TimephasedDataCollection value)Sets an instance of TimephasedDataCollection class for this object.
setType(int value)Sets a value of Type.
setUid(int value)Sets a value of Uid.
setWindowsUserAccount(String value)Sets a value of WindowsUserAccount.
setWork(Duration value)Sets a value of Work.
setWorkVariance(double value)Sets a value of WorkVariance.
setWorkgroup(int value)Sets a value of Workgroup.
toString()Returns short string representation of the instance of the Resource class.

<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. Rsc 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 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. Rsc for getting the property key.
valTthe value.

canLevel()

public final NullableBool canLevel()

Gets a value indicating whether CanLevel is set or not.

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

delete()

public final void delete()

Deletes a resource and its assignments from project.

equals(Resource other)

public final boolean equals(Resource other)

Returns a value indicating whether this instance is equal to a specified instance of the Resource class.

Parameters:

ParameterTypeDescription
otherResourceThe specified instance of the Resource class to compare with this instance.

Returns: boolean - True if the specified instance of the Resource class has the same Uid value as this instance; otherwise, false.

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 object to compare with this instance.

Returns: boolean - True if the specified object is a Resource that has the same Uid value as this instance; otherwise, false.

getACWP()

public final double getACWP()

Gets a value of ACWP.

Returns: double - a value of ACWP.

getAccrueAt()

public final int getAccrueAt()

Gets a value of AccrueAt.

Returns: int - a value of AccrueAt.

getActiveDirectoryGuid()

public final String getActiveDirectoryGuid()

Gets a value of ActiveDirectoryGuid.

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

getActualCost()

public final BigDecimal getActualCost()

Gets a value of ActualCost.

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

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.

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.

getAssignmentOwner()

public final String getAssignmentOwner()

Gets a value of AssignmentOwner.

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

getAssignmentOwnerGuid()

public final String getAssignmentOwnerGuid()

Gets a value of AssignmentOwnerGuid.

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

getAssignments()

public final ResourceAssignmentCollection getAssignments()

Gets a collection of resource assignments for this object.

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

getAvailabilityPeriods()

public final AvailabilityPeriodCollection getAvailabilityPeriods()

Gets a the instance of the AvailabilityPeriodCollection class. The collection of periods during which a resource is available.

Returns: AvailabilityPeriodCollection - a the instance of the AvailabilityPeriodCollection class.

getAvailableFrom()

public final Date getAvailableFrom()

Gets a value of AvailableFrom.

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

getAvailableTo()

public final Date getAvailableTo()

Gets a value of AvailableTo.

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

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 BaselineCollection getBaselines()

Gets a BaselineCollection instance for this object. The baseline values for a resource.

Returns: BaselineCollection - a BaselineCollection instance for this object.

getBookingType()

public final int getBookingType()

Gets a value of BookingType.

Returns: int - a value of BookingType.

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.

getCode()

public final String getCode()

Gets a value of Code.

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

getCost()

public final BigDecimal getCost()

Gets a value of Cost.

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

getCostCenter()

public final String getCostCenter()

Gets a value of CostCenter.

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

getCostPerUse()

public final BigDecimal getCostPerUse()

Gets a value of CostPerUse.

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

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.

getEMailAddress()

public final String getEMailAddress()

Gets a value of EMailAddress.

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

getExtendedAttributes()

public final ExtendedAttributeCollection getExtendedAttributes()

Gets 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 - the values of an extended attribute.

getFinish()

public final Date getFinish()

Gets a value of Finish.

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

getGroup()

public final String getGroup()

Gets a value of Group.

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

getGuid()

public final String getGuid()

Gets a value of Guid.

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

public final String getHyperlink()

Gets the title or explanatory text of a hyperlink associated with a resource.

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

getHyperlinkAddress()

public final String getHyperlinkAddress()

Gets the address for a hyperlink associated with a resource.


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 resource.

getHyperlinkSubAddress()

public final String getHyperlinkSubAddress()

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


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 resource.

getId()

public final int getId()

Gets a value of Id.

Returns: int - a value of Id.

getInactive()

public final NullableBool getInactive()

Gets a value indicating whether Inactive is set or not.

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

getInitials()

public final String getInitials()

Gets a value of Initials.

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

getItems()

public final Iterable<IExtendedAttributeParent> getItems()

Gets child resources.

Returns: java.lang.Iterable<com.aspose.tasks.IExtendedAttributeParent> - child resources.

getMaterialLabel()

public final String getMaterialLabel()

Gets a value of MaterialLabel.

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

getMaxUnits()

public final double getMaxUnits()

Gets a value of MaxUnits.

Returns: double - a value of MaxUnits.

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.

getOutlineCode()

public final OutlineCodeCollection getOutlineCode()

Gets an OutlineCodeCollection object. The value of an outline code.


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 - an OutlineCodeCollection object.

getOverallocated()

public final NullableBool getOverallocated()

Gets a value indicating whether Overallocated is set or not.

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

getOvertimeCost()

public final BigDecimal getOvertimeCost()

Gets a value of OvertimeCost.

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

getOvertimeRate()

public final BigDecimal getOvertimeRate()

Gets a value of OvertimeRate.

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

getOvertimeRateFormat()

public final int getOvertimeRateFormat()

Gets a value of OvertimeRateFormat.

Returns: int - a value of OvertimeRateFormat.

getOvertimeWork()

public final Duration getOvertimeWork()

Gets a value of OvertimeWork.

Returns: Duration - a value of OvertimeWork.

getParentProject()

public final Project getParentProject()

Gets parent project for this container.

Returns: Project - parent project for this container.

getPeakUnits()

public final double getPeakUnits()

Gets a value of PeakUnits.

Returns: double - a value of PeakUnits.

getPercentWorkComplete()

public final int getPercentWorkComplete()

Gets a value of PercentWorkComplete.

Returns: int - a value of PercentWorkComplete.

getPhonetics()

public final String getPhonetics()

Gets a value of Phonetics.

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

getRates()

public final RateCollection getRates()

Gets a the instance of the RateCollection class for this object. The collection of periods and rates associated with each one.

Returns: RateCollection - a the instance of the RateCollection class for this object.

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.

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.

getSV()

public final double getSV()

Gets a value of SV.

Returns: double - a value of SV.

getStandardRate()

public final BigDecimal getStandardRate()

Gets a value of StandardRate.

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

getStandardRateFormat()

public final int getStandardRateFormat()

Gets a value of StandardRateFormat.

Returns: int - a value of StandardRateFormat.

getStart()

public final Date getStart()

Gets a value of Start.

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

getTimephasedData()

public final TimephasedDataCollection getTimephasedData()

Gets an instance of TimephasedDataCollection class for this object.


Reading supported for XML format only.

Returns: TimephasedDataCollection - an instance of TimephasedDataCollection class for this object.

getTimephasedData(Date start, Date end)

public final TimephasedDataCollection getTimephasedData(Date start, Date end)

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

Parameters:

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

Returns: TimephasedDataCollection - List of TimephasedData.

getTimephasedData(Date start, Date end, byte timephasedType)

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

Returns an instance of the TimephasedDataCollection class for this object with the TimephasedData (getTimephasedData()/setTimephasedData(TimephasedDataCollection)) values within given start and end dates of specified TimephasedDataType.

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 - List of TimephasedData (getTimephasedData()/setTimephasedData(TimephasedDataCollection)).

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.

getWindowsUserAccount()

public final String getWindowsUserAccount()

Gets a value of WindowsUserAccount.

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

getWork()

public final Duration getWork()

Gets a value of Work.

Returns: Duration - a value of Work.

getWorkVariance()

public final double getWorkVariance()

Gets a value of WorkVariance.

Returns: double - a value of WorkVariance.

getWorkgroup()

public final int getWorkgroup()

Gets a value of Workgroup.

Returns: int - a value of Workgroup.

hasChildren()

public final boolean hasChildren()

Reserved for internal usage.

Returns: boolean - {@inheritDoc}

hashCode()

public int hashCode()

Returns a hash code value for the instance of the Resource class.

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

isBudget()

public final NullableBool isBudget()

Gets a value indicating whether IsBudget is set or not.

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

isCostResource()

public final NullableBool isCostResource()

Gets a value indicating whether IsCostResource is set or not.

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

isEnterprise()

public final NullableBool isEnterprise()

Gets a value indicating whether IsEnterprise is set or not.

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

isGeneric()

public final NullableBool isGeneric()

Gets a value indicating whether IsGeneric is set or not.

Returns: NullableBool - a value indicating whether IsGeneric 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.

isRoot()

public boolean isRoot()

Gets the flag indicating whether resource is a root resource. Root resource is a special resource which is intended to support internals of MS Project’s formats and is not intended to be used directly from the user’s code.

Returns: boolean - the flag indicating whether resource is a root resource.

isTeamAssignmentPool()

public final boolean isTeamAssignmentPool()

Gets a value indicating whether IsTeamAssignmentPool is set or not.

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

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. Rsc 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.

setAccrueAt(int value)

public final void setAccrueAt(int value)

Sets a value of AccrueAt.

Parameters:

ParameterTypeDescription
valueinta value of AccrueAt.

setActiveDirectoryGuid(String value)

public final void setActiveDirectoryGuid(String value)

Sets a value of ActiveDirectoryGuid.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of ActiveDirectoryGuid.

setActualCost(BigDecimal value)

public final void setActualCost(BigDecimal value)

Sets a value of ActualCost.

Parameters:

ParameterTypeDescription
valuejava.math.BigDecimala value of ActualCost.

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.

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.

setAssignmentOwner(String value)

public final void setAssignmentOwner(String value)

Sets a value of AssignmentOwner.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of AssignmentOwner.

setAssignmentOwnerGuid(String value)

public final void setAssignmentOwnerGuid(String value)

Sets a value of AssignmentOwnerGuid.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of AssignmentOwnerGuid.

setAvailableFrom(Date value)

public final void setAvailableFrom(Date value)

Sets a value of AvailableFrom.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of AvailableFrom.

setAvailableTo(Date value)

public final void setAvailableTo(Date value)

Sets a value of AvailableTo.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of AvailableTo.

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.

setBookingType(int value)

public final void setBookingType(int value)

Sets a value of BookingType.

Parameters:

ParameterTypeDescription
valueinta value of BookingType.

setBudget(NullableBool value)

public final void setBudget(NullableBool value)

Sets a value indicating whether IsBudget is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether IsBudget is set or not.

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.

setCanLevel(NullableBool value)

public final void setCanLevel(NullableBool value)

Sets a value indicating whether CanLevel is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether CanLevel is set or not.

setCode(String value)

public final void setCode(String value)

Sets a value of Code.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of Code.

setCost(BigDecimal value)

public final void setCost(BigDecimal value)

Sets a value of Cost.

Parameters:

ParameterTypeDescription
valuejava.math.BigDecimala value of Cost.

setCostCenter(String value)

public final void setCostCenter(String value)

Sets a value of CostCenter.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of CostCenter.

setCostPerUse(BigDecimal value)

public final void setCostPerUse(BigDecimal value)

Sets a value of CostPerUse.

Parameters:

ParameterTypeDescription
valuejava.math.BigDecimala value of CostPerUse.

setCostResource(NullableBool value)

public final void setCostResource(NullableBool value)

Sets a value indicating whether IsCostResource is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether IsCostResource is set or not.

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.

setEMailAddress(String value)

public final void setEMailAddress(String value)

Sets a value of EMailAddress.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of EMailAddress.

setEnterprise(NullableBool value)

public final void setEnterprise(NullableBool value)

Sets a value indicating whether IsEnterprise is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether IsEnterprise is set or not.

setFinish(Date value)

public final void setFinish(Date value)

Sets a value of Finish.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of Finish.

setGeneric(NullableBool value)

public final void setGeneric(NullableBool value)

Sets a value indicating whether IsGeneric is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether IsGeneric is set or not.

setGroup(String value)

public final void setGroup(String value)

Sets a value of Group.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of Group.

setGuid(String value)

public final void setGuid(String value)

Sets a value of Guid.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of Guid.
public final void setHyperlink(String value)

Sets the title or explanatory text of a hyperlink associated with a resource.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringthe title or explanatory text of a hyperlink associated with a resource.

setHyperlinkAddress(String value)

public final void setHyperlinkAddress(String value)

Sets the address for a hyperlink associated with a resource.


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 resource.

setHyperlinkSubAddress(String value)

public final void setHyperlinkSubAddress(String value)

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


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 resource.

setId(int value)

public final void setId(int value)

Sets a value of Id.

Parameters:

ParameterTypeDescription
valueinta value of Id.

setInactive(NullableBool value)

public final void setInactive(NullableBool value)

Sets a value indicating whether Inactive is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether Inactive is set or not.

setInitials(String value)

public final void setInitials(String value)

Sets a value of Initials.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of Initials.

setMaterialLabel(String value)

public final void setMaterialLabel(String value)

Sets a value of MaterialLabel.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of MaterialLabel.

setMaxUnits(double value)

public final void setMaxUnits(double value)

Sets a value of MaxUnits.

Parameters:

ParameterTypeDescription
valuedoublea value of MaxUnits.

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.

setOverallocated(NullableBool value)

public final void setOverallocated(NullableBool value)

Sets a value indicating whether Overallocated is set or not.

Parameters:

ParameterTypeDescription
valueNullableBoola value indicating whether Overallocated 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.

setOvertimeRate(BigDecimal value)

public final void setOvertimeRate(BigDecimal value)

Sets a value of OvertimeRate.

Parameters:

ParameterTypeDescription
valuejava.math.BigDecimala value of OvertimeRate.

setOvertimeRateFormat(int value)

public final void setOvertimeRateFormat(int value)

Sets a value of OvertimeRateFormat.

Parameters:

ParameterTypeDescription
valueinta value of OvertimeRateFormat.

setOvertimeWork(Duration value)

public final void setOvertimeWork(Duration value)

Sets a value of OvertimeWork.

Parameters:

ParameterTypeDescription
valueDurationa value of OvertimeWork.

setPeakUnits(double value)

public final void setPeakUnits(double value)

Sets a value of PeakUnits.

Parameters:

ParameterTypeDescription
valuedoublea value of PeakUnits.

setPercentWorkComplete(int value)

public final void setPercentWorkComplete(int value)

Sets a value of PercentWorkComplete.

Parameters:

ParameterTypeDescription
valueinta value of PercentWorkComplete.

setPhonetics(String value)

public final void setPhonetics(String value)

Sets a value of Phonetics.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of Phonetics.

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.

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.

setSV(double value)

public final void setSV(double value)

Sets a value of SV.

Parameters:

ParameterTypeDescription
valuedoublea value of SV.

setStandardRate(BigDecimal value)

public final void setStandardRate(BigDecimal value)

Sets a value of StandardRate.

Parameters:

ParameterTypeDescription
valuejava.math.BigDecimala value of StandardRate.

setStandardRateFormat(int value)

public final void setStandardRateFormat(int value)

Sets a value of StandardRateFormat.

Parameters:

ParameterTypeDescription
valueinta value of StandardRateFormat.

setStart(Date value)

public final void setStart(Date value)

Sets a value of Start.

Parameters:

ParameterTypeDescription
valuejava.util.Datea value of Start.

setTeamAssignmentPool(boolean value)

public final void setTeamAssignmentPool(boolean value)

Sets a value indicating whether IsTeamAssignmentPool is set or not.

Parameters:

ParameterTypeDescription
valuebooleana value indicating whether IsTeamAssignmentPool is set or not.

setTimephasedData(TimephasedDataCollection value)

public final void setTimephasedData(TimephasedDataCollection value)

Sets an instance of TimephasedDataCollection class for this object.


Reading supported for XML format only.

Parameters:

ParameterTypeDescription
valueTimephasedDataCollectionan instance of TimephasedDataCollection class for this object.

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.

setWindowsUserAccount(String value)

public final void setWindowsUserAccount(String value)

Sets a value of WindowsUserAccount.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa value of WindowsUserAccount.

setWork(Duration value)

public final void setWork(Duration value)

Sets a value of Work.

Parameters:

ParameterTypeDescription
valueDurationa value of Work.

setWorkVariance(double value)

public final void setWorkVariance(double value)

Sets a value of WorkVariance.

Parameters:

ParameterTypeDescription
valuedoublea value of WorkVariance.

setWorkgroup(int value)

public final void setWorkgroup(int value)

Sets a value of Workgroup.

Parameters:

ParameterTypeDescription
valueinta value of Workgroup.

toString()

public String toString()

Returns short string representation of the instance of the Resource class. The exact details of the representation are unspecified and subject to change.

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