Package de.japrost.staproma.spm
Class SimpleSpmFormat
- java.lang.Object
-
- de.japrost.staproma.spm.SimpleSpmFormat
-
-
Constructor Summary
Constructors Constructor Description SimpleSpmFormat(TaskState status)
Create an instance.
-
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.
-
-
-
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 interfaceSpmFormat
- 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 interfaceSpmFormat
- Parameters:
rootTask
- the root task to add the lines to.lines
- the lines to parse.
-
-