Serializable
, Cloneable
, ConfigElement
, Searchable
, TestElement
public class LDAPArguments extends ConfigTestElement implements Serializable
Modifier and Type | Field | Description |
---|---|---|
static String |
ARGUMENTS |
The name of the property used to store the arguments.
|
PASSWORD, USERNAME
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor | Description |
---|---|
LDAPArguments() |
Create a new Arguments object with no arguments.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addArgument(String name,
String value,
String opcode) |
Add a new argument with the given name and value.
|
void |
addArgument(String name,
String value,
String opcode,
String metadata) |
Add a new argument with the given name, value, and metadata.
|
void |
addArgument(LDAPArgument arg) |
Add a new argument.
|
void |
addEmptyArgument() |
Add a new empty argument to the list.
|
void |
clear() |
Clear the arguments.
|
LDAPArgument |
getArgument(int row) |
Get a single argument.
|
int |
getArgumentCount() |
Get the number of arguments in the list.
|
CollectionProperty |
getArguments() |
Get the arguments.
|
Map<String,String> |
getArgumentsAsMap() |
Get the arguments as a Map.
|
PropertyIterator |
iterator() |
Get a PropertyIterator of the arguments.
|
void |
removeAllArguments() |
Remove all arguments from the list.
|
void |
removeArgument(int row) |
Remove the specified argument from the list.
|
void |
removeArgument(String argName) |
Remove the argument with the specified name.
|
void |
removeArgument(LDAPArgument arg) |
Remove the specified argument from the list.
|
void |
setArguments(List<Object> arguments) |
Set the list of arguments.
|
String |
toString() |
Create a string representation of the arguments.
|
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, traverseProperty
clone
addConfigElement, addTestElement, expectsModification
public static final String ARGUMENTS
public LDAPArguments()
public CollectionProperty getArguments()
public void clear()
clear
in interface TestElement
clear
in class AbstractTestElement
public void setArguments(List<Object> arguments)
arguments
- the new argumentspublic Map<String,String> getArgumentsAsMap()
public void addArgument(String name, String value, String opcode)
name
- the name of the argumentvalue
- the value of the argumentopcode
- the operation to perform, may be one of add
,
delete
, remove
or
modify
.public void addArgument(LDAPArgument arg)
arg
- the new argumentpublic void addArgument(String name, String value, String opcode, String metadata)
name
- the name of the argumentvalue
- the value of the argumentopcode
- the operation to perform, may be one of add
,
delete
, remove
or
modify
.metadata
- the metadata for the argumentpublic PropertyIterator iterator()
public String toString()
public void removeArgument(int row)
row
- the index of the argument to removepublic void removeArgument(LDAPArgument arg)
arg
- the argument to removepublic void removeArgument(String argName)
argName
- the name of the argument to removepublic void removeAllArguments()
public void addEmptyArgument()
public int getArgumentCount()
public LDAPArgument getArgument(int row)
row
- the index of the argument to return.Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.