Class 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 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()