eu.scape_project.pit.tools
Class ToolSpec
java.lang.Object
eu.scape_project.pit.tools.ToolSpec
public class ToolSpec
- extends Object
- Author:
- Andrew Jackson
Field Summary |
static String |
NS
The namespace for the toolspec |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NS
public static final String NS
- The namespace for the toolspec
- See Also:
- Constant Field Values
ToolSpec
public ToolSpec()
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.