Class ImmutableGroup
java.lang.Object
io.dialob.session.engine.program.model.ImmutableGroup
- All Implemented Interfaces:
DisplayItem,Group,Item,ProgramNode,StructuralNode,Serializable
@Generated(from="Group",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableGroup
extends Object
implements Group
Immutable implementation of
Group.
Use the builder to create immutable instances:
ImmutableGroup.builder().
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableGroup.Builderbuilder()Creates a builder forImmutableGroup.static ImmutableGroupCreates an immutable copy of aGroupvalue.booleanThis instance is equal to all instances ofImmutableGroupthat have equal attribute values.getId()getProps()getType()getView()inthashCode()Computes a hash code from attributes:isPrototype,id,type,valueType,valueSetId,defaultValue,view,props,className,activeExpression,requiredExpression,disabledExpression,labelExpression,descriptionExpression,errors,itemsExpression,availableItemsExpression,isInvalidAnswersExpression,allowedActionsExpression,canAddRowWhenExpression,canRemoveRowWhenExpression.booleantoString()Prints the immutable valueGroupwith attribute values.final ImmutableGroupwithActiveExpression(Expression value) Copy the current immutable object by setting a present value for the optionalactiveExpressionattribute.final ImmutableGroupwithActiveExpression(Optional<? extends Expression> optional) Copy the current immutable object by setting an optional value for theactiveExpressionattribute.final ImmutableGroupCopy the current immutable object by setting a present value for the optionalallowedActionsExpressionattribute.final ImmutableGroupwithAllowedActionsExpression(Optional<? extends Expression> optional) Copy the current immutable object by setting an optional value for theallowedActionsExpressionattribute.final ImmutableGroupCopy the current immutable object by setting a present value for the optionalavailableItemsExpressionattribute.final ImmutableGroupwithAvailableItemsExpression(Optional<? extends Expression> optional) Copy the current immutable object by setting an optional value for theavailableItemsExpressionattribute.final ImmutableGroupCopy the current immutable object by setting a present value for the optionalcanAddRowWhenExpressionattribute.final ImmutableGroupwithCanAddRowWhenExpression(Optional<? extends Expression> optional) Copy the current immutable object by setting an optional value for thecanAddRowWhenExpressionattribute.final ImmutableGroupCopy the current immutable object by setting a present value for the optionalcanRemoveRowWhenExpressionattribute.final ImmutableGroupwithCanRemoveRowWhenExpression(Optional<? extends Expression> optional) Copy the current immutable object by setting an optional value for thecanRemoveRowWhenExpressionattribute.final ImmutableGroupwithClassName(Expression value) Copy the current immutable object by setting a present value for the optionalclassNameattribute.final ImmutableGroupwithClassName(Optional<? extends Expression> optional) Copy the current immutable object by setting an optional value for theclassNameattribute.final ImmutableGroupwithDefaultValue(Object value) Copy the current immutable object by setting a present value for the optionaldefaultValueattribute.final ImmutableGroupwithDefaultValue(Optional<? extends Object> optional) Copy the current immutable object by setting an optional value for thedefaultValueattribute.final ImmutableGroupCopy the current immutable object by setting a present value for the optionaldescriptionExpressionattribute.final ImmutableGroupwithDescriptionExpression(Optional<? extends Expression> optional) Copy the current immutable object by setting an optional value for thedescriptionExpressionattribute.final ImmutableGroupwithDisabledExpression(Expression value) Copy the current immutable object by setting a present value for the optionaldisabledExpressionattribute.final ImmutableGroupwithDisabledExpression(Optional<? extends Expression> optional) Copy the current immutable object by setting an optional value for thedisabledExpressionattribute.final ImmutableGroupwithErrors(Error... elements) Copy the current immutable object with elements that replace the content oferrors.final ImmutableGroupwithErrors(Iterable<? extends Error> elements) Copy the current immutable object with elements that replace the content oferrors.final ImmutableGroupCopy the current immutable object by setting a value for theidattribute.final ImmutableGroupCopy the current immutable object by setting a present value for the optionalisInvalidAnswersExpressionattribute.final ImmutableGroupwithIsInvalidAnswersExpression(Optional<? extends Expression> optional) Copy the current immutable object by setting an optional value for theisInvalidAnswersExpressionattribute.final ImmutableGroupwithIsPrototype(boolean value) Copy the current immutable object by setting a value for theisPrototypeattribute.final ImmutableGroupwithItemsExpression(Expression value) Copy the current immutable object by setting a value for theitemsExpressionattribute.final ImmutableGroupwithLabelExpression(Expression value) Copy the current immutable object by setting a present value for the optionallabelExpressionattribute.final ImmutableGroupwithLabelExpression(Optional<? extends Expression> optional) Copy the current immutable object by setting an optional value for thelabelExpressionattribute.final ImmutableGroupCopy the current immutable object by replacing thepropsmap with the specified map.final ImmutableGroupwithRequiredExpression(Expression value) Copy the current immutable object by setting a present value for the optionalrequiredExpressionattribute.final ImmutableGroupwithRequiredExpression(Optional<? extends Expression> optional) Copy the current immutable object by setting an optional value for therequiredExpressionattribute.final ImmutableGroupCopy the current immutable object by setting a value for thetypeattribute.final ImmutableGroupwithValueSetId(String value) Copy the current immutable object by setting a present value for the optionalvalueSetIdattribute.final ImmutableGroupwithValueSetId(Optional<String> optional) Copy the current immutable object by setting an optional value for thevalueSetIdattribute.final ImmutableGroupwithValueType(ValueType value) Copy the current immutable object by setting a value for thevalueTypeattribute.final ImmutableGroupCopy the current immutable object by setting a value for theviewattribute.
-
Method Details
-
isPrototype
public boolean isPrototype()- Specified by:
isPrototypein interfaceStructuralNode- Returns:
- The value of the
isPrototypeattribute
-
getId
-
getType
-
getValueType
- Specified by:
getValueTypein interfaceItem- Returns:
- The value of the
valueTypeattribute
-
getValueSetId
- Specified by:
getValueSetIdin interfaceItem- Returns:
- The value of the
valueSetIdattribute
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceItem- Returns:
- The value of the
defaultValueattribute
-
getView
- Specified by:
getViewin interfaceDisplayItem- Returns:
- The value of the
viewattribute
-
getProps
- Specified by:
getPropsin interfaceDisplayItem- Returns:
- The value of the
propsattribute
-
getClassName
- Specified by:
getClassNamein interfaceDisplayItem- Returns:
- The value of the
classNameattribute
-
getActiveExpression
- Specified by:
getActiveExpressionin interfaceDisplayItem- Returns:
- The value of the
activeExpressionattribute
-
getRequiredExpression
- Specified by:
getRequiredExpressionin interfaceDisplayItem- Returns:
- The value of the
requiredExpressionattribute
-
getDisabledExpression
- Specified by:
getDisabledExpressionin interfaceDisplayItem- Returns:
- The value of the
disabledExpressionattribute
-
getLabelExpression
- Specified by:
getLabelExpressionin interfaceDisplayItem- Returns:
- The value of the
labelExpressionattribute
-
getDescriptionExpression
- Specified by:
getDescriptionExpressionin interfaceDisplayItem- Returns:
- The value of the
descriptionExpressionattribute
-
getErrors
- Specified by:
getErrorsin interfaceDisplayItem- Returns:
- The value of the
errorsattribute
-
getItemsExpression
- Specified by:
getItemsExpressionin interfaceGroup- Returns:
- The value of the
itemsExpressionattribute
-
getAvailableItemsExpression
- Specified by:
getAvailableItemsExpressionin interfaceGroup- Returns:
- The value of the
availableItemsExpressionattribute
-
getIsInvalidAnswersExpression
- Specified by:
getIsInvalidAnswersExpressionin interfaceGroup- Returns:
- The value of the
isInvalidAnswersExpressionattribute
-
getAllowedActionsExpression
- Specified by:
getAllowedActionsExpressionin interfaceGroup- Returns:
- The value of the
allowedActionsExpressionattribute
-
getCanAddRowWhenExpression
- Specified by:
getCanAddRowWhenExpressionin interfaceGroup- Returns:
- The value of the
canAddRowWhenExpressionattribute
-
getCanRemoveRowWhenExpression
- Specified by:
getCanRemoveRowWhenExpressionin interfaceGroup- Returns:
- The value of the
canRemoveRowWhenExpressionattribute
-
withIsPrototype
Copy the current immutable object by setting a value for theisPrototypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isPrototype- Returns:
- A modified copy or the
thisobject
-
withId
Copy the current immutable object by setting a value for theidattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy or the
thisobject
-
withType
Copy the current immutable object by setting a value for thetypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
withValueType
Copy the current immutable object by setting a value for thevalueTypeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for valueType (can benull)- Returns:
- A modified copy or the
thisobject
-
withValueSetId
Copy the current immutable object by setting a present value for the optionalvalueSetIdattribute.- Parameters:
value- The value for valueSetId- Returns:
- A modified copy or
thisif not changed
-
withValueSetId
Copy the current immutable object by setting an optional value for thevalueSetIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for valueSetId- Returns:
- A modified copy or
thisif not changed
-
withDefaultValue
Copy the current immutable object by setting a present value for the optionaldefaultValueattribute.- Parameters:
value- The value for defaultValue- Returns:
- A modified copy or
thisif not changed
-
withDefaultValue
Copy the current immutable object by setting an optional value for thedefaultValueattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for defaultValue- Returns:
- A modified copy or
thisif not changed
-
withView
Copy the current immutable object by setting a value for theviewattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for view (can benull)- Returns:
- A modified copy or the
thisobject
-
withProps
Copy the current immutable object by replacing thepropsmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to replace the props map- Returns:
- A modified copy or
thisif not changed
-
withClassName
Copy the current immutable object by setting a present value for the optionalclassNameattribute.- Parameters:
value- The value for className- Returns:
- A modified copy or
thisif not changed
-
withClassName
Copy the current immutable object by setting an optional value for theclassNameattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for className- Returns:
- A modified copy or
thisif not changed
-
withActiveExpression
Copy the current immutable object by setting a present value for the optionalactiveExpressionattribute.- Parameters:
value- The value for activeExpression- Returns:
- A modified copy or
thisif not changed
-
withActiveExpression
Copy the current immutable object by setting an optional value for theactiveExpressionattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for activeExpression- Returns:
- A modified copy or
thisif not changed
-
withRequiredExpression
Copy the current immutable object by setting a present value for the optionalrequiredExpressionattribute.- Parameters:
value- The value for requiredExpression- Returns:
- A modified copy or
thisif not changed
-
withRequiredExpression
Copy the current immutable object by setting an optional value for therequiredExpressionattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for requiredExpression- Returns:
- A modified copy or
thisif not changed
-
withDisabledExpression
Copy the current immutable object by setting a present value for the optionaldisabledExpressionattribute.- Parameters:
value- The value for disabledExpression- Returns:
- A modified copy or
thisif not changed
-
withDisabledExpression
Copy the current immutable object by setting an optional value for thedisabledExpressionattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for disabledExpression- Returns:
- A modified copy or
thisif not changed
-
withLabelExpression
Copy the current immutable object by setting a present value for the optionallabelExpressionattribute.- Parameters:
value- The value for labelExpression- Returns:
- A modified copy or
thisif not changed
-
withLabelExpression
Copy the current immutable object by setting an optional value for thelabelExpressionattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for labelExpression- Returns:
- A modified copy or
thisif not changed
-
withDescriptionExpression
Copy the current immutable object by setting a present value for the optionaldescriptionExpressionattribute.- Parameters:
value- The value for descriptionExpression- Returns:
- A modified copy or
thisif not changed
-
withDescriptionExpression
Copy the current immutable object by setting an optional value for thedescriptionExpressionattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for descriptionExpression- Returns:
- A modified copy or
thisif not changed
-
withErrors
Copy the current immutable object with elements that replace the content oferrors.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withErrors
Copy the current immutable object with elements that replace the content oferrors. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of errors elements to set- Returns:
- A modified copy or
thisif not changed
-
withItemsExpression
Copy the current immutable object by setting a value for theitemsExpressionattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for itemsExpression- Returns:
- A modified copy or the
thisobject
-
withAvailableItemsExpression
Copy the current immutable object by setting a present value for the optionalavailableItemsExpressionattribute.- Parameters:
value- The value for availableItemsExpression- Returns:
- A modified copy or
thisif not changed
-
withAvailableItemsExpression
Copy the current immutable object by setting an optional value for theavailableItemsExpressionattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for availableItemsExpression- Returns:
- A modified copy or
thisif not changed
-
withIsInvalidAnswersExpression
Copy the current immutable object by setting a present value for the optionalisInvalidAnswersExpressionattribute.- Parameters:
value- The value for isInvalidAnswersExpression- Returns:
- A modified copy or
thisif not changed
-
withIsInvalidAnswersExpression
Copy the current immutable object by setting an optional value for theisInvalidAnswersExpressionattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for isInvalidAnswersExpression- Returns:
- A modified copy or
thisif not changed
-
withAllowedActionsExpression
Copy the current immutable object by setting a present value for the optionalallowedActionsExpressionattribute.- Parameters:
value- The value for allowedActionsExpression- Returns:
- A modified copy or
thisif not changed
-
withAllowedActionsExpression
Copy the current immutable object by setting an optional value for theallowedActionsExpressionattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for allowedActionsExpression- Returns:
- A modified copy or
thisif not changed
-
withCanAddRowWhenExpression
Copy the current immutable object by setting a present value for the optionalcanAddRowWhenExpressionattribute.- Parameters:
value- The value for canAddRowWhenExpression- Returns:
- A modified copy or
thisif not changed
-
withCanAddRowWhenExpression
Copy the current immutable object by setting an optional value for thecanAddRowWhenExpressionattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for canAddRowWhenExpression- Returns:
- A modified copy or
thisif not changed
-
withCanRemoveRowWhenExpression
Copy the current immutable object by setting a present value for the optionalcanRemoveRowWhenExpressionattribute.- Parameters:
value- The value for canRemoveRowWhenExpression- Returns:
- A modified copy or
thisif not changed
-
withCanRemoveRowWhenExpression
Copy the current immutable object by setting an optional value for thecanRemoveRowWhenExpressionattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for canRemoveRowWhenExpression- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofImmutableGroupthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:isPrototype,id,type,valueType,valueSetId,defaultValue,view,props,className,activeExpression,requiredExpression,disabledExpression,labelExpression,descriptionExpression,errors,itemsExpression,availableItemsExpression,isInvalidAnswersExpression,allowedActionsExpression,canAddRowWhenExpression,canRemoveRowWhenExpression. -
toString
Prints the immutable valueGroupwith attribute values. -
copyOf
Creates an immutable copy of aGroupvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable Group instance
-
builder
Creates a builder forImmutableGroup.ImmutableGroup.builder() .isPrototype(boolean) // optionalisPrototype.id(io.dialob.session.engine.session.model.ItemId) // requiredid.type(String) // requiredtype.valueType(io.dialob.rule.parser.api.ValueType | null) // nullablevalueType.valueSetId(Optional<String>) // optionalvalueSetId.defaultValue(Optional<Object>) // optionaldefaultValue.view(String | null) // nullableview.props(Map<String, Object> | null) // nullableprops.className(Optional<io.dialob.session.engine.program.model.Expression>) // optionalclassName.activeExpression(Optional<io.dialob.session.engine.program.model.Expression>) // optionalactiveExpression.requiredExpression(Optional<io.dialob.session.engine.program.model.Expression>) // optionalrequiredExpression.disabledExpression(Optional<io.dialob.session.engine.program.model.Expression>) // optionaldisabledExpression.labelExpression(Optional<io.dialob.session.engine.program.model.Expression>) // optionallabelExpression.descriptionExpression(Optional<io.dialob.session.engine.program.model.Expression>) // optionaldescriptionExpression.addErrors|addAllErrors(io.dialob.session.engine.program.model.Error) //errorselements .itemsExpression(io.dialob.session.engine.program.model.Expression) // requireditemsExpression.availableItemsExpression(Optional<io.dialob.session.engine.program.model.Expression>) // optionalavailableItemsExpression.isInvalidAnswersExpression(Optional<io.dialob.session.engine.program.model.Expression>) // optionalisInvalidAnswersExpression.allowedActionsExpression(Optional<io.dialob.session.engine.program.model.Expression>) // optionalallowedActionsExpression.canAddRowWhenExpression(Optional<io.dialob.session.engine.program.model.Expression>) // optionalcanAddRowWhenExpression.canRemoveRowWhenExpression(Optional<io.dialob.session.engine.program.model.Expression>) // optionalcanRemoveRowWhenExpression.build();- Returns:
- A new ImmutableGroup builder
-