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 Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FHIRPathPatch.Builderadd(String path, String elementName, Element element)Add an add operation to the FHIRPathPatchFHIRPathPatchbuild()Build theFHIRPathPatchFHIRPathPatch.Builderdelete(String path)Add a delete operation to the FHIRPathPatchFHIRPathPatch.Builderfrom(FHIRPathPatch patch)Add all patch operations from the passed FHIRPathPatchFHIRPathPatch.Builderinsert(String path, Element element, Integer index)Add an insert operation to the FHIRPathPatchFHIRPathPatch.Buildermove(String path, Integer source, Integer destination)Add a move operation to the FHIRPathPatchFHIRPathPatch.Builderreplace(String path, Element element)Add an add operation to the FHIRPathPatch
-
-
-
Method Detail
-
add
public FHIRPathPatch.Builder add(String path, String elementName, Element element)
Add an add operation to the FHIRPathPatch
-
delete
public FHIRPathPatch.Builder delete(String path)
Add a delete operation to the FHIRPathPatch
-
insert
public FHIRPathPatch.Builder insert(String path, Element element, Integer index)
Add an insert operation to the FHIRPathPatch
-
move
public FHIRPathPatch.Builder move(String path, Integer source, Integer destination)
Add a move operation to the FHIRPathPatch
-
replace
public FHIRPathPatch.Builder replace(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
-
-