Class LDAPArguments
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.config.ConfigTestElement
org.apache.jmeter.protocol.ldap.config.gui.LDAPArguments
- All Implemented Interfaces:
Serializable, Cloneable, ConfigElement, Searchable, TestElement
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the property used to store the arguments.Fields inherited from class ConfigTestElement
PASSWORD, USERNAMEFields inherited from interface TestElement
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArgument(String name, String value, String opcode) Add a new argument with the given name and value.voidaddArgument(String name, String value, String opcode, String metadata) Add a new argument with the given name, value, and metadata.voidaddArgument(LDAPArgument arg) Add a new argument.voidAdd a new empty argument to the list.voidclear()Clear the arguments.getArgument(int row) Get a single argument.intGet the number of arguments in the list.Get the arguments.Get the arguments as a Map.iterator()Get a PropertyIterator of the arguments.voidRemove all arguments from the list.voidremoveArgument(int row) Remove the specified argument from the list.voidremoveArgument(String argName) Remove the argument with the specified name.voidRemove the specified argument from the list.voidsetArguments(List<Object> arguments) Set the list of arguments.toString()Create a string representation of the arguments.Methods inherited from class ConfigTestElement
addConfigElement, addTestElement, expectsModificationMethods inherited from class AbstractTestElement
addPropertiesValues, addProperty, addProperty, canRemove, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traversePropertyMethods inherited from interface ConfigElement
clone
-
Field Details
-
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
-
clear
public void clear()Clear the arguments.- Specified by:
clearin interfaceTestElement- Overrides:
clearin classAbstractTestElement
-
setArguments
-
getArgumentsAsMap
-
addArgument
-
addArgument
-
addArgument
Add a new argument with the given name, value, and metadata.- Parameters:
name- the name of the argumentvalue- the value of the argumentopcode- the operation to perform, may be one ofadd,delete,removeormodify.metadata- the metadata for the argument
-
iterator
Get a PropertyIterator of the arguments.- Returns:
- an iteration of the arguments
-
toString
-
removeArgument
public void removeArgument(int row) Remove the specified argument from the list.- Parameters:
row- the index of the argument to remove
-
removeArgument
Remove the specified argument from the list.- Parameters:
arg- the argument to remove
-
removeArgument
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
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.
-