Package step.plans.nl.parser
Class PlanParser
java.lang.Object
step.plans.nl.parser.PlanParser
A parser for plans in plain-text format
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparse
(InputStream inputStream, RootArtefactType rootType) Parses aPlan
in plain text format from a streamprotected Plan
parse
(Reader contentReader, RootArtefactType rootType) parse
(String content, RootArtefactType rootType) Parses aPlan
in plain text formatparseCompositePlanFromPlanReference
(Method m, String planReference)
-
Field Details
-
configuration
protected ch.exense.commons.app.Configuration configuration
-
-
Constructor Details
-
PlanParser
public PlanParser() -
PlanParser
public PlanParser(ch.exense.commons.app.Configuration configuration)
-
-
Method Details
-
parse
Parses aPlan
in plain text format- Parameters:
content
- the plan in plain textrootType
- the type of the root artefact to use. May be null if wrapping is unwanted.- Returns:
- the parsed
Plan
- Throws:
StepsParser.ParsingException
- if a parsing error occurs
-
parse
public Plan parse(InputStream inputStream, RootArtefactType rootType) throws StepsParser.ParsingException Parses aPlan
in plain text format from a stream- Parameters:
inputStream
- theInputStream
to be readrootType
- the type of the root artefact to use. May be null if wrapping is unwanted.- Returns:
- the parsed
Plan
- Throws:
StepsParser.ParsingException
- if a parsing error occurs
-
parse
protected Plan parse(Reader contentReader, RootArtefactType rootType) throws StepsParser.ParsingException - Throws:
StepsParser.ParsingException
-
parseCompositePlanFromPlanReference
- Throws:
Exception
-