public static class Profile.ParameterValues extends Object implements Profile.ParameterValuesProvider
Profile.ParameterValuesProvider
base implementation which can be used to pass profile parameter values.Constructor and Description |
---|
ParameterValues() |
Modifier and Type | Method and Description |
---|---|
String |
getValueOrNullIfDefault(Profile.Parameter<?> parameter)
Returns the value set for the provided profile parameter.
|
Profile.ParameterValues |
parameter(String name,
Object value)
Sets the value associated to the provided parameter variable name.
|
protected Set<String> |
registeredParameterNames()
Returns names of all parameters set within this
Profile.ParameterValues . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
postResolutionActions
public final Profile.ParameterValues parameter(String name, Object value) throws com.forgerock.opendj.cli.ArgumentException
name
- Profile parameter
variable namevalue
- Object which string representation will be used as parameter valueProfile.ParameterValues
to continue setting parameter valuescom.forgerock.opendj.cli.ArgumentException
- If a value has already been set for the provided parameter variable namepublic String getValueOrNullIfDefault(Profile.Parameter<?> parameter)
Profile.ParameterValuesProvider
This method will be called during the profile's parameters.groovy script execution
getValueOrNullIfDefault
in interface Profile.ParameterValuesProvider
parameter
- The parameter from which the value should be resolvedString
representing the value set in command line arguments for the
provided profile Profile.Parameter
, or null
if parameter default value should be used.protected final Set<String> registeredParameterNames()
Profile.ParameterValues
.parameters
set within
this Profile.ParameterValues
Copyright 2010-2022 ForgeRock AS.