Class ImmutableGroup.Builder
java.lang.Object
io.dialob.session.engine.program.model.ImmutableGroup.Builder
- Enclosing class:
ImmutableGroup
@Generated(from="Group",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableGroup.Builder
extends Object
Builds instances of type
ImmutableGroup.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionfinal ImmutableGroup.BuilderactiveExpression(Expression activeExpression) Initializes the optional valueactiveExpressionto activeExpression.final ImmutableGroup.BuilderactiveExpression(Optional<? extends Expression> activeExpression) Initializes the optional valueactiveExpressionto activeExpression.final ImmutableGroup.BuilderaddAllErrors(Iterable<? extends Error> elements) Adds elements toerrorslist.final ImmutableGroup.BuilderAdds one element toerrorslist.final ImmutableGroup.BuilderAdds elements toerrorslist.final ImmutableGroup.BuilderallowedActionsExpression(Expression allowedActionsExpression) Initializes the optional valueallowedActionsExpressionto allowedActionsExpression.final ImmutableGroup.BuilderallowedActionsExpression(Optional<? extends Expression> allowedActionsExpression) Initializes the optional valueallowedActionsExpressionto allowedActionsExpression.final ImmutableGroup.BuilderavailableItemsExpression(Expression availableItemsExpression) Initializes the optional valueavailableItemsExpressionto availableItemsExpression.final ImmutableGroup.BuilderavailableItemsExpression(Optional<? extends Expression> availableItemsExpression) Initializes the optional valueavailableItemsExpressionto availableItemsExpression.build()Builds a newImmutableGroup.final ImmutableGroup.BuildercanAddRowWhenExpression(Expression canAddRowWhenExpression) Initializes the optional valuecanAddRowWhenExpressionto canAddRowWhenExpression.final ImmutableGroup.BuildercanAddRowWhenExpression(Optional<? extends Expression> canAddRowWhenExpression) Initializes the optional valuecanAddRowWhenExpressionto canAddRowWhenExpression.final ImmutableGroup.BuildercanRemoveRowWhenExpression(Expression canRemoveRowWhenExpression) Initializes the optional valuecanRemoveRowWhenExpressionto canRemoveRowWhenExpression.final ImmutableGroup.BuildercanRemoveRowWhenExpression(Optional<? extends Expression> canRemoveRowWhenExpression) Initializes the optional valuecanRemoveRowWhenExpressionto canRemoveRowWhenExpression.final ImmutableGroup.BuilderclassName(Expression className) Initializes the optional valueclassNameto className.final ImmutableGroup.BuilderclassName(Optional<? extends Expression> className) Initializes the optional valueclassNameto className.final ImmutableGroup.BuilderdefaultValue(Object defaultValue) Initializes the optional valuedefaultValueto defaultValue.final ImmutableGroup.BuilderdefaultValue(Optional<? extends Object> defaultValue) Initializes the optional valuedefaultValueto defaultValue.final ImmutableGroup.BuilderdescriptionExpression(Expression descriptionExpression) Initializes the optional valuedescriptionExpressionto descriptionExpression.final ImmutableGroup.BuilderdescriptionExpression(Optional<? extends Expression> descriptionExpression) Initializes the optional valuedescriptionExpressionto descriptionExpression.final ImmutableGroup.BuilderdisabledExpression(Expression disabledExpression) Initializes the optional valuedisabledExpressionto disabledExpression.final ImmutableGroup.BuilderdisabledExpression(Optional<? extends Expression> disabledExpression) Initializes the optional valuedisabledExpressionto disabledExpression.final ImmutableGroup.BuilderSets or replaces all elements forerrorslist.final ImmutableGroup.Builderfrom(DisplayItem instance) Fill a builder with attribute values from the providedio.dialob.session.engine.program.model.DisplayIteminstance.final ImmutableGroup.BuilderFill a builder with attribute values from the providedio.dialob.session.engine.program.model.Groupinstance.final ImmutableGroup.BuilderFill a builder with attribute values from the providedio.dialob.session.engine.program.model.Iteminstance.final ImmutableGroup.Builderfrom(StructuralNode instance) Fill a builder with attribute values from the providedio.dialob.session.engine.program.model.StructuralNodeinstance.final ImmutableGroup.BuilderInitializes the value for theidattribute.final ImmutableGroup.BuilderisInvalidAnswersExpression(Expression isInvalidAnswersExpression) Initializes the optional valueisInvalidAnswersExpressionto isInvalidAnswersExpression.final ImmutableGroup.BuilderisInvalidAnswersExpression(Optional<? extends Expression> isInvalidAnswersExpression) Initializes the optional valueisInvalidAnswersExpressionto isInvalidAnswersExpression.final ImmutableGroup.BuilderisPrototype(boolean isPrototype) Initializes the value for theisPrototypeattribute.final ImmutableGroup.BuilderitemsExpression(Expression itemsExpression) Initializes the value for theitemsExpressionattribute.final ImmutableGroup.BuilderlabelExpression(Expression labelExpression) Initializes the optional valuelabelExpressionto labelExpression.final ImmutableGroup.BuilderlabelExpression(Optional<? extends Expression> labelExpression) Initializes the optional valuelabelExpressionto labelExpression.final ImmutableGroup.BuilderSets or replaces all mappings from the specified map as entries for thepropsmap.final ImmutableGroup.BuilderputAllProps(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries topropsmap.final ImmutableGroup.BuilderPut one entry to thepropsmap.final ImmutableGroup.BuilderPut one entry to thepropsmap.final ImmutableGroup.BuilderrequiredExpression(Expression requiredExpression) Initializes the optional valuerequiredExpressionto requiredExpression.final ImmutableGroup.BuilderrequiredExpression(Optional<? extends Expression> requiredExpression) Initializes the optional valuerequiredExpressionto requiredExpression.final ImmutableGroup.BuilderInitializes the value for thetypeattribute.final ImmutableGroup.BuildervalueSetId(String valueSetId) Initializes the optional valuevalueSetIdto valueSetId.final ImmutableGroup.BuildervalueSetId(Optional<String> valueSetId) Initializes the optional valuevalueSetIdto valueSetId.final ImmutableGroup.BuilderInitializes the value for thevalueTypeattribute.final ImmutableGroup.BuilderInitializes the value for theviewattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedio.dialob.session.engine.program.model.Iteminstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.dialob.session.engine.program.model.DisplayIteminstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.dialob.session.engine.program.model.Groupinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.dialob.session.engine.program.model.StructuralNodeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
isPrototype
Initializes the value for theisPrototypeattribute.If not set, this attribute will have a default value as returned by the initializer of
isPrototype.- Parameters:
isPrototype- The value for isPrototype- Returns:
thisbuilder for use in a chained invocation
-
id
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
type
Initializes the value for thetypeattribute.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
valueType
Initializes the value for thevalueTypeattribute.- Parameters:
valueType- The value for valueType (can benull)- Returns:
thisbuilder for use in a chained invocation
-
valueSetId
Initializes the optional valuevalueSetIdto valueSetId.- Parameters:
valueSetId- The value for valueSetId- Returns:
thisbuilder for chained invocation
-
valueSetId
Initializes the optional valuevalueSetIdto valueSetId.- Parameters:
valueSetId- The value for valueSetId- Returns:
thisbuilder for use in a chained invocation
-
defaultValue
Initializes the optional valuedefaultValueto defaultValue.- Parameters:
defaultValue- The value for defaultValue- Returns:
thisbuilder for chained invocation
-
defaultValue
@CanIgnoreReturnValue public final ImmutableGroup.Builder defaultValue(Optional<? extends Object> defaultValue) Initializes the optional valuedefaultValueto defaultValue.- Parameters:
defaultValue- The value for defaultValue- Returns:
thisbuilder for use in a chained invocation
-
view
Initializes the value for theviewattribute.- Parameters:
view- The value for view (can benull)- Returns:
thisbuilder for use in a chained invocation
-
putProps
@CanIgnoreReturnValue public final ImmutableGroup.Builder putProps(@Nullable String key, @Nullable Object value) Put one entry to thepropsmap.- Parameters:
key- The key in the props mapvalue- The associated value in the props map- Returns:
thisbuilder for use in a chained invocation
-
putProps
@CanIgnoreReturnValue public final ImmutableGroup.Builder putProps(Map.Entry<String, ? extends Object> entry) Put one entry to thepropsmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
props
@CanIgnoreReturnValue public final ImmutableGroup.Builder props(@Nullable Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for thepropsmap. Nulls are not permitted as keys or values, but parameter itself can be null- Parameters:
entries- The entries that will be added to the props map- Returns:
thisbuilder for use in a chained invocation
-
putAllProps
@CanIgnoreReturnValue public final ImmutableGroup.Builder putAllProps(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries topropsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the props map- Returns:
thisbuilder for use in a chained invocation
-
className
Initializes the optional valueclassNameto className.- Parameters:
className- The value for className- Returns:
thisbuilder for chained invocation
-
className
@CanIgnoreReturnValue public final ImmutableGroup.Builder className(Optional<? extends Expression> className) Initializes the optional valueclassNameto className.- Parameters:
className- The value for className- Returns:
thisbuilder for use in a chained invocation
-
activeExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder activeExpression(Expression activeExpression) Initializes the optional valueactiveExpressionto activeExpression.- Parameters:
activeExpression- The value for activeExpression- Returns:
thisbuilder for chained invocation
-
activeExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder activeExpression(Optional<? extends Expression> activeExpression) Initializes the optional valueactiveExpressionto activeExpression.- Parameters:
activeExpression- The value for activeExpression- Returns:
thisbuilder for use in a chained invocation
-
requiredExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder requiredExpression(Expression requiredExpression) Initializes the optional valuerequiredExpressionto requiredExpression.- Parameters:
requiredExpression- The value for requiredExpression- Returns:
thisbuilder for chained invocation
-
requiredExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder requiredExpression(Optional<? extends Expression> requiredExpression) Initializes the optional valuerequiredExpressionto requiredExpression.- Parameters:
requiredExpression- The value for requiredExpression- Returns:
thisbuilder for use in a chained invocation
-
disabledExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder disabledExpression(Expression disabledExpression) Initializes the optional valuedisabledExpressionto disabledExpression.- Parameters:
disabledExpression- The value for disabledExpression- Returns:
thisbuilder for chained invocation
-
disabledExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder disabledExpression(Optional<? extends Expression> disabledExpression) Initializes the optional valuedisabledExpressionto disabledExpression.- Parameters:
disabledExpression- The value for disabledExpression- Returns:
thisbuilder for use in a chained invocation
-
labelExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder labelExpression(Expression labelExpression) Initializes the optional valuelabelExpressionto labelExpression.- Parameters:
labelExpression- The value for labelExpression- Returns:
thisbuilder for chained invocation
-
labelExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder labelExpression(Optional<? extends Expression> labelExpression) Initializes the optional valuelabelExpressionto labelExpression.- Parameters:
labelExpression- The value for labelExpression- Returns:
thisbuilder for use in a chained invocation
-
descriptionExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder descriptionExpression(Expression descriptionExpression) Initializes the optional valuedescriptionExpressionto descriptionExpression.- Parameters:
descriptionExpression- The value for descriptionExpression- Returns:
thisbuilder for chained invocation
-
descriptionExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder descriptionExpression(Optional<? extends Expression> descriptionExpression) Initializes the optional valuedescriptionExpressionto descriptionExpression.- Parameters:
descriptionExpression- The value for descriptionExpression- Returns:
thisbuilder for use in a chained invocation
-
addErrors
Adds one element toerrorslist.- Parameters:
element- A errors element- Returns:
thisbuilder for use in a chained invocation
-
addErrors
Adds elements toerrorslist.- Parameters:
elements- An array of errors elements- Returns:
thisbuilder for use in a chained invocation
-
errors
@CanIgnoreReturnValue public final ImmutableGroup.Builder errors(Iterable<? extends Error> elements) Sets or replaces all elements forerrorslist.- Parameters:
elements- An iterable of errors elements- Returns:
thisbuilder for use in a chained invocation
-
addAllErrors
@CanIgnoreReturnValue public final ImmutableGroup.Builder addAllErrors(Iterable<? extends Error> elements) Adds elements toerrorslist.- Parameters:
elements- An iterable of errors elements- Returns:
thisbuilder for use in a chained invocation
-
itemsExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder itemsExpression(Expression itemsExpression) Initializes the value for theitemsExpressionattribute.- Parameters:
itemsExpression- The value for itemsExpression- Returns:
thisbuilder for use in a chained invocation
-
availableItemsExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder availableItemsExpression(Expression availableItemsExpression) Initializes the optional valueavailableItemsExpressionto availableItemsExpression.- Parameters:
availableItemsExpression- The value for availableItemsExpression- Returns:
thisbuilder for chained invocation
-
availableItemsExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder availableItemsExpression(Optional<? extends Expression> availableItemsExpression) Initializes the optional valueavailableItemsExpressionto availableItemsExpression.- Parameters:
availableItemsExpression- The value for availableItemsExpression- Returns:
thisbuilder for use in a chained invocation
-
isInvalidAnswersExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder isInvalidAnswersExpression(Expression isInvalidAnswersExpression) Initializes the optional valueisInvalidAnswersExpressionto isInvalidAnswersExpression.- Parameters:
isInvalidAnswersExpression- The value for isInvalidAnswersExpression- Returns:
thisbuilder for chained invocation
-
isInvalidAnswersExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder isInvalidAnswersExpression(Optional<? extends Expression> isInvalidAnswersExpression) Initializes the optional valueisInvalidAnswersExpressionto isInvalidAnswersExpression.- Parameters:
isInvalidAnswersExpression- The value for isInvalidAnswersExpression- Returns:
thisbuilder for use in a chained invocation
-
allowedActionsExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder allowedActionsExpression(Expression allowedActionsExpression) Initializes the optional valueallowedActionsExpressionto allowedActionsExpression.- Parameters:
allowedActionsExpression- The value for allowedActionsExpression- Returns:
thisbuilder for chained invocation
-
allowedActionsExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder allowedActionsExpression(Optional<? extends Expression> allowedActionsExpression) Initializes the optional valueallowedActionsExpressionto allowedActionsExpression.- Parameters:
allowedActionsExpression- The value for allowedActionsExpression- Returns:
thisbuilder for use in a chained invocation
-
canAddRowWhenExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder canAddRowWhenExpression(Expression canAddRowWhenExpression) Initializes the optional valuecanAddRowWhenExpressionto canAddRowWhenExpression.- Parameters:
canAddRowWhenExpression- The value for canAddRowWhenExpression- Returns:
thisbuilder for chained invocation
-
canAddRowWhenExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder canAddRowWhenExpression(Optional<? extends Expression> canAddRowWhenExpression) Initializes the optional valuecanAddRowWhenExpressionto canAddRowWhenExpression.- Parameters:
canAddRowWhenExpression- The value for canAddRowWhenExpression- Returns:
thisbuilder for use in a chained invocation
-
canRemoveRowWhenExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder canRemoveRowWhenExpression(Expression canRemoveRowWhenExpression) Initializes the optional valuecanRemoveRowWhenExpressionto canRemoveRowWhenExpression.- Parameters:
canRemoveRowWhenExpression- The value for canRemoveRowWhenExpression- Returns:
thisbuilder for chained invocation
-
canRemoveRowWhenExpression
@CanIgnoreReturnValue public final ImmutableGroup.Builder canRemoveRowWhenExpression(Optional<? extends Expression> canRemoveRowWhenExpression) Initializes the optional valuecanRemoveRowWhenExpressionto canRemoveRowWhenExpression.- Parameters:
canRemoveRowWhenExpression- The value for canRemoveRowWhenExpression- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableGroup.- Returns:
- An immutable instance of Group
- Throws:
IllegalStateException- if any required attributes are missing
-