public class TransformingStoryParser extends java.lang.Object implements StoryParser
Constructor and Description |
---|
TransformingStoryParser(StoryParser delegate,
StoryTransformer... transformers) |
Modifier and Type | Method and Description |
---|---|
Story |
parseStory(java.lang.String storyAsText)
Parses story from its textual representation
|
Story |
parseStory(java.lang.String storyAsText,
java.lang.String storyPath)
Parses story from its textual representation and (optional) story path
|
public TransformingStoryParser(StoryParser delegate, StoryTransformer... transformers)
public Story parseStory(java.lang.String storyAsText)
StoryParser
parseStory
in interface StoryParser
storyAsText
- the textual representationpublic Story parseStory(java.lang.String storyAsText, java.lang.String storyPath)
StoryParser
parseStory
in interface StoryParser
storyAsText
- the textual representationstoryPath
- the story path, may be null
Copyright © 2003-2014. All Rights Reserved.