1 | public synchronized void setParameters(Collection parameters) throws InvalidVariableException {↵ | | 1 | public synchronized void setParameters(Collection parameters) throws InvalidVariableException {↵
|
2 | log.debug("setParameter - Collection.size=" + parameters.size());↵ | | 2 | log.debug("setParameter - Collection.size=" + parameters.size());↵
|
|
3 | values = parameters.toArray();↵ | | 3 | values = parameters.toArray();↵
|
|
4 | if (log.isDebugEnabled()) {↵ | | 4 | if (log.isDebugEnabled()) {↵
|
5 | for (int i = 0; i < parameters.size(); i++) {↵ | | 5 | for (int i = 0; i < parameters.size(); i++) {↵
|
6 | log.debug("i:" + ((CompoundVariable) values[i]).execute());↵ | | 6 | log.debug("i:" + ((CompoundVariable) values[i]).execute());↵
|
7 | }↵ | | 7 | }↵
|
8 | }↵ | | 8 | }↵
|
|
9 | checkParameterCount(parameters, 2);↵ | | 9 | checkParameterCount(parameters, 2);↵
|
|
10 | /*↵ | | 10 | /*↵
|
11 | * Need to reset the containers for repeated runs; about the only way↵ | | 11 | * Need to reset the containers for repeated runs; about the only way↵
|
12 | * for functions to detect that a run is starting seems to be the↵ | | 12 | * for functions to detect that a run is starting seems to be the↵
|
13 | * setParameters() call.↵ | | 13 | * setParameters() call.↵
|
14 | */↵ | | 14 | */↵
|
15 | FileWrapper.clearAll();// TODO only clear the relevant entry - if possible... | | 15 | XPathWrapper.clearAll();// TODO only clear the relevant entry - if possible...
|