public final class Resource extends Object implements Comparable<Resource>, FieldContainer
| Modifier and Type | Method and Description |
|---|---|
void |
addFieldListener(FieldListener listener)
Add a listener to receive field events.
|
void |
addResourceAssignment(ResourceAssignment assignment)
This method is used internally within MPXJ to track tasks which are
assigned to a particular resource.
|
ProjectCalendar |
addResourceCalendar()
This method allows a resource calendar to be added to a resource.
|
int |
compareTo(Resource o)
This method implements the only method in the Comparable interface.
|
void |
disableEvents()
Disable events firing when fields are updated.
|
void |
enableEvents()
Enable events firing when fields are updated.
|
boolean |
equals(Object o) |
AccrueType |
getAccrueAt()
Gets the Accrue at type.The Accrue At field provides choices for how and
when resource standard and overtime costs are to be charged, or accrued,
to the cost of a task.
|
String |
getActiveDirectoryGUID()
Retrieves the active directory GUID for this resource.
|
Number |
getActualCost()
Retrieves the actual cost for the work already performed by this resource.
|
Number |
getActualOvertimeCost()
Retrieve actual overtime cost.
|
Duration |
getActualOvertimeWork()
Retrieve the value of the actual overtime work field.
|
Duration |
getActualOvertimeWorkProtected()
Retrieves the actual overtime work protected duration.
|
Duration |
getActualWork()
Retrieves the Actual Work field contains the amount of work that has
already been done for all assignments assigned to a resource.
|
Duration |
getActualWorkProtected()
Retrieves the actual work protected duration.
|
Number |
getACWP()
Set the actual cost of work performed.
|
AvailabilityTable |
getAvailability()
Retrieve the availability table for this resource.
|
Date |
getAvailableFrom()
Retrieves the "available from" date.
|
Date |
getAvailableTo()
Retrieves the "available to" date.
|
String |
getBaseCalendar()
Retrieves Base Calendar name associated with this resource.
|
Number |
getBaselineCost()
Retrieves the Baseline Cost value.
|
Number |
getBaselineCost(int baselineNumber)
Retrieve a baseline value.
|
Duration |
getBaselineWork()
Retrieves the Baseline Work value.
|
Duration |
getBaselineWork(int baselineNumber)
Retrieve a baseline value.
|
Number |
getBCWP()
Retrievesthe budgeted cost of work performed.
|
Number |
getBCWS()
Retrieves the budgeted cost of work scheduled.
|
BookingType |
getBookingType()
Retrieves the booking type.
|
boolean |
getBudget()
Retrieve the budget flag.
|
Object |
getCachedValue(FieldType field)
Retrieve a field value.
|
boolean |
getCanLevel()
Retrieves the flag indicating if the resource levelling can be applied to
this resource.
|
String |
getCode()
Gets code field value.
|
Number |
getCost()
Retrieves the cost field value.
|
Number |
getCost(int index)
Retrieve a cost value.
|
Number |
getCostPerUse()
Retrieve the cost per use.
|
CostRateTable |
getCostRateTable(int index)
Retrieves a cost rate table associated with a resource.
|
Number |
getCostVariance()
Retrieves the cost variance.
|
Date |
getCreationDate()
Retrieves the creation date.
|
Object |
getCurrentValue(FieldType field)
Retrieve a field value.
|
Number |
getCV()
Retrieve the cost variance.
|
Date |
getDate(int index)
Retrieve a date value.
|
Duration |
getDuration(int index)
Retrieve a duration value.
|
String |
getEmailAddress()
Retrieves the resource's email address.
|
boolean |
getEnterprise()
Retrieves a flag indicating that a resource is an enterprise resource.
|
Number |
getEnterpriseCost(int index)
Retrieve an enterprise field value.
|
String |
getEnterpriseCustomField(int index)
Retrieve an enterprise custom field value.
|
Date |
getEnterpriseDate(int index)
Retrieve an enterprise field value.
|
Duration |
getEnterpriseDuration(int index)
Retrieve an enterprise field value.
|
boolean |
getEnterpriseFlag(int index)
Retrieve an enterprise field value.
|
Number |
getEnterpriseNumber(int index)
Retrieve an enterprise field value.
|
String |
getEnterpriseText(int index)
Retrieve an enterprise field value.
|
Object |
getFieldByAlias(String alias)
Retrieve the value of a field using its alias.
|
Date |
getFinish()
Retrieves the latest finish date for all assigned tasks.
|
Date |
getFinish(int index)
Retrieve a finish value.
|
boolean |
getFlag(int index)
Retrieve a flag value.
|
boolean |
getGeneric()
Retrieves the generic flag.
|
String |
getGroup()
Gets Group field value.
|
UUID |
getGUID()
Retrieves the resource GUID.
|
String |
getHyperlink()
Retrieves the hyperlink text.
|
String |
getHyperlinkAddress()
Retrieves the hyperlink address.
|
String |
getHyperlinkSubAddress()
Retrieves the hyperlink sub-address.
|
Integer |
getID()
Gets ID field value.
|
boolean |
getInactive()
Retrieves the inactive flag.
|
String |
getInitials()
Gets Initials of name field value.
|
String |
getLinkedFields()
Gets Linked Fields field value.
|
String |
getMaterialLabel()
Retrieves the units label for a material resource.
|
Number |
getMaxUnits()
Retrieves the maximum availability of a resource.
|
String |
getName()
Gets Resource Name field value.
|
String |
getNotes()
Retrieves the notes text for this resource.
|
String |
getNtAccount()
Retrieves the Windows account name for a resource.
|
boolean |
getNull()
Retrieve a flag indicating if this is a null resource.
|
Number |
getNumber(int index)
Retrieve a number value.
|
Integer |
getObjects()
Gets objects field value.
|
String |
getOutlineCode1()
Retrieves the value of an outline code field.
|
String |
getOutlineCode10()
Retrieves the value of an outline code field.
|
String |
getOutlineCode2()
Retrieves the value of an outline code field.
|
String |
getOutlineCode3()
Retrieves the value of an outline code field.
|
String |
getOutlineCode4()
Retrieves the value of an outline code field.
|
String |
getOutlineCode5()
Retrieves the value of an outline code field.
|
String |
getOutlineCode6()
Retrieves the value of an outline code field.
|
String |
getOutlineCode7()
Retrieves the value of an outline code field.
|
String |
getOutlineCode8()
Retrieves the value of an outline code field.
|
String |
getOutlineCode9()
Retrieves the value of an outline code field.
|
boolean |
getOverAllocated()
Retrieves the overallocated flag.
|
Number |
getOvertimeCost()
Retrieve the value of the overtime cost field.
|
Rate |
getOvertimeRate()
Retrieves the overtime rate for this resource.
|
TimeUnit |
getOvertimeRateUnits()
Retrieves the format of the overtime rate.
|
Duration |
getOvertimeWork()
Retrieves the amount of overtime work.
|
ProjectFile |
getParentFile()
Accessor method allowing retrieval of ProjectFile reference.
|
Number |
getPeakUnits()
Retrieves the peak resource utilisation.
|
Number |
getPercentWorkComplete()
Retrieves the value of the percent work complete field.
|
String |
getPhonetics()
Retrieves phonetic information for the Japanese version of MS Project.
|
Duration |
getRegularWork()
Retrieve the value of the regular work field.
|
Number |
getRemainingCost()
Retrieves the remaining cost for this resource.
|
Number |
getRemainingOvertimeCost()
Retrieve the remaining overtime cost.
|
Duration |
getRemainingOvertimeWork()
Retrieve the value of the remaining overtime work field.
|
Duration |
getRemainingWork()
Gets Remaining Work field value.
|
ProjectCalendar |
getResourceCalendar()
This method retrieves the calendar associated with this resource.
|
Rate |
getStandardRate()
Gets Standard Rate field value.
|
TimeUnit |
getStandardRateUnits()
Retrieves the format of the standard rate.
|
Date |
getStart()
Retrieves the earliest start date for all assigned tasks.
|
Date |
getStart(int index)
Retrieve a start value.
|
Integer |
getSubprojectResourceUniqueID()
Where a resource in an MPP file represents a resource from a subproject,
this value will be non-zero.
|
Number |
getSV()
Retrieve the schedule variance.
|
List<ResourceAssignment> |
getTaskAssignments()
Retrieve a list of tasks assigned to this resource.
|
String |
getText(int index)
Retrieve a text value.
|
ResourceType |
getType()
Retrieves the resource type.
|
Integer |
getUniqueID()
Gets Unique ID field value.
|
Duration |
getWork()
Gets Work field value.
|
WorkGroup |
getWorkGroup()
Retrieve the messaging method used to communicate with a project team.
|
Duration |
getWorkVariance()
Retrieves the work variance.
|
int |
hashCode() |
void |
remove()
Removes this resource from the project.
|
void |
removeFieldListener(FieldListener listener)
Remove a listener.
|
void |
set(FieldType field,
Object value)
Set a field value.
|
void |
setAccrueAt(AccrueType type)
Sets the Accrue at type.The Accrue At field provides choices for how and
when resource standard and overtime costs are to be charged, or accrued,
to the cost of a task.
|
void |
setActualCost(Number actualCost)
Set the actual cost for the work already performed by this resource.
|
void |
setActualOvertimeCost(Number actualOvertimeCost)
Sets the actual overtime cost.
|
void |
setActualOvertimeWork(Duration duration)
Sets the value of the actual overtime work field.
|
void |
setActualOvertimeWorkProtected(Duration duration)
Sets the actual overtime work protected duration.
|
void |
setActualWork(Duration val)
Sets the Actual Work field contains the amount of work that has already
been done for all assignments assigned to a resource.
|
void |
setActualWorkProtected(Duration duration)
Sets the actual work protected duration.
|
void |
setActveDirectoryGUID(String guid)
Sets the active directory GUID for this resource.
|
void |
setACWP(Number acwp)
Set the actual cost of work performed.
|
void |
setAvailableFrom(Date date)
Set the "available from" date.
|
void |
setAvailableTo(Date date)
Set the "available to" date.
|
void |
setBaseCalendar(String val)
Sets the Base Calendar field indicates which calendar is the base calendar
for a resource calendar.
|
void |
setBaselineCost(int baselineNumber,
Number value)
Set a baseline value.
|
void |
setBaselineCost(Number val)
Sets the baseline cost.
|
void |
setBaselineWork(Duration val)
Sets the baseline work duration.
|
void |
setBaselineWork(int baselineNumber,
Duration value)
Set a baseline value.
|
void |
setBCWP(Number bcwp)
Sets the budgeted cost of work performed.
|
void |
setBCWS(Number bcws)
Sets the budgeted cost of work scheduled.
|
void |
setBookingType(BookingType bookingType)
Sets the booking type.
|
void |
setBudget(boolean budget)
Set the budget flag.
|
void |
setCanLevel(boolean canLevel)
Sets the flag indicating if the resource levelling can be applied to this
resource.
|
void |
setCode(String val)
Sets code field value.
|
void |
setCost(int index,
Number value)
Set a cost value.
|
void |
setCost(Number cost)
Sets the cost field value.
|
void |
setCostPerUse(Number costPerUse)
Set the cost per use.
|
void |
setCostRateTable(int index,
CostRateTable crt)
Associates a complete cost rate table with the
current resource.
|
void |
setCostVariance(Number costVariance)
Sets the cost variance.
|
void |
setCreationDate(Date creationDate)
Sets the creation date.
|
void |
setCV(Number cv)
Set the cost variance.
|
void |
setDate(int index,
Date value)
Set a date value.
|
void |
setDuration(int index,
Duration value)
Set a duration value.
|
void |
setEmailAddress(String emailAddress)
Set the resource's email address.
|
void |
setEnterpriseCost(int index,
Number value)
Set an enterprise field value.
|
void |
setEnterpriseCustomField(int index,
String value)
Set an enterprise custom field value.
|
void |
setEnterpriseDate(int index,
Date value)
Set an enterprise field value.
|
void |
setEnterpriseDuration(int index,
Duration value)
Set an enterprise field value.
|
void |
setEnterpriseFlag(int index,
boolean value)
Set an enterprise field value.
|
void |
setEnterpriseNumber(int index,
Number value)
Set an enterprise field value.
|
void |
setEnterpriseText(int index,
String value)
Set an enterprise field value.
|
void |
setFieldByAlias(String alias,
Object value)
Set the value of a field using its alias.
|
void |
setFinish(int index,
Date value)
Set a finish value.
|
void |
setFlag(int index,
boolean value)
Set a flag value.
|
void |
setGroup(String val)
Sets Group field value.
|
void |
setGUID(UUID value)
Sets the resource GUID.
|
void |
setHyperlink(String hyperlink)
Sets the hyperlink text.
|
void |
setHyperlinkAddress(String hyperlinkAddress)
Sets the hyperlink address.
|
void |
setHyperlinkSubAddress(String hyperlinkSubAddress)
Sets the hyperlink sub-address.
|
void |
setID(Integer val)
Sets ID field value.
|
void |
setInitials(String val)
Sets Initials field value.
|
void |
setIsEnterprise(boolean enterprise)
Sets a flag indicating that a resource is an enterprise resource.
|
void |
setIsGeneric(boolean isGeneric)
Sets the generic flag.
|
void |
setIsInactive(boolean isInactive)
Sets the inactive flag.
|
void |
setIsNull(boolean isNull)
Set the flag indicating that this is a null resource.
|
void |
setLinkedFields(String val)
This field is ignored on import into MS Project.
|
void |
setMaterialLabel(String materialLabel)
Set the units label for a material resource.
|
void |
setMaxUnits(Number maxUnits)
Sets the maximum availability of a resource.
|
void |
setName(String val)
Sets Name field value.
|
void |
setNotes(String notes)
Sets the notes text for this resource.
|
void |
setNtAccount(String ntAccount)
Sets the Windows account name for a resource.
|
void |
setNumber(int index,
Number value)
Set a number value.
|
void |
setObjects(Integer val)
Set objects.
|
void |
setOutlineCode1(String value)
Sets the value of an outline code field.
|
void |
setOutlineCode10(String value)
Sets the value of an outline code field.
|
void |
setOutlineCode2(String value)
Sets the value of an outline code field.
|
void |
setOutlineCode3(String value)
Sets the value of an outline code field.
|
void |
setOutlineCode4(String value)
Sets the value of an outline code field.
|
void |
setOutlineCode5(String value)
Sets the value of an outline code field.
|
void |
setOutlineCode6(String value)
Sets the value of an outline code field.
|
void |
setOutlineCode7(String value)
Sets the value of an outline code field.
|
void |
setOutlineCode8(String value)
Sets the value of an outline code field.
|
void |
setOutlineCode9(String value)
Sets the value of an outline code field.
|
void |
setOverAllocated(boolean overallocated)
Set the overallocated flag.
|
void |
setOvertimeCost(Number currency)
Set the value of the overtime cost field.
|
void |
setOvertimeRate(Rate overtimeRate)
Sets the overtime rate for this resource.
|
void |
setOvertimeRateUnits(TimeUnit units)
Sets the format of the overtime rate.
|
void |
setOvertimeWork(Duration overtimeWork)
Sets the amount of overtime work.
|
void |
setPeakUnits(Number peakUnits)
Sets peak resource utilisation.
|
void |
setPercentWorkComplete(Number percentWorkComplete)
Sets the value of the percent work complete field.
|
void |
setPhonetics(String phonetics)
Sets phonetic information for the Japanese version of MS Project.
|
void |
setRegularWork(Duration duration)
Set the value of the regular work field.
|
void |
setRemainingCost(Number remainingCost)
Sets the remaining cost for this resource.
|
void |
setRemainingOvertimeCost(Number remainingOvertimeCost)
Set the remaining overtime cost.
|
void |
setRemainingOvertimeWork(Duration duration)
Sets the value of the remaining overtime work field.
|
void |
setRemainingWork(Duration val)
This field is ignored on import into MS Project.
|
void |
setResourceCalendar(ProjectCalendar calendar)
This method allows a pre-existing resource calendar to be attached to a
resource.
|
void |
setStandardRate(Rate val)
Sets standard rate for this resource.
|
void |
setStandardRateUnits(TimeUnit units)
Sets the format of the standard rate.
|
void |
setStart(int index,
Date value)
Set a start value.
|
void |
setSubprojectResourceUniqueID(Integer subprojectUniqueResourceID)
Sets the sub project unique resource ID.
|
void |
setSV(Number sv)
Set the schedule variance.
|
void |
setText(int index,
String value)
Set a text value.
|
void |
setType(ResourceType type)
Set the resource type.
|
void |
setUniqueID(Integer val)
Sets Unique ID of this resource.
|
void |
setWork(Duration val)
This field is ignored on import into MS Project.
|
void |
setWorkGroup(WorkGroup workGroup)
Set the messaging method used to communicate with a project team.
|
void |
setWorkVariance(Duration workVariance)
Sets the work variance.
|
String |
toString() |
public void setName(String val)
val - valuepublic String getName()
public void setType(ResourceType type)
type - resource typepublic ResourceType getType()
public void setIsNull(boolean isNull)
isNull - null resource flagpublic boolean getNull()
public void setInitials(String val)
val - valuepublic String getInitials()
public void setPhonetics(String phonetics)
phonetics - Japanese phonetic informationpublic String getPhonetics()
public void setNtAccount(String ntAccount)
ntAccount - windows account namepublic String getNtAccount()
public void setMaterialLabel(String materialLabel)
materialLabel - material resource units labelpublic String getMaterialLabel()
public void setCode(String val)
val - valuepublic String getCode()
public void setGroup(String val)
val - valuepublic String getGroup()
public void setWorkGroup(WorkGroup workGroup)
workGroup - messaging methodpublic WorkGroup getWorkGroup()
public void setEmailAddress(String emailAddress)
emailAddress - email addresspublic String getEmailAddress()
public void setHyperlink(String hyperlink)
hyperlink - hyperlink textpublic String getHyperlink()
public void setHyperlinkAddress(String hyperlinkAddress)
hyperlinkAddress - hyperlink addresspublic String getHyperlinkAddress()
public void setHyperlinkSubAddress(String hyperlinkSubAddress)
hyperlinkSubAddress - hyperlink sub-addresspublic String getHyperlinkSubAddress()
public void setMaxUnits(Number maxUnits)
maxUnits - maximum availabilitypublic Number getMaxUnits()
public void setPeakUnits(Number peakUnits)
peakUnits - peak resource utilisationpublic Number getPeakUnits()
public void setOverAllocated(boolean overallocated)
overallocated - overallocated flagpublic boolean getOverAllocated()
public Date getAvailableFrom()
public void setAvailableFrom(Date date)
date - available from datepublic Date getAvailableTo()
public void setAvailableTo(Date date)
date - available to datepublic Date getStart()
public Date getFinish()
public void setCanLevel(boolean canLevel)
canLevel - boolean flagpublic boolean getCanLevel()
public void setAccrueAt(AccrueType type)
type - accrue typepublic AccrueType getAccrueAt()
public void setWork(Duration val)
val - - value to be setpublic Duration getWork()
public Duration getRegularWork()
public void setRegularWork(Duration duration)
duration - Regular work valuepublic void setActualWork(Duration val)
val - duration valuepublic Duration getActualWork()
public void setOvertimeWork(Duration overtimeWork)
overtimeWork - overtime workpublic Duration getOvertimeWork()
public void setRemainingWork(Duration val)
val - - value to be setpublic Duration getRemainingWork()
public Duration getActualOvertimeWork()
public void setActualOvertimeWork(Duration duration)
duration - actual overtime work valuepublic Duration getRemainingOvertimeWork()
public void setRemainingOvertimeWork(Duration duration)
duration - remaining overtime work valuepublic void setPercentWorkComplete(Number percentWorkComplete)
percentWorkComplete - percent work completepublic Number getPercentWorkComplete()
public void setStandardRate(Rate val)
val - valuepublic Rate getStandardRate()
public void setStandardRateUnits(TimeUnit units)
units - standard rate formatpublic TimeUnit getStandardRateUnits()
public void setCost(Number cost)
cost - cost field valuepublic Number getCost()
public void setOvertimeRate(Rate overtimeRate)
overtimeRate - overtime rate valuepublic Rate getOvertimeRate()
public void setOvertimeRateUnits(TimeUnit units)
units - overtime rate formatpublic TimeUnit getOvertimeRateUnits()
public Number getOvertimeCost()
public void setOvertimeCost(Number currency)
currency - Overtime costpublic void setCostPerUse(Number costPerUse)
costPerUse - cost per usepublic Number getCostPerUse()
public void setActualCost(Number actualCost)
actualCost - actual costpublic Number getActualCost()
public Number getActualOvertimeCost()
public void setActualOvertimeCost(Number actualOvertimeCost)
actualOvertimeCost - actual overtime costpublic void setRemainingCost(Number remainingCost)
remainingCost - remaining costpublic Number getRemainingCost()
public Number getRemainingOvertimeCost()
public void setRemainingOvertimeCost(Number remainingOvertimeCost)
remainingOvertimeCost - remaining overtime costpublic void setWorkVariance(Duration workVariance)
workVariance - work variancepublic Duration getWorkVariance()
public void setCostVariance(Number costVariance)
costVariance - cost variancepublic Number getCostVariance()
public void setSV(Number sv)
sv - schedule variancepublic Number getSV()
public void setCV(Number cv)
cv - cost variancepublic Number getCV()
public void setACWP(Number acwp)
acwp - actual cost of work performedpublic Number getACWP()
public void setNotes(String notes)
notes - notes to be addedpublic String getNotes()
public void setBCWS(Number bcws)
bcws - budgeted cost of work scheduledpublic Number getBCWS()
public void setBCWP(Number bcwp)
bcwp - budgeted cost of work performedpublic Number getBCWP()
public void setIsGeneric(boolean isGeneric)
isGeneric - generic flagpublic boolean getGeneric()
public void setIsInactive(boolean isInactive)
isInactive - inactive flagpublic boolean getInactive()
public void setActveDirectoryGUID(String guid)
guid - active directory GUIDpublic String getActiveDirectoryGUID()
public void setActualOvertimeWorkProtected(Duration duration)
duration - actual overtime work protectedpublic Duration getActualOvertimeWorkProtected()
public void setActualWorkProtected(Duration duration)
duration - actual work protectedpublic Duration getActualWorkProtected()
public void setBookingType(BookingType bookingType)
bookingType - booking typepublic BookingType getBookingType()
public void setCreationDate(Date creationDate)
creationDate - creation datepublic Date getCreationDate()
public void setIsEnterprise(boolean enterprise)
enterprise - boolean flagpublic boolean getEnterprise()
public ProjectCalendar getResourceCalendar()
public void setResourceCalendar(ProjectCalendar calendar)
calendar - resource calendarpublic ProjectCalendar addResourceCalendar() throws MPXJException
MPXJException - if more than one calendar is addedpublic void setBaseCalendar(String val)
val - calendar namepublic void setBaselineCost(Number val)
val - - value to be setpublic void setBaselineWork(Duration val)
val - - value to be setpublic void setID(Integer val)
val - valuepublic void setLinkedFields(String val)
val - - value to be setpublic void setObjects(Integer val)
val - - value to be setpublic void setText(int index,
String value)
index - text index (1-30)value - text valuepublic String getText(int index)
index - text index (1-30)public void setUniqueID(Integer val)
val - Unique IDpublic String getBaseCalendar()
public Number getBaselineCost()
public Duration getBaselineWork()
public Integer getID()
public String getLinkedFields()
public Integer getObjects()
public Integer getUniqueID()
public void setStart(int index,
Date value)
index - start index (1-10)value - start valuepublic Date getStart(int index)
index - start index (1-10)public void setFinish(int index,
Date value)
index - finish index (1-10)value - finish valuepublic Date getFinish(int index)
index - finish index (1-10)public void setNumber(int index,
Number value)
index - number index (1-20)value - number valuepublic Number getNumber(int index)
index - number index (1-20)public void setDuration(int index,
Duration value)
index - duration index (1-10)value - duration valuepublic Duration getDuration(int index)
index - duration index (1-10)public void setDate(int index,
Date value)
index - date index (1-10)value - date valuepublic Date getDate(int index)
index - date index (1-10)public void setCost(int index,
Number value)
index - cost index (1-10)value - cost valuepublic Number getCost(int index)
index - cost index (1-10)public void setFlag(int index,
boolean value)
index - flag index (1-20)value - flag valuepublic boolean getFlag(int index)
index - flag index (1-20)public void setOutlineCode1(String value)
value - outline code valuepublic String getOutlineCode1()
public void setOutlineCode2(String value)
value - outline code valuepublic String getOutlineCode2()
public void setOutlineCode3(String value)
value - outline code valuepublic String getOutlineCode3()
public void setOutlineCode4(String value)
value - outline code valuepublic String getOutlineCode4()
public void setOutlineCode5(String value)
value - outline code valuepublic String getOutlineCode5()
public void setOutlineCode6(String value)
value - outline code valuepublic String getOutlineCode6()
public void setOutlineCode7(String value)
value - outline code valuepublic String getOutlineCode7()
public void setOutlineCode8(String value)
value - outline code valuepublic String getOutlineCode8()
public void setOutlineCode9(String value)
value - outline code valuepublic String getOutlineCode9()
public void setOutlineCode10(String value)
value - outline code valuepublic String getOutlineCode10()
public void remove()
public Object getFieldByAlias(String alias)
alias - field aliaspublic void setFieldByAlias(String alias, Object value)
alias - field aliasvalue - field valuepublic void addResourceAssignment(ResourceAssignment assignment)
assignment - resource assignment instancepublic List<ResourceAssignment> getTaskAssignments()
public Integer getSubprojectResourceUniqueID()
public void setSubprojectResourceUniqueID(Integer subprojectUniqueResourceID)
subprojectUniqueResourceID - subproject unique resource IDpublic Number getEnterpriseCost(int index)
index - field indexpublic void setEnterpriseCost(int index,
Number value)
index - field indexvalue - field valuepublic Date getEnterpriseDate(int index)
index - field indexpublic void setEnterpriseDate(int index,
Date value)
index - field indexvalue - field valuepublic Duration getEnterpriseDuration(int index)
index - field indexpublic void setEnterpriseDuration(int index,
Duration value)
index - field indexvalue - field valuepublic boolean getEnterpriseFlag(int index)
index - field indexpublic void setEnterpriseFlag(int index,
boolean value)
index - field indexvalue - field valuepublic Number getEnterpriseNumber(int index)
index - field indexpublic void setEnterpriseNumber(int index,
Number value)
index - field indexvalue - field valuepublic String getEnterpriseText(int index)
index - field indexpublic void setEnterpriseText(int index,
String value)
index - field indexvalue - field valuepublic String getEnterpriseCustomField(int index)
index - field indexpublic void setEnterpriseCustomField(int index,
String value)
index - field indexvalue - field valuepublic void setBaselineCost(int baselineNumber,
Number value)
baselineNumber - baseline index (1-10)value - baseline valuepublic void setBaselineWork(int baselineNumber,
Duration value)
baselineNumber - baseline index (1-10)value - baseline valuepublic Number getBaselineCost(int baselineNumber)
baselineNumber - baseline index (1-10)public Duration getBaselineWork(int baselineNumber)
baselineNumber - baseline index (1-10)public boolean getBudget()
public void setBudget(boolean budget)
budget - budget flagpublic UUID getGUID()
public void setGUID(UUID value)
value - resource GUIDpublic void setCostRateTable(int index,
CostRateTable crt)
index - table indexcrt - table instancepublic CostRateTable getCostRateTable(int index)
index - table indexpublic AvailabilityTable getAvailability()
public Object getCachedValue(FieldType field)
getCachedValue in interface FieldContainerfield - field identifierpublic Object getCurrentValue(FieldType field)
getCurrentValue in interface FieldContainerfield - field identifierpublic void set(FieldType field, Object value)
set in interface FieldContainerfield - field identifiervalue - field valuepublic void addFieldListener(FieldListener listener)
addFieldListener in interface FieldContainerlistener - target listenerpublic void removeFieldListener(FieldListener listener)
removeFieldListener in interface FieldContainerlistener - target listenerpublic void disableEvents()
public void enableEvents()
public int compareTo(Resource o)
compareTo in interface Comparable<Resource>o - object to compare this instance withpublic final ProjectFile getParentFile()
Copyright © 2013. All Rights Reserved.