Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jbehave.core.io
Class StoryLocation

    java.lang.Object
      org.jbehave.core.io.StoryLocation

    public class StoryLocation

extends 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(URL codeLocation, String storyPath)`

Method Summary
`URL` | `getCodeLocation()`
`String` | `getPath()`
`String` | `getStoryPath()`
`String` | `getURL()`
`String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### StoryLocation

    public StoryLocation(URL codeLocation,
                         String storyPath)

Method Detail

### getCodeLocation

    public URL getCodeLocation()

### getStoryPath

    public String getStoryPath()

### getURL

    public String getURL()

### getPath

    public String getPath()

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2013. All Rights Reserved.