Class LDAPArguments

All Implemented Interfaces:
Serializable, Cloneable, ConfigElement, Searchable, org.apache.jmeter.testelement.TestElement

public class LDAPArguments extends ConfigTestElement implements Serializable
A set of LDAPArgument objects. author Dolf Smits(Dolf.Smits@Siemens.com) created Aug 09 2003 11:00 AM company Siemens Netherlands N.V.. Based on the work of: author Michael Stover author Mark Walsh
See Also:
  • Field Details

    • ARGUMENTS

      public static final String ARGUMENTS
      The name of the property used to store the arguments.
      See Also:
  • Constructor Details

    • LDAPArguments

      public LDAPArguments()
      Create a new Arguments object with no arguments.
  • Method Details

    • getArguments

      public CollectionProperty getArguments()
      Get the arguments.
      Returns:
      the arguments
    • clear

      public void clear()
      Clear the arguments.
      Specified by:
      clear in interface org.apache.jmeter.testelement.TestElement
      Overrides:
      clear in class AbstractTestElement
    • setArguments

      public void setArguments(List<Object> arguments)
      Set the list of arguments. Any existing arguments will be lost.
      Parameters:
      arguments - the new arguments
    • getArgumentsAsMap

      public Map<String,String> getArgumentsAsMap()
      Get the arguments as a Map. Each argument name is used as the key, and its value as the value.
      Returns:
      a new Map with String keys and values containing the arguments
    • addArgument

      public void addArgument(String name, String value, String opcode)
      Add a new argument with the given name and value.
      Parameters:
      name - the name of the argument
      value - the value of the argument
      opcode - the operation to perform, may be one of add, delete, remove or modify.
    • addArgument

      public void addArgument(LDAPArgument arg)
      Add a new argument.
      Parameters:
      arg - the new argument
    • addArgument

      public void addArgument(String name, String value, String opcode, String metadata)
      Add a new argument with the given name, value, and metadata.
      Parameters:
      name - the name of the argument
      value - the value of the argument
      opcode - the operation to perform, may be one of add, delete, remove or modify.
      metadata - the metadata for the argument
    • iterator

      public PropertyIterator iterator()
      Get a PropertyIterator of the arguments.
      Returns:
      an iteration of the arguments
    • toString

      public String toString()
      Create a string representation of the arguments.
      Overrides:
      toString in class Object
      Returns:
      the string representation of the arguments
    • removeArgument

      public void removeArgument(int row)
      Remove the specified argument from the list.
      Parameters:
      row - the index of the argument to remove
    • removeArgument

      public void removeArgument(LDAPArgument arg)
      Remove the specified argument from the list.
      Parameters:
      arg - the argument to remove
    • removeArgument

      public void removeArgument(String argName)
      Remove the argument with the specified name.
      Parameters:
      argName - the name of the argument to remove
    • removeAllArguments

      public void removeAllArguments()
      Remove all arguments from the list.
    • addEmptyArgument

      public void addEmptyArgument()
      Add a new empty argument to the list. The new argument will have the empty string as its name and value, and null metadata.
    • getArgumentCount

      public int getArgumentCount()
      Get the number of arguments in the list.
      Returns:
      the number of arguments
    • getArgument

      public LDAPArgument getArgument(int row)
      Get a single argument.
      Parameters:
      row - the index of the argument to return.
      Returns:
      the argument at the specified index, or null if no argument exists at that index.