public class PatchResourceHandler extends AbstractPatch
The result of the add operation depends upon what the target location
indicated by "path" references:
o If omitted, the target location is assumed to be the resource
itself. The "value" parameter contains a set of attributes to be
added to the resource.
resourceType| Constructor and Description |
|---|
PatchResourceHandler(ResourceType resourceType,
PatchOp op) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addResourceValues(com.fasterxml.jackson.databind.node.ObjectNode resource,
com.fasterxml.jackson.databind.JsonNode readJsonDocument,
String extensionUri)
adds the values of the patch operation into the given resource node
|
getAttributeFromObject, getSchemaAttributepublic PatchResourceHandler(ResourceType resourceType, PatchOp op)
public boolean addResourceValues(com.fasterxml.jackson.databind.node.ObjectNode resource,
com.fasterxml.jackson.databind.JsonNode readJsonDocument,
String extensionUri)
resource - the resource node into which the values should be addedreadJsonDocument - the patch operation resource from which the values should be added into the
resource nodeextensionUri - this extensionUri is used for resolving extensions in the resource if name conflicts do
exist we need the fully qualified name for verifying the attributes.Copyright © 2019. All rights reserved.