public class LoadFromRelativeFile extends Object implements ResourceLoader, StoryLoader
mavenModuleStoryFilePath(java.lang.String)
,
mavenModuleTestStoryFilePath(java.lang.String)
intellijProjectStoryFilePath(java.lang.String)
intellijProjectTestStoryFilePath(java.lang.String)
CodeLocations#codeLocationFromClass(Class)}
Modifier and Type | Class and Description |
---|---|
static class |
LoadFromRelativeFile.StoryFilePath
For use the the varargs constructor of
LoadFromRelativeFile , to
allow a range of possibilities for locating Story file paths |
Constructor and Description |
---|
LoadFromRelativeFile(URL location) |
LoadFromRelativeFile(URL location,
LoadFromRelativeFile.StoryFilePath... traversals) |
Modifier and Type | Method and Description |
---|---|
static LoadFromRelativeFile.StoryFilePath |
intellijProjectStoryFilePath(String relativePath)
Intellij by default, has its PRODUCTION classes in classes/production.
|
static LoadFromRelativeFile.StoryFilePath |
intellijProjectTestStoryFilePath(String relativePath)
Intellij by default, has its TEST classes in classes/test.
|
protected String |
loadContent(String path) |
String |
loadResourceAsText(String resourcePath) |
String |
loadStoryAsText(String storyPath) |
static LoadFromRelativeFile.StoryFilePath |
mavenModuleStoryFilePath(String relativePath)
Maven by default, has its PRODUCTION classes in target/classes.
|
static LoadFromRelativeFile.StoryFilePath |
mavenModuleTestStoryFilePath(String relativePath)
Maven by default, has its TEST classes in target/test-classes.
|
public LoadFromRelativeFile(URL location)
public LoadFromRelativeFile(URL location, LoadFromRelativeFile.StoryFilePath... traversals)
public String loadResourceAsText(String resourcePath)
loadResourceAsText
in interface ResourceLoader
public String loadStoryAsText(String storyPath)
loadStoryAsText
in interface StoryLoader
public static LoadFromRelativeFile.StoryFilePath mavenModuleStoryFilePath(String relativePath)
relativePath
- the path to the stories' base-dir inside the modulepublic static LoadFromRelativeFile.StoryFilePath mavenModuleTestStoryFilePath(String relativePath)
relativePath
- the path to the stories' base-dir inside the modulepublic static LoadFromRelativeFile.StoryFilePath intellijProjectStoryFilePath(String relativePath)
relativePath
- the path to the stories' base-dir inside the modulepublic static LoadFromRelativeFile.StoryFilePath intellijProjectTestStoryFilePath(String relativePath)
relativePath
- the path to the stories' base-dir inside the moduleCopyright © 2003–2016. All rights reserved.