public class ToolManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.HashMap<java.lang.String,Tool> |
builtinTools |
protected static AcsCommandCenterTools |
extraTools |
| Constructor and Description |
|---|
ToolManager() |
| Modifier and Type | Method and Description |
|---|---|
protected static java.lang.String[] |
collectInsertions(Tool tool,
RunModel runModel,
java.util.Map<java.lang.String,java.lang.Object> input) |
static java.lang.String |
generateCommand(Tool tool,
RunModel runModel) |
static java.lang.String |
generateCommand(Tool tool,
RunModel runModel,
java.util.Map<java.lang.String,java.lang.Object> input) |
static Tool |
getBuiltinTool(java.lang.String caption)
Returns the builtin tool with the specified name.
|
static java.lang.String |
getDefaultBuiltinToolsName() |
static java.lang.String |
getDefaultExtraToolsName() |
static AcsCommandCenterTools |
getExtraTools() |
static void |
readBuiltinTools(java.io.Reader f)
Reads the tool definition from the specified reader.
|
static void |
readDefaultBuiltinTools() |
static void |
readDefaultExtraTools() |
static void |
readExtraTools(java.io.Reader f)
Reads the tool definitions from the specified reader.
|
protected static java.lang.String |
readFromInput(java.util.Map<java.lang.String,java.lang.Object> input,
java.lang.String name,
java.lang.String fallback) |
protected static java.lang.String |
readFromModel(RunModel runModel,
java.lang.String name,
java.lang.String fallback) |
protected static AcsCommandCenterTools extraTools
protected static java.util.HashMap<java.lang.String,Tool> builtinTools
public static void readExtraTools(java.io.Reader f)
throws java.lang.Exception
java.lang.Exceptionpublic static AcsCommandCenterTools getExtraTools()
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.String getDefaultExtraToolsName()
public static void readDefaultExtraTools()
throws java.lang.Exception
java.lang.Exceptionpublic static void readBuiltinTools(java.io.Reader f)
throws java.lang.Exception
java.lang.Exceptionpublic static Tool getBuiltinTool(java.lang.String caption)
throws java.lang.IllegalArgumentException,
java.lang.Exception
If no builtin-tool definition has yet been read in, this will try to read the
default tools definition file (see getDefaultBuiltinToolsName()). If
an exception occurs during that, it will be passed to the caller. To avoid this lazy
attempy to read the default definitions, invoke one of
readDefaultBuiltinTools()
readBuiltinTools(Reader)
caption - the name of a tooljava.lang.IllegalArgumentException - if non-defined tool is requestedjava.lang.Exception - if no tool defined yet, and loading of default definition failspublic static java.lang.String getDefaultBuiltinToolsName()
public static void readDefaultBuiltinTools()
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.String generateCommand(Tool tool,
RunModel runModel)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.String generateCommand(Tool tool,
RunModel runModel,
java.util.Map<java.lang.String,java.lang.Object> input)
throws java.lang.Exception
java.lang.Exceptionprotected static java.lang.String[] collectInsertions(Tool tool,
RunModel runModel,
java.util.Map<java.lang.String,java.lang.Object> input)
throws java.lang.Exception
java.lang.Exceptionprotected static java.lang.String readFromModel(RunModel runModel, java.lang.String name, java.lang.String fallback) throws java.lang.Exception
java.lang.Exceptionprotected static java.lang.String readFromInput(java.util.Map<java.lang.String,java.lang.Object> input,
java.lang.String name,
java.lang.String fallback)