public abstract class PatchOperation extends Object
| Modifier and Type | Field and Description |
|---|---|
protected @NonNull String |
op |
protected @NonNull org.springframework.data.rest.webmvc.json.patch.SpelPath.UntypedSpelPath |
path |
protected Object |
value |
| Constructor and Description |
|---|
PatchOperation(String op,
org.springframework.data.rest.webmvc.json.patch.SpelPath.UntypedSpelPath path)
Constructs the operation.
|
PatchOperation(@NonNull String op,
@NonNull org.springframework.data.rest.webmvc.json.patch.SpelPath.UntypedSpelPath path,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
evaluate(Class<?> type) |
protected Object |
evaluateValueFromTarget(Object targetObject,
Class<?> entityType)
Performs late-value evaluation on the operation value if the value is a
LateObjectEvaluator. |
@NonNull protected final @NonNull String op
@NonNull protected final @NonNull org.springframework.data.rest.webmvc.json.patch.SpelPath.UntypedSpelPath path
protected final Object value
public PatchOperation(String op, org.springframework.data.rest.webmvc.json.patch.SpelPath.UntypedSpelPath path)
op - the operation name. (e.g., 'move')path - the path to perform the operation on. (e.g., '/1/description')protected Object evaluateValueFromTarget(Object targetObject, Class<?> entityType)
LateObjectEvaluator.T - the entity typetargetObject - the target object, used as assistance in determining the evaluated object's type.entityType - the entityTypeLateObjectEvaluator; the value itself
otherwise.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.