org.jbehave.core.io
Class StoryLocation

java.lang.Object
  extended by 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:


Constructor Summary
StoryLocation(java.net.URL codeLocation, java.lang.String storyPath)
           
 
Method Summary
 java.net.URL getCodeLocation()
           
 java.lang.String getLocation()
           
 java.lang.String getName()
           
 java.lang.String getPath()
           
 boolean isURL()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StoryLocation

public StoryLocation(java.net.URL codeLocation,
                     java.lang.String storyPath)
Method Detail

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.