public interface DocumentPatchBuilder extends DocumentMetadataPatchBuilder
| Modifier and Type | Interface and 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 and Description |
|---|---|
DocumentPatchBuilder |
delete(String selectPath)
Specifies an operation to delete an existing JSON or XML fragment.
|
DocumentPatchBuilder |
delete(String selectPath,
DocumentMetadataPatchBuilder.Cardinality cardinality)
Specifies an operation to delete an existing JSON or XML fragment.
|
DocumentPatchBuilder |
insertFragment(String contextPath,
DocumentPatchBuilder.Position position,
DocumentMetadataPatchBuilder.Cardinality cardinality,
Object fragment)
Specifies an operation to insert a new JSON or XML fragment.
|
DocumentPatchBuilder |
insertFragment(String contextPath,
DocumentPatchBuilder.Position position,
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(String selectPath,
DocumentMetadataPatchBuilder.Call call)
Specifies a replacement operation by applying a function to
an existing JSON or XML fragment.
|
DocumentPatchBuilder |
replaceApply(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(String selectPath,
DocumentMetadataPatchBuilder.Cardinality cardinality,
Object fragment)
Specifies a fragment to replace an existing JSON or XML fragment.
|
DocumentPatchBuilder |
replaceFragment(String selectPath,
Object fragment)
Specifies a fragment to replace an existing JSON or XML fragment.
|
DocumentPatchBuilder |
replaceInsertFragment(String selectPath,
String contextPath,
DocumentPatchBuilder.Position position,
DocumentMetadataPatchBuilder.Cardinality cardinality,
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(String selectPath,
String contextPath,
DocumentPatchBuilder.Position position,
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(String selectPath,
DocumentMetadataPatchBuilder.Cardinality cardinality,
Object value)
Specifies a value to replace the existing value of a JSON or XML node.
|
DocumentPatchBuilder |
replaceValue(String selectPath,
Object value)
Specifies a value to replace the existing value of a JSON or XML node.
|
addCollection, addPermission, addPropertyValue, addPropertyValue, build, call, deleteCollection, deletePermission, deleteProperty, deleteProperty, getNamespaces, library, replaceCollection, replacePermission, replacePermission, replacePropertyApply, replacePropertyApply, replacePropertyValue, replacePropertyValue, replacePropertyValue, replacePropertyValue, setNamespaces, setQualityDocumentPatchBuilder pathLanguage(DocumentPatchBuilder.PathLanguage pathLang)
pathLang - the language (XPath or JSONPath)DocumentPatchBuilder delete(String selectPath)
selectPath - the location of the JSON or XML fragmentDocumentPatchBuilder delete(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(String contextPath, DocumentPatchBuilder.Position position, Object fragment)
contextPath - the location of an existing nodeposition - a location relative to the existing nodefragment - the inserted fragmentDocumentPatchBuilder insertFragment(String contextPath, DocumentPatchBuilder.Position position, DocumentMetadataPatchBuilder.Cardinality cardinality, 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(String selectPath, Object value)
selectPath - the location of the node with the replaced valuevalue - the new value for the nodeDocumentPatchBuilder replaceValue(String selectPath, DocumentMetadataPatchBuilder.Cardinality cardinality, 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(String selectPath, Object fragment)
selectPath - the location of the replaced nodefragment - the replacing fragmentDocumentPatchBuilder replaceFragment(String selectPath, DocumentMetadataPatchBuilder.Cardinality cardinality, Object fragment)
selectPath - the location of the replaced nodecardinality - the number of times the patch can match without errorfragment - the replacing fragmentDocumentPatchBuilder replaceInsertFragment(String selectPath, String contextPath, DocumentPatchBuilder.Position position, 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(String selectPath, String contextPath, DocumentPatchBuilder.Position position, DocumentMetadataPatchBuilder.Cardinality cardinality, 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(String selectPath, DocumentMetadataPatchBuilder.Call call)
selectPath - the location of the replaced nodecall - the specification of the function callDocumentPatchBuilder replaceApply(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-2016 MarkLogic Corporation.