public static final class InputParameterModel.Builder extends Object
InputParameterModel. Entry point is
InputParameterModel.inputParameterModel(String).| Modifier and Type | Method and Description |
|---|---|
InputParameterModel |
build()
Builds the model.
|
InputParameterModel.Builder |
errorConstraint(Constraint errorConstraint)
Adds a error constraint to the model.
|
InputParameterModel.Builder |
errorConstraints(Constraint... errorConstraints)
Adds all error constraints to the model.
|
InputParameterModel.Builder |
forbiddenConstraint(Constraint forbiddenConstraint)
Adds a forbidden constraint to the model.
|
InputParameterModel.Builder |
forbiddenConstraints(Constraint... forbiddenConstraints)
Adds all forbidden constraints to the model.
|
InputParameterModel.Builder |
name(String name)
Sets the name.
|
InputParameterModel.Builder |
parameter(Parameter.Builder parameter)
Adds the parameter builders to the model by building them.
|
InputParameterModel.Builder |
parameter(Parameter parameter)
Adds a parameter to the model.
|
InputParameterModel.Builder |
parameters(Parameter... parameters)
Adds all parameters to the model.
|
InputParameterModel.Builder |
parameters(Parameter.Builder... parameters)
Builds all given builders and adds the result parameters to the model.
|
InputParameterModel.Builder |
strength(int strength)
Stets the testing strength.
|
public InputParameterModel.Builder strength(int strength)
strength - the testing strengthpublic InputParameterModel.Builder name(String name)
null when build() is called.name - a descriptive name for the modelpublic InputParameterModel.Builder parameter(Parameter parameter)
parameter - the parameter. Must not be nullpublic InputParameterModel.Builder parameter(Parameter.Builder parameter)
Parameter.Builder.build() himself, therefore creating more readable code.parameter - the parameter to be build. Must not be nullpublic InputParameterModel.Builder parameters(Parameter... parameters)
parameters - all parameters to be added. Must not be, nor contain nullpublic InputParameterModel.Builder parameters(Parameter.Builder... parameters)
parameters - the parameters to be added. Must not be, nor contain nullpublic InputParameterModel.Builder forbiddenConstraint(Constraint forbiddenConstraint)
forbiddenConstraint - the forbidden constraint to be added. Must not be nullpublic InputParameterModel.Builder forbiddenConstraints(Constraint... forbiddenConstraints)
forbiddenConstraints - the forbidden constraints to be added. Must not be, nor contain nullpublic InputParameterModel.Builder errorConstraint(Constraint errorConstraint)
errorConstraint - the error constraint to be added. Must not be nullpublic InputParameterModel.Builder errorConstraints(Constraint... errorConstraints)
errorConstraints - the error constraints to be added. Must not be, nor contain nullpublic InputParameterModel build()
Copyright © 2019. All rights reserved.