com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class Resource

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<Resource>


    public class Resource
    extends Object
    implements com.aspose.ms.System.IEquatable<Resource>

    Represents a resource in a project.

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

        Parameters:
        other - The specified instance of the Resource class to compare with this instance.
        Returns:
        <b>True</b> if the specified instance of the Resource class has the same Uid value as this instance; otherwise, <b>false</b>.
      • equals

        public boolean equals(Object obj)

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

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<Resource>
        Overrides:
        equals in class Object
        Parameters:
        obj - The object to compare with this instance.
        Returns:
        <b>True</b> if the specified object is a Resource that has the same Uid value as this instance; otherwise, <b>false</b>.
      • 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.
      • getBaselines

        public final BaselineCollection getBaselines()

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

        Returns:
        a BaselineCollection instance for this object.
      • getChildren_IExtendedAttributeParent

        public final com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.tasks.IExtendedAttributeParent> getChildren_IExtendedAttributeParent()
        Gets child resources.
        Returns:
        child resources.
      • getExtendedAttributes

        public final ExtendedAttributeCollection getExtendedAttributes()

        Gets the values of an extended attribute. Read only ExtendedAttributeCollection instance.


        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.
      • getOutlineCode

        public final OutlineCodeCollection getOutlineCode()

        Gets an OutlineCodeCollection object. The value of an outline code. Read only OutlineCodeCollection instance.


        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:
        Project instance.
      • 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. Read-only RateCollection instance.

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

        public final boolean hasChildren()
        Gets a value indicating that this resource has children.
        Returns:
        Always false.
      • hashCode

        public int hashCode()

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

        Overrides:
        hashCode in class Object
        Returns:
        returns a hash code value for this object.
      • 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.
      • set

        public final <T> void set(Class<T> typeOfT,
                                  Key<T,Integer> key,
                                  T val)
      • 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.

        Overrides:
        toString in class Object
        Returns:
        short string which represents resource object.