@Beta public final class SetAction extends UpdateAction
A SET action is used to add one or more attributes and values to an item. If any of these attribute already exist, they are replaced by the new values.
This object is as immutable (or unmodifiable) as the underlying value (of
type UnitOfExpression
) given during construction.
Constructor and Description |
---|
SetAction(PathOperand attr,
UnitOfExpression value) |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.String |
asSubstituted(SubstitutionContext context)
Returns the operand for this update expression as a string, substituted
if necessary with tokens using the given substitution context.
|
getOperator, getPathOperand, getValue
SetAction(PathOperand attr, UnitOfExpression value)
java.lang.String asSubstituted(SubstitutionContext context)
asSubstituted
in class UpdateAction
context
- the substitution context which may get mutated as a side
effect upon completion of this method