public class ParameterList extends Object implements Serializable
Constructor and Description |
---|
ParameterList()
Constructs an instance of ParameterList.
|
ParameterList(ParameterList source)
Constructs an instance with the same list mappings as the specified object.
|
Modifier and Type | Method and Description |
---|---|
void |
add(ParameterInfo param)
Adds a parameter to the list.
|
void |
add(String name, Boolean value, boolean readOnly)
Adds a parameter of type Boolean to this list with the given name and value.
|
void |
add(String name, Integer value, boolean readOnly)
Adds a parameter of type Integer to this list with the given name and value.
|
void |
add(String name, Long value, boolean readOnly)
Adds a parameter of type Long to this list with the given name and value.
|
void |
add(String name, ParameterInfo.DataType type)
Adds a parameter to this list with the given name and data type.
|
void |
add(String name, ParameterInfo.DataType type, Object value, boolean readOnly)
Adds a parameter to the list with the given information about the parameter.
|
void |
add(String name, ParameterInfo.DataType type, Object value, boolean readOnly, boolean legacy)
Adds a parameter to the list with the given information about the parameter.
|
void |
add(String name, String value, boolean readOnly)
Adds a parameter of type String to this list with the given name and value.
|
void |
clear()
Removes all parameter information from this list.
|
int |
compareSpecial(Object obj)
Compares the specific object with this object for equality, including parameters.
|
boolean |
contains(String name)
Indicates if this list contains a parameter for the given name.
|
boolean |
equals(Object obj)
Compares the specific object with this object for equality.
|
ParameterInfo |
get(String name)
Returns the information about the given parameter from this list.
|
Collection |
getAll()
Returns a collection view of all the parameters from this list.
|
Enumeration |
getNames()
Returns all the names of the parameters in this list.
|
Object |
getValue(String name)
Gets the value for a parameter in the list.
|
int |
hashCode()
Returns the hash code value of this list.
|
void |
remove(String name)
Removes the given parameter from the list.
|
int |
size()
Returns the number of parameters in this list.
|
public ParameterList()
public ParameterList(ParameterList source)
source
- the list whose parameters are to be placed in this objectNullPointerException
- if the specified list is null
.public void add(String name, String value, boolean readOnly)
name
- the name of the parameter to be added.value
- value of the parameter.readOnly
- indicates whether the parameter is read-only or not. If read only, subsequent objects cannot change the value.public void add(String name, Integer value, boolean readOnly)
name
- the name of the parameter to be added.value
- value of the parameter.readOnly
- indicates whether the parameter is read-only or not. If read only, subsequent objects cannot change the value.public void add(String name, Long value, boolean readOnly)
name
- the name of the parameter to be added.value
- value of the parameter.readOnly
- indicates whether the parameter is read-only or not. If read only, subsequent objects cannot change the value.public void add(String name, Boolean value, boolean readOnly)
name
- the name of the parameter to be added.value
- value of the parameter.readOnly
- indicates whether the parameter is read-only or not. If read only, subsequent objects cannot change the value.public void add(String name, ParameterInfo.DataType type)
name
- the name of the parameter to be added.type
- the data type of the parameter. The data type is one of the supported data types.public void add(String name, ParameterInfo.DataType type, Object value, boolean readOnly)
name
- the name of the parameter to be added.type
- the data type of the parametervalue
- an optional (default) value of the parameter. The data type of the value must match with the type argument.readOnly
- indicates whether the parameter is read-only or not. If read only, subsequent objects cannot change the value.public void add(String name, ParameterInfo.DataType type, Object value, boolean readOnly, boolean legacy)
name
- the name of the parameter to be added.type
- the data type of the parametervalue
- an optional (default) value of the parameter. The data type of the value must match with the type argument.readOnly
- indicates whether the parameter is read-only or not. If read only, subsequent objects cannot change the value.legacy
- indicates whether the parameter is legacypublic void add(ParameterInfo param)
This simply adds the specified ParameterInfo
to the list, it does not create a new ParameterInfo
object.
param
- the parameter info instance to be added to the list.NullPointerException
- if the parameter info is null
.public Enumeration getNames()
public boolean contains(String name)
name
- the name of the parametertrue
if the parameter exists in the list, or false
if not.public ParameterInfo get(String name)
name
- the name of the parameter whose information is returned.ParameterInfo
for the parameter. This will be null
if this list does not contain a parameter with the given name.public Collection getAll()
ParameterInfo
public Object getValue(String name)
name
- the name of the parameternull
if the list does not a parameter with the given name.public void remove(String name)
name
- the name of the parameter to be removed.public void clear()
public int size()
public int hashCode()
public boolean equals(Object obj)
public int compareSpecial(Object obj)
obj
- the object to be compared.