alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

/*
 * Created on May 20, 2004
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package org.apache.jmeter.engine;

import org.apache.jmeter.testelement.TestElement;
import org.apache.jmeter.testelement.TestPlan;
import org.apache.jorphan.collections.HashTree;
import org.apache.jorphan.collections.HashTreeTraverser;

/**
 * @author mstover
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class TurnElementsOn implements HashTreeTraverser
{

   /* (non-Javadoc)
    * @see org.apache.jorphan.collections.HashTreeTraverser#addNode(java.lang.Object, org.apache.jorphan.collections.HashTree)
    */
   public void addNode(Object node, HashTree subTree)
   {
      if (node instanceof TestElement && !(node instanceof TestPlan))
      {
         ((TestElement)node).setRunningVersion(true);
      }

   }

   /* (non-Javadoc)
    * @see org.apache.jorphan.collections.HashTreeTraverser#subtractNode()
    */
   public void subtractNode()
   {
   }

   /* (non-Javadoc)
    * @see org.apache.jorphan.collections.HashTreeTraverser#processPath()
    */
   public void processPath()
   {
   }

}
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.