Package org.forgerock.opendj.setup.model
Class Profile.ParameterValues
java.lang.Object
org.forgerock.opendj.setup.model.Profile.ParameterValues
- All Implemented Interfaces:
Profile.ParameterValuesProvider
- Enclosing class:
- Profile
public static class Profile.ParameterValues
extends Object
implements Profile.ParameterValuesProvider
Profile.ParameterValuesProvider base implementation which can be used to pass profile parameter values.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValues(Profile.Parameter<?, ?> parameter) Returns the values set for the provided profile parameter.final Profile.ParameterValuesAdds the value(s) to the parameter associated to provided variable name.Returns names of all parameters set within thisProfile.ParameterValues.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.forgerock.opendj.setup.model.Profile.ParameterValuesProvider
postResolutionActions
-
Constructor Details
-
ParameterValues
public ParameterValues()
-
-
Method Details
-
parameter
Adds the value(s) to the parameter associated to provided variable name.- Parameters:
name- Profileparametervariable namevalues- Objects which string representation will be used as parameter value(s)- Returns:
- this
Profile.ParameterValuesto continue setting parameter values
-
getValues
Description copied from interface:Profile.ParameterValuesProviderReturns the values set for the provided profile parameter.This method will be called during the profile's parameters.groovy script execution
If provided parameter has not been flagged as being
multivalued, the returned list will contain only one element.- Specified by:
getValuesin interfaceProfile.ParameterValuesProvider- Parameters:
parameter- The parameter from which the value(s) should be resolved- Returns:
- A
list of stringrepresenting the values set in command line arguments for the provided profileProfile.Parameter, or an empty list if parameter default value should be used.
-
registeredParameterNames
Returns names of all parameters set within thisProfile.ParameterValues.- Returns:
- a set of string representing names of all
parametersset within thisProfile.ParameterValues
-