Class Resource
- java.lang.Object
-
- com.aspose.tasks.Resource
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()Deletes a resource and its assignments from project.booleanequals(Resource other)Returns a value indicating whether this instance is equal to a specified instance of theResourceclass.booleanequals(Object obj)Returns a value indicating whether this instance is equal to a specified object.<T> Tget(Key<T,Integer> key)Returns the value to which the property is mapped in this container.ResourceAssignmentCollectiongetAssignments()Gets a collection of resource assignments for this object.AvailabilityPeriodCollectiongetAvailabilityPeriods()Gets a the instance of theAvailabilityPeriodCollectionclass.BaselineCollectiongetBaselines()Gets a BaselineCollection instance for this object.ExtendedAttributeCollectiongetExtendedAttributes()Gets the values of an extended attribute.com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.tasks.IExtendedAttributeParent>getItems()Gets child resources.OutlineCodeCollectiongetOutlineCode()Gets an OutlineCodeCollection object.ProjectgetParentProject()Gets parent project for this container.RateCollectiongetRates()Gets a the instance of theRateCollectionclass for this object.TimephasedDataCollectiongetTimephasedData()Gets an instance ofTimephasedDataCollectionclass for this object.TimephasedDataCollectiongetTimephasedData(Date start, Date end)ReturnsTimephasedDataCollectionfor this object withTimephasedData(getTimephasedData()/setTimephasedData(TimephasedDataCollection))values within given start and end dates.TimephasedDataCollectiongetTimephasedData(Date start, Date end, int timephasedType)Returns an instance of theTimephasedDataCollectionclass for this object with theTimephasedData(getTimephasedData()/setTimephasedData(TimephasedDataCollection)) values within given start and end dates of specifiedTimephasedDataType.booleanhasChildren()inthashCode()Returns a hash code value for the instance of theResourceclass.voidset(Key<Date,Integer> key, Date val)Maps the specified property to the specified value in this container.<T> voidset(Key<T,Integer> key, T val)Maps the specified property to the specified value in this container.voidsetTimephasedData(TimephasedDataCollection value)Sets an instance ofTimephasedDataCollectionclass for this object.StringtoString()Returns short string representation of the instance of theResourceclass.
-
-
-
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
Resourceclass.
-
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.Rscfor 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
AvailabilityPeriodCollectionclass. The collection of periods during which a resource is available.- Returns:
- a the instance of the
AvailabilityPeriodCollectionclass.
-
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
RateCollectionclass for this object. The collection of periods and rates associated with each one.- Returns:
- a the instance of the
RateCollectionclass for this object.
-
getTimephasedData
public final TimephasedDataCollection getTimephasedData()
Gets an instance of
TimephasedDataCollectionclass for this object.
Reading supported for XML format only.- Returns:
- an instance of
TimephasedDataCollectionclass for this object.
-
setTimephasedData
public final void setTimephasedData(TimephasedDataCollection value)
Sets an instance of
TimephasedDataCollectionclass for this object.
Reading supported for XML format only.- Parameters:
value- an instance ofTimephasedDataCollectionclass for this object.
-
getTimephasedData
public final TimephasedDataCollection getTimephasedData(Date start, Date end, int timephasedType)
Returns an instance of the
TimephasedDataCollectionclass 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
TimephasedDataCollectionfor 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
Resourceclass.
-
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.Rscfor 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.Rscfor getting the property key.val- the value.
-
-