public static final class PendingTypes.Question.Builder
extends java.lang.Object
PendingTypes.Question
.Constructor and Description |
---|
Builder(java.lang.String dataItem,
LocalizableMessage text,
LocalizableMessage description,
PendingTypes.Question.InputType type)
Constructor with parameters for the required properties of
PendingTypes.Question . |
Modifier and Type | Method and Description |
---|---|
PendingTypes.Question |
build() |
PendingTypes.Question.Builder |
setAllowedValues(java.util.List<java.lang.String> allowedValues)
List of allowed values.
|
PendingTypes.Question.Builder |
setDefaultAnswer(java.lang.String defaultAnswer)
Default answer.
|
PendingTypes.Question.Builder |
setRegexp(java.lang.String regexp)
Regexp to validate the input.
|
public Builder(java.lang.String dataItem, LocalizableMessage text, LocalizableMessage description, PendingTypes.Question.InputType type)
PendingTypes.Question
.public PendingTypes.Question.Builder setAllowedValues(java.util.List<java.lang.String> allowedValues)
null
any value is valid.allowedValues
- New value for the property.public PendingTypes.Question.Builder setRegexp(java.lang.String regexp)
null
no validation will be performed.regexp
- New value for the property.public PendingTypes.Question.Builder setDefaultAnswer(java.lang.String defaultAnswer)
null
then there is no default answer, so an explicit
answer must be provideddefaultAnswer
- New value for the property.public PendingTypes.Question build()