Package step.plans.nl.parser
Class PlanParser
- java.lang.Object
-
- step.plans.nl.parser.PlanParser
-
public class PlanParser extends Object
A parser for plans in plain-text format
-
-
Field Summary
Fields Modifier and Type Field Description protected ch.exense.commons.app.Configurationconfigurationprotected booleanwrapInTestcase
-
Constructor Summary
Constructors Constructor Description PlanParser()PlanParser(ch.exense.commons.app.Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisWrapInTestcase()step.core.plans.Planparse(InputStream inputStream)Parses aPlanin plain-text format from a streamprotected step.core.plans.Planparse(Reader contentReader)step.core.plans.Planparse(String content)Parses aPlanin plain-text formatvoidsetWrapInTestcase(boolean wrapInTestcase)
-
-
-
Method Detail
-
isWrapInTestcase
public boolean isWrapInTestcase()
-
setWrapInTestcase
public void setWrapInTestcase(boolean wrapInTestcase)
-
parse
public step.core.plans.Plan parse(String content) throws StepsParser.ParsingException
Parses aPlanin plain-text format- Parameters:
content- the plan in plain-text- Returns:
- the parsed
Plan - Throws:
StepsParser.ParsingException- if a parsing error occurs
-
parse
public step.core.plans.Plan parse(InputStream inputStream) throws StepsParser.ParsingException
Parses aPlanin plain-text format from a stream- Parameters:
inputStream- theInputStreamto be read- Returns:
- the parsed
Plan - Throws:
StepsParser.ParsingException- if a parsing error occurs
-
parse
protected step.core.plans.Plan parse(Reader contentReader) throws StepsParser.ParsingException
- Throws:
StepsParser.ParsingException
-
-