DocumentMetadataPatchBuilderpublic interface DocumentPatchBuilder extends DocumentMetadataPatchBuilder
| Modifier and Type | Interface | Description |
|---|---|---|
static class |
DocumentPatchBuilder.PathLanguage |
MarkLogic's REST API patch operations support two path languages for JSON,
XPATH and JSONPATH.
|
static class |
DocumentPatchBuilder.Position |
The Position enumeration indicates the location relative
to the context for inserting content.
|
DocumentMetadataPatchBuilder.Call, DocumentMetadataPatchBuilder.CallBuilder, DocumentMetadataPatchBuilder.Cardinality, DocumentMetadataPatchBuilder.PatchHandle| Modifier and Type | Method | Description |
|---|---|---|
DocumentPatchBuilder |
delete(java.lang.String selectPath) |
Specifies an operation to delete an existing JSON or XML fragment.
|
DocumentPatchBuilder |
delete(java.lang.String selectPath,
DocumentMetadataPatchBuilder.Cardinality cardinality) |
Specifies an operation to delete an existing JSON or XML fragment.
|
DocumentPatchBuilder |
insertFragment(java.lang.String contextPath,
DocumentPatchBuilder.Position position,
DocumentMetadataPatchBuilder.Cardinality cardinality,
java.lang.Object fragment) |
Specifies an operation to insert a new JSON or XML fragment.
|
DocumentPatchBuilder |
insertFragment(java.lang.String contextPath,
DocumentPatchBuilder.Position position,
java.lang.Object fragment) |
Specifies an operation to insert a new JSON or XML fragment.
|
DocumentPatchBuilder |
pathLanguage(DocumentPatchBuilder.PathLanguage pathLang) |
Specifies the language for this patch to use
|
DocumentPatchBuilder |
replaceApply(java.lang.String selectPath,
DocumentMetadataPatchBuilder.Call call) |
Specifies a replacement operation by applying a function to
an existing JSON or XML fragment.
|
DocumentPatchBuilder |
replaceApply(java.lang.String selectPath,
DocumentMetadataPatchBuilder.Cardinality cardinality,
DocumentMetadataPatchBuilder.Call call) |
Specifies a replacement operation by applying a function to
an existing JSON or XML fragment.
|
DocumentPatchBuilder |
replaceFragment(java.lang.String selectPath,
DocumentMetadataPatchBuilder.Cardinality cardinality,
java.lang.Object fragment) |
Specifies a fragment to replace an existing JSON or XML fragment.
|
DocumentPatchBuilder |
replaceFragment(java.lang.String selectPath,
java.lang.Object fragment) |
Specifies a fragment to replace an existing JSON or XML fragment.
|
DocumentPatchBuilder |
replaceInsertFragment(java.lang.String selectPath,
java.lang.String contextPath,
DocumentPatchBuilder.Position position,
DocumentMetadataPatchBuilder.Cardinality cardinality,
java.lang.Object fragment) |
Specifies a fragment to replace an existing JSON or XML fragment
or (if the existing fragment doesn't exist) to insert relative
to a different existing JSON or XML fragment.
|
DocumentPatchBuilder |
replaceInsertFragment(java.lang.String selectPath,
java.lang.String contextPath,
DocumentPatchBuilder.Position position,
java.lang.Object fragment) |
Specifies a fragment to replace an existing JSON or XML fragment
or (if the existing fragment doesn't exist) to insert relative
to a different existing JSON or XML fragment.
|
DocumentPatchBuilder |
replaceValue(java.lang.String selectPath,
DocumentMetadataPatchBuilder.Cardinality cardinality,
java.lang.Object value) |
Specifies a value to replace the existing value of a JSON or XML node.
|
DocumentPatchBuilder |
replaceValue(java.lang.String selectPath,
java.lang.Object value) |
Specifies a value to replace the existing value of a JSON or XML node.
|
addCollection, addMetadataValue, addPermission, addPropertyValue, addPropertyValue, build, call, deleteCollection, deleteMetadataValue, deletePermission, deleteProperty, deleteProperty, getNamespaces, library, replaceCollection, replaceMetadataValue, replaceMetadataValueApply, replacePermission, replacePermission, replacePropertyApply, replacePropertyApply, replacePropertyValue, replacePropertyValue, replacePropertyValue, replacePropertyValue, setNamespaces, setQualityDocumentPatchBuilder pathLanguage(DocumentPatchBuilder.PathLanguage pathLang)
pathLang - the language (XPath or JSONPath)DocumentPatchBuilder delete(java.lang.String selectPath)
selectPath - the location of the JSON or XML fragmentDocumentPatchBuilder delete(java.lang.String selectPath, DocumentMetadataPatchBuilder.Cardinality cardinality)
selectPath - the location of the JSON or XML fragmentcardinality - the number of times the patch can match without errorDocumentPatchBuilder insertFragment(java.lang.String contextPath, DocumentPatchBuilder.Position position, java.lang.Object fragment)
contextPath - the location of an existing nodeposition - a location relative to the existing nodefragment - the inserted fragmentDocumentPatchBuilder insertFragment(java.lang.String contextPath, DocumentPatchBuilder.Position position, DocumentMetadataPatchBuilder.Cardinality cardinality, java.lang.Object fragment)
contextPath - the location of an existing nodeposition - a location relative to the existing nodecardinality - the number of times the patch can match without errorfragment - the inserted fragmentDocumentPatchBuilder replaceValue(java.lang.String selectPath, java.lang.Object value)
selectPath - the location of the node with the replaced valuevalue - the new value for the nodeDocumentPatchBuilder replaceValue(java.lang.String selectPath, DocumentMetadataPatchBuilder.Cardinality cardinality, java.lang.Object value)
selectPath - the location of the node with the replaced valuecardinality - the number of times the patch can match without errorvalue - the new value for the nodeDocumentPatchBuilder replaceFragment(java.lang.String selectPath, java.lang.Object fragment)
selectPath - the location of the replaced nodefragment - the replacing fragmentDocumentPatchBuilder replaceFragment(java.lang.String selectPath, DocumentMetadataPatchBuilder.Cardinality cardinality, java.lang.Object fragment)
selectPath - the location of the replaced nodecardinality - the number of times the patch can match without errorfragment - the replacing fragmentDocumentPatchBuilder replaceInsertFragment(java.lang.String selectPath, java.lang.String contextPath, DocumentPatchBuilder.Position position, java.lang.Object fragment)
selectPath - the location of the replaced nodecontextPath - the location of an existing nodeposition - a location relative to the existing nodefragment - the replacing or inserted fragmentDocumentPatchBuilder replaceInsertFragment(java.lang.String selectPath, java.lang.String contextPath, DocumentPatchBuilder.Position position, DocumentMetadataPatchBuilder.Cardinality cardinality, java.lang.Object fragment)
selectPath - the location of the replaced nodecontextPath - the location of an existing nodeposition - a location relative to the existing nodecardinality - the number of times the patch can match without errorfragment - the replacing or inserted fragmentDocumentPatchBuilder replaceApply(java.lang.String selectPath, DocumentMetadataPatchBuilder.Call call)
selectPath - the location of the replaced nodecall - the specification of the function callDocumentPatchBuilder replaceApply(java.lang.String selectPath, DocumentMetadataPatchBuilder.Cardinality cardinality, DocumentMetadataPatchBuilder.Call call)
selectPath - the location of the replaced nodecardinality - the number of times the patch can match without errorcall - the specification of the function callCopyright © 2013-2019 MarkLogic Corporation.