com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class TaskLink



  • public class TaskLink
    extends Object

    Represents a predecessor link.

    • Method Detail

      • isCrossProject

        public boolean isCrossProject()

        Returns a flag which determines whether a predecessor is part of another project. Read/write bool.

        Returns:
        Returns a flag which determines whether a predecessor is part of another project.
      • setCrossProject

        public void setCrossProject(boolean value)
        Sets a flag which determines whether a predecessor is part of another project.
        Parameters:
        value - a flag which determines whether a predecessor is part of another project.
      • getCrossProjectName

        public String getCrossProjectName()

        The external predecessor project. Read/write string.

        Returns:
        the external predecessor project name.
      • setCrossProjectName

        public void setCrossProjectName(String value)
        Sets the external predecessor project name.
        Parameters:
        value - the external predecessor project name.
      • getLinkLag

        public int getLinkLag()

        The amount of lag in tenths of a minute. Read/write int.

        Returns:
        the amount of lag.
      • setLinkLag

        public void setLinkLag(int value)
        Sets the amount of lag in tenths of a minute.
        Parameters:
        value - the amount of lag.
      • getLagFormat

        public int getLagFormat()

        The format for expressing the lag format. Read/write TimeUnitType.

        Returns:
        the time unit type (TimeUnitType).
      • setLagFormat

        public void setLagFormat(int value)
        Sets the format for expressing the lag format.
        Parameters:
        value - the time unit type (TimeUnitType).
      • getPredTask

        public Task getPredTask()

        The predecessor task. Read/write Task.

        Returns:
        the predecessor task (Task).
      • setPredTask

        public void setPredTask(Task value)
        Sets the predecessor task.
        Parameters:
        value - the predecessor task (Task).
      • getSuccTask

        public Task getSuccTask()

        The successor task. Read/write Task.

        Returns:
        the successor task (Task).
      • setSuccTask

        public void setSuccTask(Task value)
        Sets the successor task.
        Parameters:
        value - the successor task (Task).
      • getLinkType

        public int getLinkType()

        Returns the type of a link. Read/write TaskLinkType.

        Returns:
        returns the type of the link.
      • setLinkType

        public void setLinkType(int value)
        Sets the type of this link. Can be one of the TaskLinkType values.
        Parameters:
        value - the type of the link.
      • hashCode

        public int hashCode()
        Returns a hash code for this TaskLink.
        Overrides:
        hashCode in class Object
        Returns:
        Returns a hash code value for this object.
      • equals

        public boolean equals(TaskLink other)

        Returns a value indicating whether this instance is equal to the specified task link.

        Parameters:
        other - the specified TaskLink instance to compare with this object.
        Returns:
        <b>True</b> if the specified link has the same predecessor and successor as this instance; otherwise, <b>false</b>.
      • toString

        public String toString()

        Returns string representation of a TaskLink. The exact details of the representation are unspecified and subject to change.

        Overrides:
        toString in class Object
        Returns:
        string which represents TaskLink object.
      • equals

        public boolean equals(Object obj)

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

        Overrides:
        equals in class Object
        Parameters:
        obj - The object to compare with this instance.
        Returns:
        <b>True</b> if the specified object is a TaskLink that has the same predecessor and successor as this instance; otherwise, <b>false</b>.