|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Parameters
Defines a collection of parameters.
| Method Summary | |
|---|---|
void |
applyResourceBundleToParameterRenderingInformation(ResourceBundle resourceBundle)
This will apply the given resourceBundle to the parameters in this collection. |
boolean |
contains(Parameter parameter)
Checks to see if this parameter exists by specifying the parameter - only the name is used when
checking. |
boolean |
contains(String parameterName)
Checks if this parameter exists by specifying the parameter name. |
Parameters |
getInternalParameters()
Returns a ParametersImpl collection that consists of this object's
hidden parameters. |
Parameter |
getParameter(String parameterName)
Given the name of a parameter, this will return its associated Parameter. |
ParameterDefinition |
getParameterDefinition(String parameterName)
Given the name of a parameter, this will return the parameter's definition. |
Object |
getParameterValue(String parameterName)
Given the name of a parameter, this will return the parameter's value. |
Parameters |
getPublicParameters()
Returns a ParametersImpl collection that consists of this object's
non-hidden parameters. |
boolean |
remove(Parameter parameter)
Removes the parameter whose name is the same as the name in the given parameter. |
boolean |
remove(String parameterName)
Removes the parameter stored in this collection whose name matches parameterName. |
void |
setParameterValue(String parameterName,
Object parameterValue)
Given the name of a parameter, this will set the parameter's value. |
| Methods inherited from interface java.util.Collection |
|---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Method Detail |
|---|
Parameter getParameter(String parameterName)
Parameter. If it doesn't exist in this
collection, null is returned.
parameterName - the name of the parameter to get
ParameterDefinition getParameterDefinition(String parameterName)
throws InvalidParameterDefinitionException
null; in this case, null is returned. If the parameter
does not exist in this collection, an exception is thrown.
parameterName - the name of the parameter whose definition is to be returned
InvalidParameterDefinitionException - if the parameter does not exist in this collection
Object getParameterValue(String parameterName)
throws InvalidParameterDefinitionException
null, a return value of null means the parameter exists but its value was
null. If the parameter does not exist in this collection, an exception is thrown.
parameterName - the name of the parameter whose value is to be returned
InvalidParameterDefinitionException - if the parameter does not exist in this collection
void setParameterValue(String parameterName,
Object parameterValue)
throws InvalidParameterDefinitionException
parameterName - the name of the parameter whose value is to be setparameterValue - the value of the parameter (may be null)
InvalidParameterDefinitionException - if the parameter does not exist in this collectionParameters getPublicParameters()
ParametersImpl collection that consists of this object's
non-hidden parameters. In effect, this returns parameters that are
typically for clients (such as a GUI) to provide values for.
Parameters getInternalParameters()
ParametersImpl collection that consists of this object's
hidden parameters. In effect, this returns only those parameters that are
used internally - clients should not care about them or set their values. These are typically internal parameters
for use by the executor but whose values are normally set without asking the client for the values.
void applyResourceBundleToParameterRenderingInformation(ResourceBundle resourceBundle)
resourceBundle to the parameters in this collection. This allows you to
localize the parameters.
resourceBundle - the resource bundle that is to be used when rendering the parameters
boolean contains(String parameterName)
throws NullPointerException
parameter name.
parameterName - the parameter name
true if there is a parameter in this object identified by the parameterName
NullPointerException - if parameterName is null, as per Collection interface
contract
boolean contains(Parameter parameter)
throws NullPointerException
parameter - only the name is used when
checking. This means as long as the given parameter's name matches one in the collection, this returns
true, it doesn't matter if the parameter's value or definition completely match.
parameter - the parameter to check
true if there is a parameter in this object identified by the parameterName
NullPointerException - if parameter is null, as per Collection interface contract
boolean remove(String parameterName)
throws NullPointerException
parameterName.
parameterName - the name of the parameter to remove from this collection
true if the object was removed; false if there was no object in this collection
with the given parameter name
NullPointerException - if parameterName is null, as per Collection interface
contract
boolean remove(Parameter parameter)
throws NullPointerException
parameter. The full definition
and value of the given parameter is ignored when determining a match - only the parameter name is
used in the comparision.
parameter - the parameter whose name is used to determine what to remove
true if the object was removed
NullPointerException - if parameter is null, as per Collection interface contract
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||