|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.results.Result
de.jstacs.utils.galaxy.GalaxyAdaptor.FileResult
public static class GalaxyAdaptor.FileResult
Result for files that are results of some computation. Also used to link
e.g. PDFs of images to GalaxyAdaptor.LinkedImageResults.
| Field Summary |
|---|
| Fields inherited from class de.jstacs.results.Result |
|---|
comment, datatype, name |
| Constructor Summary | |
|---|---|
GalaxyAdaptor.FileResult(StringBuffer rep)
Creates a new GalaxyAdaptor.FileResult from its XML-representation |
|
GalaxyAdaptor.FileResult(String name,
String comment,
String fullPath)
Creates a new GalaxyAdaptor.FileResult with name, comment, and path to the file. |
|
GalaxyAdaptor.FileResult(String name,
String comment,
String path,
String filename,
String extension)
Creates a new GalaxyAdaptor.FileResult with name, comment, path to the file, filename and extension. |
|
| Method Summary | |
|---|---|
protected void |
fromXML(StringBuffer rep)
This method is used in Result.Result(StringBuffer) to extract the
information. |
String |
getExtension()
Returns the filename extension |
String |
getFilename()
Returns the filename. |
String |
getPath()
Returns the path of the directory containing the file |
File |
getResult()
Returns the value of the Result. |
void |
setExtension(String extension)
Sets the filename extension |
void |
setFilename(String filename)
Sets the file |
void |
setPath(String path)
Sets the path of the directory containing the file to path |
StringBuffer |
toXML()
This method returns an XML representation as StringBuffer of an
instance of the implementing class. |
| Methods inherited from class de.jstacs.results.Result |
|---|
appendMainInfo, checkDatatype, createResult, extractMainInfo, getComment, getDatatype, getName, isCastableResult, isComparableResult |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GalaxyAdaptor.FileResult(String name,
String comment,
String fullPath)
GalaxyAdaptor.FileResult with name, comment, and path to the file.
name - the name of the resultcomment - the comment for the resultfullPath - the path to the file
public GalaxyAdaptor.FileResult(String name,
String comment,
String path,
String filename,
String extension)
GalaxyAdaptor.FileResult with name, comment, path to the file, filename and extension.
name - the name of the resultcomment - the comment for the resultpath - the path to the directory containing the filefilename - the filename without extensionextension - the filename extension
public GalaxyAdaptor.FileResult(StringBuffer rep)
throws NonParsableException
GalaxyAdaptor.FileResult from its XML-representation
rep - the representation
NonParsableException - if pre could not be parsed| Method Detail |
|---|
public StringBuffer toXML()
StorableStringBuffer of an
instance of the implementing class.
protected void fromXML(StringBuffer rep)
throws NonParsableException
ResultResult.Result(StringBuffer) to extract the
information. The method can be seen as opposite of
Storable.toXML() and should not be made public.
fromXML in class Resultrep - the XML represenation of the Result to be parsed
NonParsableException - if the XML representation is not parsableResult.extractMainInfo(StringBuffer)public File getResult()
ResultResult.
getResult in class ResultResultpublic String getPath()
public void setPath(String path)
path
path - the new pathpublic String getFilename()
public void setFilename(String filename)
filename - the new filenamepublic String getExtension()
public void setExtension(String extension)
extension - the new extension
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||