Class FHIRPathPatch.Builder
- java.lang.Object
-
- org.linuxforhealth.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.Builder
add(java.lang.String path, java.lang.String elementName, Element element)
Add an add operation to the FHIRPathPatchFHIRPathPatch
build()
Build theFHIRPathPatch
FHIRPathPatch.Builder
delete(java.lang.String path)
Add a delete operation to the FHIRPathPatchFHIRPathPatch.Builder
from(FHIRPathPatch patch)
Add all patch operations from the passed FHIRPathPatchFHIRPathPatch.Builder
insert(java.lang.String path, Element element, java.lang.Integer index)
Add an insert operation to the FHIRPathPatchFHIRPathPatch.Builder
move(java.lang.String path, java.lang.Integer source, java.lang.Integer destination)
Add a move operation to the FHIRPathPatchFHIRPathPatch.Builder
replace(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
-
-