Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
StoryParser |
|
| 1.0;1 |
1 | package org.jbehave.core.parsers; | |
2 | ||
3 | import org.jbehave.core.model.Story; | |
4 | ||
5 | /** | |
6 | * <p> | |
7 | * Parses the stories contained in a story from a textual representation. | |
8 | * </p> | |
9 | */ | |
10 | public interface StoryParser { | |
11 | ||
12 | /** | |
13 | * Parses story from its textual representation | |
14 | * | |
15 | * @param storyAsText the textual representation | |
16 | * @return The Story | |
17 | */ | |
18 | Story parseStory(String storyAsText); | |
19 | ||
20 | /** | |
21 | * Parses story from its textual representation and (optional) story path | |
22 | * | |
23 | * @param storyAsText the textual representation | |
24 | * @param storyPath the story path, may be <code>null</code> | |
25 | * @return The Story | |
26 | * @since 2.4 | |
27 | */ | |
28 | Story parseStory(String storyAsText, String storyPath); | |
29 | ||
30 | } |