public class JsonPatch
extends AbstractInternalObject
Constructor and Description |
---|
JsonPatch(JavaFormula jf) |
Modifier and Type | Method and Description |
---|---|
JsonPatch |
add(DbChar path,
DbBigInt value)
Adds an "add" JSON Patch operation.
|
JsonPatch |
add(DbChar path,
DbBit value)
Adds an "add" JSON Patch operation.
|
JsonPatch |
add(DbChar path,
DbChar value)
Adds an "add" JSON Patch operation.
|
JsonPatch |
add(DbChar path,
fJsonArray value)
Adds an "add" JSON Patch operation.
|
JsonPatch |
add(DbChar path,
fJsonObject value)
Adds an "add" JSON Patch operation.
|
fJsonObject |
apply(fJsonObject target)
Applies the json patch to a JsonObject.
|
JsonPatch |
copy(DbChar path,
DbChar from)
Adds an "copy" JSON Patch operation.
|
JsonPatch |
move(DbChar path,
DbChar from)
Adds an "move" JSON Patch operation.
|
JsonPatch |
remove(DbChar path)
Adds a "remove" JSON Patch operation.
|
JsonPatch |
replace(DbChar path,
DbBigInt value)
Adds an "replace" JSON Patch operation.
|
JsonPatch |
replace(DbChar path,
DbBit value)
Adds an "replace" JSON Patch operation.
|
JsonPatch |
replace(DbChar path,
DbChar value)
Adds an "replace" JSON Patch operation.
|
JsonPatch |
replace(DbChar path,
fJsonArray value)
Adds an "replace" JSON Patch operation.
|
JsonPatch |
replace(DbChar path,
fJsonObject value)
Adds an "replace" JSON Patch operation.
|
JsonPatch |
start()
This is always the first method to call to start defining a json patch.
|
public JsonPatch start()
public JsonPatch add(DbChar path, DbChar value)
path
- String, the "path" member of the operationvalue
- String, the "value" member of the operationpublic JsonPatch add(DbChar path, DbBit value)
path
- String, the "path" member of the operationvalue
- Boolean, the "value" member of the operationpublic JsonPatch add(DbChar path, DbBigInt value)
path
- String, the "path" member of the operationvalue
- Integer, the "value" member of the operationpublic JsonPatch add(DbChar path, fJsonObject value)
path
- String, the "path" member of the operationvalue
- JsonObject, the "value" member of the operationpublic JsonPatch add(DbChar path, fJsonArray value)
path
- String, the "path" member of the operationvalue
- JsonArray, the "value" member of the operationpublic JsonPatch remove(DbChar path)
path
- String, the "path" member of the operationpublic JsonPatch replace(DbChar path, DbChar value)
path
- String, the "path" member of the operationvalue
- String, the "value" member of the operationpublic JsonPatch replace(DbChar path, DbBit value)
path
- String, the "path" member of the operationvalue
- Boolean, the "value" member of the operationpublic JsonPatch replace(DbChar path, DbBigInt value)
path
- String, the "path" member of the operationvalue
- Integer, the "value" member of the operationpublic JsonPatch replace(DbChar path, fJsonObject value)
path
- String, the "path" member of the operationvalue
- JsonObject, the "value" member of the operationpublic JsonPatch replace(DbChar path, fJsonArray value)
path
- String, the "path" member of the operationvalue
- JsonArray, the "value" member of the operationpublic JsonPatch copy(DbChar path, DbChar from)
path
- String, the "path" member of the operationvalue
- String, the "from" member of the operationpublic JsonPatch move(DbChar path, DbChar from)
path
- String, the "path" member of the operationvalue
- String, the "from" member of the operationpublic fJsonObject apply(fJsonObject target)
target
- the JsonObject to apply