Class TaskInfoDto

java.lang.Object
org.barfuin.gradle.taskinfo.TaskInfoDto
All Implemented Interfaces:
Serializable, Comparable<TaskInfoDto>, org.barfuin.texttree.api.Node

public class TaskInfoDto extends Object implements Comparable<TaskInfoDto>, Serializable, org.barfuin.texttree.api.Node
The information we collect on a task for use by this plugin. The path is the object identity, which is also used for ordering.
See Also:
  • Constructor Details

    • TaskInfoDto

      public TaskInfoDto(String pPath, boolean pFinalizer, boolean pIsTaskNode, boolean pColored)
    • TaskInfoDto

      public TaskInfoDto(String pPath, boolean pFinalizer)
    • TaskInfoDto

      public TaskInfoDto()
      No-args constructor, which is intended only for JSON deserialization, not for use in a normal program.
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String pName)
    • getPath

      @Nonnull public String getPath()
    • setPath

      public void setPath(@Nonnull String pPath)
    • isTaskNode

      public boolean isTaskNode()
    • getColor

      @CheckForNull public org.barfuin.texttree.api.color.NodeColor getColor()
      Specified by:
      getColor in interface org.barfuin.texttree.api.Node
    • isFinalizer

      public boolean isFinalizer()
    • setFinalizer

      public void setFinalizer(boolean pFinalizer)
    • getGroup

      public String getGroup()
    • setGroup

      public void setGroup(String pGroup)
    • getType

      public String getType()
    • setType

      public void setType(String pType)
    • getQueuePosition

      public int getQueuePosition()
    • setQueuePosition

      public void setQueuePosition(int pQueuePosition)
    • getDependencies

      @Nonnull public SortedSet<TaskInfoDto> getDependencies()
    • addDependency

      public void addDependency(TaskInfoDto pNewDependency)
    • equals

      public boolean equals(Object pOther)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(@Nonnull TaskInfoDto pOther)
      Specified by:
      compareTo in interface Comparable<TaskInfoDto>
    • getText

      public String getText()
      Specified by:
      getText in interface org.barfuin.texttree.api.Node
    • getKey

      public String getKey()
      Specified by:
      getKey in interface org.barfuin.texttree.api.Node
    • getAnnotation

      @CheckForNull public String getAnnotation()
      Specified by:
      getAnnotation in interface org.barfuin.texttree.api.Node
    • getChildren

      @Nonnull public SortedSet<TaskInfoDto> getChildren()
      Specified by:
      getChildren in interface org.barfuin.texttree.api.Node