eu.scape_project.pit.tools
Class ToolSpec

java.lang.Object
  extended by eu.scape_project.pit.tools.ToolSpec

public class ToolSpec
extends Object

Author:
Andrew Jackson

Field Summary
static String NS
          The namespace for the toolspec
 
Constructor Summary
ToolSpec()
           
 
Method Summary
static ToolSpec fromInputStream(InputStream input)
          Deserializes a ToolSpec from an XML stream
 List<Action> getActions()
           
 List<Var> getEnv()
           
 String getId()
           
 Inputs getInputs()
           
 List<Template> getTemplate()
           
 Tool getTool()
           
 Version getVersion()
           
 void setActions(List<Action> actions)
           
 void setEnv(List<Var> env)
           
 void setId(String id)
           
 void setInputs(Inputs parameters)
           
 void setTemplate(List<Template> template)
           
 void setTool(Tool tool)
           
 void setVersion(Version version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NS

public static final String NS
The namespace for the toolspec

See Also:
Constant Field Values
Constructor Detail

ToolSpec

public ToolSpec()
Method Detail

setId

public void setId(String id)
Parameters:
id - the id to set

getId

public String getId()
Returns:
the id

getVersion

public Version getVersion()
Returns:
the version

setVersion

public void setVersion(Version version)
Parameters:
version - the version to set

getTool

public Tool getTool()
Returns:
the tool

setTool

public void setTool(Tool tool)
Parameters:
tool -

getEnv

public List<Var> getEnv()
Returns:
the env

setEnv

public void setEnv(List<Var> env)
Parameters:
env - the env to set

getTemplate

public List<Template> getTemplate()
Returns:
the template

setTemplate

public void setTemplate(List<Template> template)
Parameters:
template - the template to set

getInputs

public Inputs getInputs()
Returns:
the parameters

setInputs

public void setInputs(Inputs parameters)
Parameters:
parameters - the parameters to set

getActions

public List<Action> getActions()
Returns:
the actions

setActions

public void setActions(List<Action> actions)
Parameters:
actions - the actions to set

fromInputStream

public static ToolSpec fromInputStream(InputStream input)
                                throws FileNotFoundException,
                                       JAXBException
Deserializes a ToolSpec from an XML stream

Parameters:
input -
Returns:
a new ToolSpec object created from the XML Stream data
Throws:
FileNotFoundException
JAXBException


Copyright © 2013. All Rights Reserved.