Package jsonvalues
Class Patch
- java.lang.Object
-
- jsonvalues.Patch
-
public final class Patch extends Object
Encapsulates a RFC 6902 implementation. Json patch operations can be applied to Jsons using the methodJson.patch(JsArray)
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Patch.Builder
represents a builder to create json-patch operations according to the RFC 6902 specification.static class
Patch.OP
List of supported patch-operations
-
Field Summary
Fields Modifier and Type Field Description static String
FROM_FIELD
field which contains the source location in MOVE and COPY operationsstatic String
OP_FIELD
field which contains the name of the operationstatic String
PATH_FIELD
field which contains the target location of an operationstatic String
VALUE_FIELD
field which contains the Json element to be used by the operation
-
-
-
Field Detail
-
FROM_FIELD
public static final String FROM_FIELD
field which contains the source location in MOVE and COPY operations- See Also:
- Constant Field Values
-
OP_FIELD
public static final String OP_FIELD
field which contains the name of the operation- See Also:
- Constant Field Values
-
PATH_FIELD
public static final String PATH_FIELD
field which contains the target location of an operation- See Also:
- Constant Field Values
-
VALUE_FIELD
public static final String VALUE_FIELD
field which contains the Json element to be used by the operation- See Also:
- Constant Field Values
-
-
Method Detail
-
ops
public static Patch.Builder ops()
return a new patch-operation builder- Returns:
- a new patch-operation builder
-
-