org.jbehave.core.io
Class StoryLocation
java.lang.Object
org.jbehave.core.io.StoryLocation
public class StoryLocation
- extends java.lang.Object
Abstraction of a story location, handling cases in which story path is defined
as a resource in classpath or as a URL.
Given a code location URL and a story path, it provides the methods:
getURL()
: the story location URL, prefixing the code location external form if story path is not a URL
getPath()
: the story location path, removing the code location external form if story path is a URL
Constructor Summary |
StoryLocation(java.net.URL codeLocation,
java.lang.String storyPath)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StoryLocation
public StoryLocation(java.net.URL codeLocation,
java.lang.String storyPath)
getCodeLocation
public java.net.URL getCodeLocation()
getStoryPath
public java.lang.String getStoryPath()
getURL
public java.lang.String getURL()
getPath
public java.lang.String getPath()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2003-2010. All Rights Reserved.