Class Resource
- java.lang.Object
-
- com.aspose.tasks.Resource
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
Deletes a resource and its assignments from project.boolean
equals(Resource other)
Returns a value indicating whether this instance is equal to a specified instance of theResource
class.boolean
equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.<T> T
get(Key<T,Integer> key)
Returns the value to which the property is mapped in this container.ResourceAssignmentCollection
getAssignments()
Gets a collection of resource assignments for this object.AvailabilityPeriodCollection
getAvailabilityPeriods()
Gets a the instance of theAvailabilityPeriodCollection
class.BaselineCollection
getBaselines()
Gets a BaselineCollection instance for this object.ExtendedAttributeCollection
getExtendedAttributes()
Gets the values of an extended attribute.com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.tasks.IExtendedAttributeParent>
getItems()
Gets child resources.OutlineCodeCollection
getOutlineCode()
Gets an OutlineCodeCollection object.Project
getParentProject()
Gets parent project for this container.RateCollection
getRates()
Gets a the instance of theRateCollection
class for this object.TimephasedDataCollection
getTimephasedData()
Gets an instance ofTimephasedDataCollection
class for this object.TimephasedDataCollection
getTimephasedData(Date start, Date end)
ReturnsTimephasedDataCollection
for this object withTimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
)values within given start and end dates.TimephasedDataCollection
getTimephasedData(Date start, Date end, int timephasedType)
Returns an instance of theTimephasedDataCollection
class for this object with theTimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
) values within given start and end dates of specifiedTimephasedDataType
.boolean
hasChildren()
int
hashCode()
Returns a hash code value for the instance of theResource
class.boolean
isRoot()
Gets the flag indicating whether resource is a root resource.void
set(Key<Date,Integer> key, Date val)
Maps the specified property to the specified value in this container.<T> void
set(Key<T,Integer> key, T val)
Maps the specified property to the specified value in this container.void
setTimephasedData(TimephasedDataCollection value)
Sets an instance ofTimephasedDataCollection
class for this object.String
toString()
Returns short string representation of the instance of theResource
class.
-
-
-
Method Detail
-
delete
public final void delete()
Deletes a resource and its assignments from project.
-
equals
public final boolean equals(Resource other)
Returns a value indicating whether this instance is equal to a specified instance of the
Resource
class.
-
equals
public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
-
get
public final <T> T get(Key<T,Integer> key)
Returns the value to which the property is mapped in this container.
- Parameters:
key
- the specified property key.Rsc
for getting the property key.T
: the type of the mapped value.- Returns:
- the value to which the property is mapped in this container.
-
getAssignments
public final ResourceAssignmentCollection getAssignments()
Gets a collection of resource assignments for this object.
- Returns:
- 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:
- a the instance of the
AvailabilityPeriodCollection
class.
-
getBaselines
public final BaselineCollection getBaselines()
Gets a BaselineCollection instance for this object. The baseline values for a resource.
- Returns:
- a BaselineCollection instance for this object.
-
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:
- the values of an extended attribute.
-
getItems
public final com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.tasks.IExtendedAttributeParent> getItems()
Gets child resources.- Returns:
- child resources.
-
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:
- an OutlineCodeCollection object.
-
getParentProject
public final Project getParentProject()
Gets parent project for this container.
- Returns:
- parent project for this container.
-
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:
- a the instance of the
RateCollection
class for this object.
-
getTimephasedData
public final TimephasedDataCollection getTimephasedData()
Gets an instance of
TimephasedDataCollection
class for this object.
Reading supported for XML format only.- Returns:
- an instance of
TimephasedDataCollection
class for this object.
-
setTimephasedData
public final void setTimephasedData(TimephasedDataCollection value)
Sets an instance of
TimephasedDataCollection
class for this object.
Reading supported for XML format only.- Parameters:
value
- an instance ofTimephasedDataCollection
class for this object.
-
getTimephasedData
public final TimephasedDataCollection getTimephasedData(Date start, Date end, int timephasedType)
Returns an instance of the
TimephasedDataCollection
class for this object with theTimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
) values within given start and end dates of specifiedTimephasedDataType
.- Parameters:
start
- The start date for the time phased data.end
- The end date for the time phased data.timephasedType
- The type of time phased data (TimephasedDataType
).- Returns:
- List of
TimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
).
-
getTimephasedData
public final TimephasedDataCollection getTimephasedData(Date start, Date end)
Returns
TimephasedDataCollection
for this object withTimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
)values within given start and end dates.- Parameters:
start
- The start date for the timephased data.end
- The end date for the timephased data.- Returns:
- List of
TimephasedData
.
-
hasChildren
public final boolean hasChildren()
- Returns:
-
hashCode
public int hashCode()
Returns a hash code value for the instance of the
Resource
class.
-
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:
- the flag indicating whether resource is a root resource.
-
set
public <T> void set(Key<T,Integer> key, T val)
Maps the specified property to the specified value in this container.
- Type Parameters:
T
- the type of the mapped value.- Parameters:
key
- the specified property key.Rsc
for getting the property key.val
- the value.
-
set
public final void set(Key<Date,Integer> key, Date val)
Maps the specified property to the specified value in this container.
- Parameters:
key
- the specified property key.Rsc
for getting the property key.val
- the value.
-
-