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 Story
parseStory(String storyAsText)
Parses story from its textual representationStory
parseStory(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:StoryParser
Parses story from its textual representation- Specified by:
parseStory
in interfaceStoryParser
- Parameters:
storyAsText
- the textual representation- Returns:
- The Story
-
parseStory
public Story parseStory(String storyAsText, String storyPath)
Description copied from interface:StoryParser
Parses story from its textual representation and (optional) story path- Specified by:
parseStory
in interfaceStoryParser
- Parameters:
storyAsText
- the textual representationstoryPath
- the story path, may benull
- Returns:
- The Story
-
-