#include <DomPatch.h>
A set of operations that can be applied to a Value to produce a new Value.
- See also
- PatchOperation
◆ Apply()
Applies this patch to the given DOM element.
- Parameters
-
rootElement | The DOM element to patch. |
strategy | A callback to be run after every patch application, see PatchApplicationState. |
- Returns
- an outcome with either the patched element or an error string
◆ ApplyAndDenormalize()
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.
- Parameters
-
rootElement | The DOM element to patch. |
strategy | A callback to be run after every patch application, see PatchApplicationState. |
- Returns
- an outcome with either the patched element or an error string
◆ ApplyInPlace()
Applies this patch to the given DOM element in place, changing it to the new value.
- Parameters
-
rootElement | The DOM element to patch. |
strategy | A callback to be run after every patch application, see PatchApplicationState. |
- Returns
- an outcome with either the patched element or an error string
◆ ApplyInPlaceAndDenormalize()
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.
- Parameters
-
rootElement | The DOM element to patch. |
strategy | A callback to be run after every patch application, see PatchApplicationState. |
- Returns
- an outcome with either the patched element or an error string
◆ ContainsNormalizedEntries()
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.
The documentation for this class was generated from the following file:
- Code/Framework/AzCore/AzCore/DOM/DomPatch.h