project35.util
Class ConfigurationURLUtility
java.lang.Object
project35.util.ConfigurationURLUtility
public class ConfigurationURLUtility
- extends java.lang.Object
utility for creating the URL or full file path of a resource file. Usually resoure
files in Project35 are found in the "resources" folder inside a model folder.
Copyright (c) 2008 Kevin Garwood for Project35. The original code was
developed by Kevin Garwood for the University of Manchester. Revisions
have been made for Project35, a project that is independent of that
institution. This code is licensed under the Academic Free License
version 3.0. The code attribution for the original code is included here:
Copyright (c) Kevin Garwood and University of Manchester 2007.
All rights reserved. Licensed under the Academic Free License
version 3.0. For more information on the terms and conditions,
please see the file "LICENSE" that is included in this distribution.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net),
Method Summary |
java.net.URL |
createHelpLink(Project35FormContext project35FormContext,
java.lang.String fileNameCandidate,
boolean isInternalHelpPage)
|
java.net.URL |
createHelpLink(java.lang.String fileNameCandidate)
|
static java.net.URL |
createHelpLinkForJARFile(java.net.URL helpDirectoryURL,
java.lang.String fileNameCandidate)
|
static java.io.File |
createResourceFile(java.net.URL resourceDirectoryURL,
java.lang.String fileNameCandidate)
|
static java.net.URL |
createResourceURL(java.net.URL resourceDirectoryURL,
java.lang.String fileNameCandidate)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurationURLUtility
public ConfigurationURLUtility()
createHelpLink
public java.net.URL createHelpLink(java.lang.String fileNameCandidate)
createHelpLink
public java.net.URL createHelpLink(Project35FormContext project35FormContext,
java.lang.String fileNameCandidate,
boolean isInternalHelpPage)
createHelpLinkForJARFile
public static java.net.URL createHelpLinkForJARFile(java.net.URL helpDirectoryURL,
java.lang.String fileNameCandidate)
createResourceFile
public static java.io.File createResourceFile(java.net.URL resourceDirectoryURL,
java.lang.String fileNameCandidate)
- Parameters:
resourceDirectoryURL
- describes location of a directory
where resource files can be foundfileNameCandidate
- the name of a file found in the resource directory
- Returns:
- full path of a resource file that uses the name of the file
and a resource directory
createResourceURL
public static java.net.URL createResourceURL(java.net.URL resourceDirectoryURL,
java.lang.String fileNameCandidate)
- Parameters:
resourceDirectoryURL
- describes location of a directory
where resource files can be foundfileNameCandidate
- the name of a file found in the resource directory
- Returns:
- URL of a resource file that uses the name of the file
and a resource directory URL