Package org.jbehave.core.parsers
Class TransformingStoryParser
- java.lang.Object
-
- org.jbehave.core.parsers.TransformingStoryParser
-
- All Implemented Interfaces:
StoryParser
public class TransformingStoryParser extends Object implements StoryParser
-
-
Constructor Summary
Constructors Constructor Description TransformingStoryParser(StoryParser delegate, StoryTransformer... transformers)
-
Method Summary
Modifier and Type Method Description StoryparseStory(String storyAsText)Parses story from its textual representationStoryparseStory(String storyAsText, String storyPath)Parses story from its textual representation and (optional) story path
-
-
-
Constructor Detail
-
TransformingStoryParser
public TransformingStoryParser(StoryParser delegate, StoryTransformer... transformers)
-
-
Method Detail
-
parseStory
public Story parseStory(String storyAsText)
Description copied from interface:StoryParserParses story from its textual representation- Specified by:
parseStoryin interfaceStoryParser- Parameters:
storyAsText- the textual representation- Returns:
- The Story
-
parseStory
public Story parseStory(String storyAsText, String storyPath)
Description copied from interface:StoryParserParses story from its textual representation and (optional) story path- Specified by:
parseStoryin interfaceStoryParser- Parameters:
storyAsText- the textual representationstoryPath- the story path, may benull- Returns:
- The Story
-
-