org.apache.jmeter.gui.action.impl

## Class DefaultTreeNodeNamingPolicy

- java.lang.Object
- - org.apache.jmeter.gui.action.impl.DefaultTreeNodeNamingPolicy

- All Implemented Interfaces:
    TreeNodeNamingPolicy

      public class DefaultTreeNodeNamingPolicy
      extends java.lang.Object
      implements TreeNodeNamingPolicy

  Default implementation of `TreeNodeNamingPolicy`
  Since:
    3.2

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultTreeNodeNamingPolicy()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `nameOnCreation(JMeterTreeNode node)`
    `void` | `rename(JMeterTreeNode parentNode, JMeterTreeNode childNode, int iterationIndex)` Called by Apply Naming Policy popup menu on TransactionController nodes Rename childNode based on custom policy
    `void` | `resetState(JMeterTreeNode rootNode)` Called within Apply Naming Policy popup menu on TransactionController nodes to init the naming process.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultTreeNodeNamingPolicy

          public DefaultTreeNodeNamingPolicy()

  - ### Method Detail

    - #### rename

          public void rename(JMeterTreeNode parentNode,
                             JMeterTreeNode childNode,
                             int iterationIndex)

      Description copied from interface: `TreeNodeNamingPolicy`
      Called by Apply Naming Policy popup menu on TransactionController nodes Rename childNode based on custom policy
      Specified by:
        `rename` in interface `TreeNodeNamingPolicy`
      Parameters:
        `parentNode` - Parent node
        `childNode` - Child node
        `iterationIndex` - index of child node
      See Also:
        `TreeNodeNamingPolicy.rename(org.apache.jmeter.gui.tree.JMeterTreeNode, org.apache.jmeter.gui.tree.JMeterTreeNode, int)`

    - #### resetState

          public void resetState(JMeterTreeNode rootNode)

      Description copied from interface: `TreeNodeNamingPolicy`
      Called within Apply Naming Policy popup menu on TransactionController nodes to init the naming process.
      Specified by:
        `resetState` in interface `TreeNodeNamingPolicy`
      Parameters:
        `rootNode` - `JMeterTreeNode` Parent of nodes that will be renamed
      See Also:
        `TreeNodeNamingPolicy.resetState(org.apache.jmeter.gui.tree.JMeterTreeNode)`

    - #### nameOnCreation

          public void nameOnCreation(JMeterTreeNode node)

      Specified by:
        `nameOnCreation` in interface `TreeNodeNamingPolicy`
      Parameters:
        `node` - `JMeterTreeNode` node that has been added to JMeter Tree node

Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.