#include <DomPatch.h>
Public Types | |
| using | StrategyFunctor = AZStd::function< void(PatchApplicationState &)> |
| using | OperationsContainer = AZStd::deque< PatchOperation > |
Static Public Member Functions | |
| static AZ::Outcome< Patch, AZStd::string > | CreateFromDomRepresentation (Value domValue) |
A set of operations that can be applied to a Value to produce a new Value.
| AZ::Outcome< Value, AZStd::string > AZ::Dom::Patch::Apply | ( | Value | rootElement, |
| StrategyFunctor | strategy = PatchApplicationStrategy::HaltOnFailure |
||
| ) | const |
Applies this patch to the given DOM element.
| rootElement | The DOM element to patch. |
| strategy | A callback to be run after every patch application, see PatchApplicationState. |
| AZ::Outcome< Value, AZStd::string > AZ::Dom::Patch::ApplyAndDenormalize | ( | Value | rootElement, |
| StrategyFunctor | strategy = PatchApplicationStrategy::HaltOnFailure |
||
| ) |
Applies this patch to the given DOM element. After applying the patch, any "EndOfArray" patch entries are denormalized into their resolved paths. This operation mutates the underyling patch operations; make a copy if you wish to keep the original patch.
| rootElement | The DOM element to patch. |
| strategy | A callback to be run after every patch application, see PatchApplicationState. |
| PatchOutcome AZ::Dom::Patch::ApplyInPlace | ( | Value & | rootElement, |
| StrategyFunctor | strategy = PatchApplicationStrategy::HaltOnFailure |
||
| ) | const |
Applies this patch to the given DOM element in place, changing it to the new value.
| rootElement | The DOM element to patch. |
| strategy | A callback to be run after every patch application, see PatchApplicationState. |
| PatchOutcome AZ::Dom::Patch::ApplyInPlaceAndDenormalize | ( | Value & | rootElement, |
| StrategyFunctor | strategy = PatchApplicationStrategy::HaltOnFailure |
||
| ) |
Applies this patch to the given DOM element in place, changing it to the new value. After applying the patch, any "EndOfArray" patch entries are denormalized into their resolved paths. This operation mutates the underyling patch operations; make a copy if you wish to keep the original patch.
| rootElement | The DOM element to patch. |
| strategy | A callback to be run after every patch application, see PatchApplicationState. |
| bool AZ::Dom::Patch::ContainsNormalizedEntries | ( | ) | const |
Returns true if any of this patch's operations contain an "EndOfArray" entry inside their paths, meaning the path requires a lookup inside a target DOM.