Package org.forgerock.opendj.setup.model
Class Profile.NumberParameter<N extends Number>
java.lang.Object
org.forgerock.opendj.setup.model.Profile.Parameter<Profile.NumberParameter<N>,N>
 
org.forgerock.opendj.setup.model.Profile.NumberParameter<N>
- Type Parameters:
- N- The number implementation
- Enclosing class:
- Profile
public final class Profile.NumberParameter<N extends Number>
extends Profile.Parameter<Profile.NumberParameter<N>,N> 
Represents a parameter whose value is a number.
- 
Method SummaryModifier and TypeMethodDescription<R,P, E extends Exception> 
 Raccept(Profile.ParameterVisitor<R, P, E> visitor, P p) Applies aProfile.ParameterVisitorto thisProfile.Parameter.parseStringValue(String strValue) Parses provided string value into this parameter type and returns the typed value.Methods inherited from class org.forgerock.opendj.setup.model.Profile.Parameteradvanced, defaultValue, defaultValue, defaultValueCanBeDerivedAtSetup, defaultValueFromSetupTool, description, descriptionIfNoValueSet, equals, expressionAllowed, getAddAnotherValueMsg, getDefaultValue, getDescriptionIfNoValueSetMsg, getDescriptionMsg, getHelpMsg, getOptionalPromptMsg, getPromptForValueMsg, getSyntax, getSyntaxWithoutExpression, getValue, getValueOrExpression, getVariableName, hashCode, help, isAdvanced, isMultivalued, isOptional, multivalued, multivalued, optional, optional, prompt, property, toString
- 
Method Details- 
parseStringValueDescription copied from class:Profile.ParameterParses provided string value into this parameter type and returns the typed value.- Specified by:
- parseStringValuein class- Profile.Parameter<Profile.NumberParameter<N extends Number>,- N extends Number> 
- Parameters:
- strValue- A string representing the parameter value to be parsed
- Returns:
- The typed value associated to provided string
- Throws:
- com.forgerock.opendj.cli.ArgumentException- If an error occurred while parsing provided string value
 
- 
acceptDescription copied from class:Profile.ParameterApplies aProfile.ParameterVisitorto thisProfile.Parameter.- Specified by:
- acceptin class- Profile.Parameter<Profile.NumberParameter<N extends Number>,- N extends Number> 
- Type Parameters:
- R- The return type of the visitor's methods
- P- The type of the additional parameter to this visitor's methods. Use- Voidfor visitors that do not need an additional parameter
- E- The type of the exception thrown by the visitor method if it fails, or- NeverThrowsExceptionif the visitor cannot fail
- Parameters:
- visitor- The parameter visitor
- p- Optional additional visitor parameter
- Returns:
- A result as specified by the visitor
- Throws:
- E- If the visitor failed
 
 
-