org.jbehave.core.io
Class CodeLocations
java.lang.Object
org.jbehave.core.io.CodeLocations
public class CodeLocations
- extends Object
Collection of utility methods to create code location URLs
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodeLocations
public CodeLocations()
codeLocationFromClass
public static URL codeLocationFromClass(Class<?> codeLocationClass)
- Creates a code location URL from a class
- Parameters:
codeLocationClass
- the class
- Returns:
- A URL created from Class
- Throws:
CodeLocations.InvalidCodeLocation
- if URL creation fails
codeLocationFromPath
public static URL codeLocationFromPath(String filePath)
- Creates a code location URL from a file path
- Parameters:
filePath
- the file path
- Returns:
- A URL created from File
- Throws:
CodeLocations.InvalidCodeLocation
- if URL creation fails
codeLocationFromURL
public static URL codeLocationFromURL(String url)
- Creates a code location URL from a URL
- Parameters:
url
- the URL external form
- Returns:
- A URL created from URL
- Throws:
CodeLocations.InvalidCodeLocation
- if URL creation fails
Copyright © 2003-2011. All Rights Reserved.