Class SimpleSpmFormat

  • All Implemented Interfaces:
    SpmFormat

    public class SimpleSpmFormat
    extends java.lang.Object
    implements SpmFormat
    SPM-File format with simple # / * notation.
    Author:
    alexxismachine (Ulrich David)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void parseLines​(Task rootTask, java.util.List<java.lang.String> lines)
      Parse the lines into the given root task.
      Task parseLines​(java.util.List<java.lang.String> lines)
      Parse the lines into a new root task.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleSpmFormat

        public SimpleSpmFormat​(TaskState status)
        Create an instance.
        Parameters:
        status - the status to assign to leafs.
    • Method Detail

      • parseLines

        public Task parseLines​(java.util.List<java.lang.String> lines)
        Description copied from interface: SpmFormat
        Parse the lines into a new root task.
        Specified by:
        parseLines in interface SpmFormat
        Parameters:
        lines - the lines to parse
        Returns:
        the root task containing the converted lines.
      • parseLines

        public void parseLines​(Task rootTask,
                               java.util.List<java.lang.String> lines)
        Description copied from interface: SpmFormat
        Parse the lines into the given root task.
        Specified by:
        parseLines in interface SpmFormat
        Parameters:
        rootTask - the root task to add the lines to.
        lines - the lines to parse.