A set of Argument objects.
addArgument
public void addArgument(String name,
String value)
Add a new argument with the given name and value.
name
- the name of the argumentvalue
- the value of the argument
addArgument
public void addArgument(String name,
String value,
String metadata)
Add a new argument with the given name, value, and metadata.
name
- the name of the argumentvalue
- the value of the argumentmetadata
- the metadata for the argument
addArgument
public void addArgument(Argument arg)
Add a new argument.
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.
getArgument
public Argument getArgument(int row)
Get a single argument.
row
- the index of the argument to return.
- the argument at the specified index, or null if no argument
exists at that index.
getArgumentCount
public int getArgumentCount()
Get the number of arguments in the list.
getArgumentsAsMap
public Map getArgumentsAsMap()
Get the arguments as a Map. Each argument name is used as the key, and
its value as the value.
- a new Map with String keys and values containing the arguments
iterator
public PropertyIterator iterator()
Get a PropertyIterator of the arguments.
- an iteration of the arguments
removeAllArguments
public void removeAllArguments()
Remove all arguments from the list.
removeArgument
public void removeArgument(String argName)
Remove the argument with the specified name.
argName
- the name of the argument to remove
removeArgument
public void removeArgument(int row)
Remove the specified argument from the list.
row
- the index of the argument to remove
removeArgument
public void removeArgument(Argument arg)
Remove the specified argument from the list.
arg
- the argument to remove
setArguments
public void setArguments(List arguments)
Set the list of arguments. Any existing arguments will be lost.
arguments
- the new arguments
toString
public String toString()
Create a string representation of the arguments.
- the string representation of the arguments