Package com.ibm.fhir.path.patch
Class FHIRPathPatch.Builder
- java.lang.Object
-
- com.ibm.fhir.path.patch.FHIRPathPatch.Builder
-
- Enclosing class:
- FHIRPathPatch
public static class FHIRPathPatch.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FHIRPathPatch.Builderadd(java.lang.String path, java.lang.String elementName, Element element)Add an add operation to the FHIRPathPatchFHIRPathPatchbuild()Build theFHIRPathPatchFHIRPathPatch.Builderdelete(java.lang.String path)Add a delete operation to the FHIRPathPatchFHIRPathPatch.Builderfrom(FHIRPathPatch patch)Add all patch operations from the passed FHIRPathPatchFHIRPathPatch.Builderinsert(java.lang.String path, Element element, java.lang.Integer index)Add an insert operation to the FHIRPathPatchFHIRPathPatch.Buildermove(java.lang.String path, java.lang.Integer source, java.lang.Integer destination)Add a move operation to the FHIRPathPatchFHIRPathPatch.Builderreplace(java.lang.String path, Element element)Add an add operation to the FHIRPathPatch
-
-
-
Method Detail
-
add
public FHIRPathPatch.Builder add(java.lang.String path, java.lang.String elementName, Element element)
Add an add operation to the FHIRPathPatch
-
delete
public FHIRPathPatch.Builder delete(java.lang.String path)
Add a delete operation to the FHIRPathPatch
-
insert
public FHIRPathPatch.Builder insert(java.lang.String path, Element element, java.lang.Integer index)
Add an insert operation to the FHIRPathPatch
-
move
public FHIRPathPatch.Builder move(java.lang.String path, java.lang.Integer source, java.lang.Integer destination)
Add a move operation to the FHIRPathPatch
-
replace
public FHIRPathPatch.Builder replace(java.lang.String path, Element element)
Add an add operation to the FHIRPathPatch
-
from
public FHIRPathPatch.Builder from(FHIRPathPatch patch)
Add all patch operations from the passed FHIRPathPatch
-
build
public FHIRPathPatch build()
Build theFHIRPathPatch- Returns:
- An immutable object of type
FHIRPathPatch
-
-