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.LinkedImageResults.comment, datatype, name| Constructor and Description |
|---|
GalaxyAdaptor.FileResult(StringBuffer rep)
Creates a new
TextResult 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. |
| 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, isCastableResult, isComparableResultgetComment, getDatatype, getName, toXMLpublic 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 filepublic 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 extensionpublic GalaxyAdaptor.FileResult(StringBuffer rep) throws NonParsableException
TextResult from its XML-representationrep - the representationNonParsableException - if pre could not be parsedpublic String getXMLTag()
AnnotatedEntitygetXMLTag in class AnnotatedEntityprotected void appendFurtherInfos(StringBuffer sb)
AnnotatedEntityStorable.toXML() to extract
further information (name, comment, datatype).appendFurtherInfos in class AnnotatedEntitysb - a XML representation of the main information as
StringBufferStorable.toXML()protected void extractFurtherInfos(StringBuffer rep) throws NonParsableException
AnnotatedEntityStringBuffer to
extract the further information.extractFurtherInfos in class AnnotatedEntityrep - a XML represenation of the main information as
StringBufferNonParsableException - if the XML representation is not parsableAnnotatedEntity.AnnotatedEntity(StringBuffer)public File getValue()
AnnotatedEntityAnnotatedEntity.getValue in class AnnotatedEntityAnnotatedEntitypublic String getPath()
public void setPath(String path)
pathpath - 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