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 and a story path, it provides the methods:
getPath()
: the story path
getLocation()
: the story URL, prefixing the code location if story path is not a URL
getName()
: the story path, removing the code location if the 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()
getPath
public java.lang.String getPath()
getLocation
public java.lang.String getLocation()
getName
public java.lang.String getName()
isURL
public boolean isURL()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2003-2010. All Rights Reserved.