01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: */
18:
19: package org.apache.jmeter.engine;
20:
21: import org.apache.jmeter.testelement.TestElement;
22: import org.apache.jmeter.testelement.TestPlan;
23: import org.apache.jorphan.collections.HashTree;
24: import org.apache.jorphan.collections.HashTreeTraverser;
25:
26: /**
27: * @author mstover
28: *
29: * To change the template for this generated type comment go to Window -
30: * Preferences - Java - Code Generation - Code and Comments
31: */
32: public class TurnElementsOn implements HashTreeTraverser {
33:
34: /*
35: * (non-Javadoc)
36: *
37: * @see org.apache.jorphan.collections.HashTreeTraverser#addNode(java.lang.Object,
38: * org.apache.jorphan.collections.HashTree)
39: */
40: public void addNode(Object node, HashTree subTree) {
41: if (node instanceof TestElement && !(node instanceof TestPlan)) {
42: ((TestElement) node).setRunningVersion(true);
43: }
44:
45: }
46:
47: /*
48: * (non-Javadoc)
49: *
50: * @see org.apache.jorphan.collections.HashTreeTraverser#subtractNode()
51: */
52: public void subtractNode() {
53: }
54:
55: /*
56: * (non-Javadoc)
57: *
58: * @see org.apache.jorphan.collections.HashTreeTraverser#processPath()
59: */
60: public void processPath() {
61: }
62:
63: }
|