|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mayo.bsi.ngsportal.shared.FileLocation
public class FileLocation
Class that holds all the information about a file location in one of the location archives
@author Gregory Dougherty
| Constructor Summary | |
|---|---|
FileLocation(String name,
String description,
String pathTemplate,
String linkTemplate)
Normal Constructor |
|
| Method Summary | |
|---|---|
String |
getDescription(String filePath)
Get a human readable description of where the given file is, or null if it's not in the FileLocation's path |
String |
getLink(String filePath)
Get the http or ftp link to access the specified file |
String |
getName()
|
String |
getPathTemplate()
Get the path template for this file location |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileLocation(String name,
String description,
String pathTemplate,
String linkTemplate)
name - Name of the File Locationdescription - Description of the File LocationpathTemplate - The path template used by this file locationlinkTemplate - The text to replace the "/.+/delivery/" with. If the template doesn't end
with "/", then paths will be made HTML safe| Method Detail |
|---|
public final String getName()
public final String getPathTemplate()
public String getLink(String filePath)
filePath - The path to turn into a link
public String getDescription(String filePath)
filePath - The file we're interested in
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||