|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.shiwa.fgi.iwir.IWIR
public class IWIR
The Class IWIR represents an IWIR workflow.
Constructor Summary | |
---|---|
IWIR()
Instantiates a new empty IWIR object. |
|
IWIR(java.io.File file)
Instantiates a new IWIR from a given file. |
|
IWIR(java.lang.String wfname)
Instantiates a new IWIR object with the standard version and standard XML namespace. |
|
IWIR(java.lang.String wfname,
AbstractTask task)
Instantiates a new IWIR object with the standard version and standard XML namespace. |
|
IWIR(java.lang.String version,
java.lang.String wfname,
java.lang.String xmlns)
Instantiates a new IWIR object. |
Method Summary | |
---|---|
void |
asXMLFile(java.io.File file)
Writes the XML representation of the IWIR object into a file. |
java.lang.String |
asXMLString()
Returns the XML representation of the IWIR object as String. |
java.util.Set<Task> |
getAtomicTasks()
Gets all atomic tasks. |
java.util.Set<java.lang.String> |
getAtomicTaskTypes()
Gets all distinct task types of the atomic tasks. |
java.io.File |
getImage(java.lang.String dotLocation,
java.lang.String extension,
java.lang.String tmpFolder)
Returns a graphical representation of the workflow as a File object. |
AbstractTask |
getTask()
Gets the task of the IWIR workflow. |
java.lang.String |
getVersion()
Gets the version of the IWIR workflow. |
java.lang.String |
getWfname()
Gets the workflow name. |
java.lang.String |
getXmlns()
Gets the XML namespace. |
void |
replaceSubWorkflows()
|
void |
setTask(AbstractTask task)
Sets the task of the IWIR workflow. |
void |
setVersion(java.lang.String version)
Sets the version of the IWIR workflow. |
void |
setWfname(java.lang.String wfname)
Sets the workflow name. |
void |
setXmlns(java.lang.String xmlns)
Sets the XML namespace. |
java.lang.String |
toString()
|
void |
validate()
Validate an IWIR object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IWIR(java.lang.String version, java.lang.String wfname, java.lang.String xmlns)
version
- the IWIR versionwfname
- the IWIR workflow namexmlns
- the IWIR xmlnspublic IWIR(java.lang.String wfname)
wfname
- the IWIR workflow namepublic IWIR()
public IWIR(java.lang.String wfname, AbstractTask task)
wfname
- the workflow nametask
- the taskpublic IWIR(java.io.File file) throws java.io.FileNotFoundException, NotWellFormedException
file
- the file
java.io.FileNotFoundException
- the file not found exception
NotWellFormedException
- if the work flow is not well formedMethod Detail |
---|
public java.io.File getImage(java.lang.String dotLocation, java.lang.String extension, java.lang.String tmpFolder)
dotLocation
- the path to the executable of dotextension
- the type of file that should be producedtmpFolder
- the directory where the image is stored. If its the empty
string or null the image is stored in /tmp.
public AbstractTask getTask()
public void setTask(AbstractTask task)
task
- the new task of the IWIR workflowpublic java.lang.String getVersion()
public void setVersion(java.lang.String version)
version
- the new version of the IWIR workflowpublic java.lang.String getWfname()
public void setWfname(java.lang.String wfname)
wfname
- the new workflow namepublic java.lang.String getXmlns()
public void setXmlns(java.lang.String xmlns)
xmlns
- the new XML namespacepublic java.util.Set<Task> getAtomicTasks()
public java.util.Set<java.lang.String> getAtomicTaskTypes()
public void validate() throws NotWellFormedException
NotWellFormedException
- if an error occurspublic void replaceSubWorkflows()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String asXMLString() throws NotWellFormedException
XMLHandler.writeString(IWIR)
for more information.
NotWellFormedException
- if the workflow is not well formedpublic void asXMLFile(java.io.File file) throws java.io.FileNotFoundException, java.io.IOException, NotWellFormedException
XMLHandler.writeFile(IWIR, File)
for more information.
file
- the file
java.io.FileNotFoundException
- the file not found exception
java.io.IOException
- Signals that an I/O exception has occurred.
NotWellFormedException
- if the workflow is not well formed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |