public interface Parameters extends Collection<Parameter>, Serializable
| Modifier and Type | Method and Description |
|---|---|
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.
|
Parameter getParameter(String parameterName)
Parameter. If it doesn't exist in this
collection, null is returned.parameterName - the name of the parameter to getParameterDefinition 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 returnedInvalidParameterDefinitionException - if the parameter does not exist in this collectionObject 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 returnedInvalidParameterDefinitionException - if the parameter does not exist in this collectionvoid 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 parametersboolean contains(String parameterName) throws NullPointerException
parameter name.parameterName - the parameter nametrue if there is a parameter in this object identified by the parameterNameNullPointerException - if parameterName is null, as per Collection interface
contractboolean 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 checktrue if there is a parameter in this object identified by the parameterNameNullPointerException - if parameter is null, as per Collection interface contractboolean remove(String parameterName) throws NullPointerException
parameterName.parameterName - the name of the parameter to remove from this collectiontrue if the object was removed; false if there was no object in this collection
with the given parameter nameNullPointerException - if parameterName is null, as per Collection interface
contractboolean 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 removetrue if the object was removedNullPointerException - if parameter is null, as per Collection interface contractCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.