import java.util.Map;\r
\r
/**\r
- * Gy�k�r oszt�ly.\r
+ * Gyökér osztály.\r
*/\r
public class JobTemplate extends AST {\r
\r
this.useSessionLog = useSessionLog;\r
}\r
\r
- //TODO foreach ellenorzes\r
+ // TODO foreach ellenorzes\r
public List<String> validate() throws Exception {\r
Map<String, String> parameters = new HashMap<>();\r
Map<String, String> variables = new HashMap<>();\r
if (commandSequence != null) {\r
for (Command command : commandSequence.getCommands()) {\r
if (command instanceof CallJobStepCommand) {\r
- ParameterSequence inputParameterSequence = ((CallJobStepCommand) command).getInputParameterSequence();\r
+ ParameterSequence inputParameterSequence = ((CallJobStepCommand) command)\r
+ .getInputParameterSequence();\r
if (inputParameterSequence != null) {\r
for (Parameter parameter : inputParameterSequence.getParameters()) {\r
if (!(parameter instanceof InputParameter))\r
- throw new Exception(((CallJobStepCommand) command).getType() + ": class cast problem with input parameter name "\r
- + parameter.toString());\r
+ throw new Exception(((CallJobStepCommand) command).getType()\r
+ + ": class cast problem with input parameter name " + parameter.toString());\r
\r
Expression expression = ((InputParameter) parameter).getExpression();\r
if (expression instanceof VariableExpression) {\r
}\r
}\r
}\r
- ParameterSequence outputParameterSequence = ((CallJobStepCommand) command).getOutputParameterSequence();\r
+ ParameterSequence outputParameterSequence = ((CallJobStepCommand) command)\r
+ .getOutputParameterSequence();\r
if (outputParameterSequence != null) {\r
for (Parameter parameter : outputParameterSequence.getParameters()) {\r
if (!(parameter instanceof OutputParameter))\r
- throw new Exception(((CallJobStepCommand) command).getType() + ": class cast problem with output parameter name "\r
- + parameter.toString());\r
+ throw new Exception(((CallJobStepCommand) command).getType()\r
+ + ": class cast problem with output parameter name " + parameter.toString());\r
VariableName name = ((OutputParameter) parameter).getVariableName();\r
if (!inputvariables.contains(name.getName()))\r
inputvariables.add(name.getName());\r