public static class GalaxyAdaptor.FileResult extends Result
Result
for files that are results of some computation. Also used to link
e.g. PDFs of images to GalaxyAdaptor.LinkedImageResult
s.comment, datatype, name
Constructor and Description |
---|
FileResult(StringBuffer rep)
Creates a new
TextResult from its XML-representation |
FileResult(String name,
String comment,
String fullPath)
Creates a new
GalaxyAdaptor.FileResult with name, comment, and path to the file. |
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. |
Modifier and Type | Method and Description |
---|---|
protected void |
appendFurtherInfos(StringBuffer sb)
This method can be used in the method
Storable.toXML() to extract
further information (name, comment, datatype). |
protected void |
extractFurtherInfos(StringBuffer rep)
This method can be used in the constructor with parameter
StringBuffer to
extract the further information. |
String |
getExtension()
Returns the filename extension
|
String |
getFilename()
Returns the filename.
|
String |
getPath()
Returns the path of the directory containing the file
|
File |
getValue()
Returns the value of the
AnnotatedEntity . |
String |
getXMLTag()
This method returns a tag used as outer tag of the XML description.
|
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 |
checkDatatype, createResult, getOriginalName, isCastableResult, isComparableResult, rename
getComment, getDatatype, getName, toXML
public 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 filepublic 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 extensionpublic FileResult(StringBuffer rep) throws NonParsableException
TextResult
from its XML-representationrep
- the representationNonParsableException
- if pre could not be parsedpublic String getXMLTag()
AnnotatedEntity
getXMLTag
in class AnnotatedEntity
protected void appendFurtherInfos(StringBuffer sb)
AnnotatedEntity
Storable.toXML()
to extract
further information (name, comment, datatype).appendFurtherInfos
in class Result
sb
- a XML representation of the main information as
StringBuffer
Storable.toXML()
protected void extractFurtherInfos(StringBuffer rep) throws NonParsableException
AnnotatedEntity
StringBuffer
to
extract the further information.extractFurtherInfos
in class Result
rep
- a XML represenation of the main information as
StringBuffer
NonParsableException
- if the XML representation is not parsableAnnotatedEntity.AnnotatedEntity(StringBuffer)
public File getValue()
AnnotatedEntity
AnnotatedEntity
.getValue
in class AnnotatedEntity
AnnotatedEntity
public 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