Class JsonPatch
- java.lang.Object
-
- com.floragunn.codova.documents.patch.JsonPatch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceJsonPatch.Operation
-
Field Summary
Fields Modifier and Type Field Description static StringMEDIA_TYPE
-
Constructor Summary
Constructors Constructor Description JsonPatch(JsonPatch.Operation... operations)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DocNodeapply(DocNode targetDocument)booleanequals(Object obj)static JsonPatchfromDiff(DocNode source, DocNode target)StringgetMediaType()inthashCode()booleanisEmpty()ObjecttoBasicObject()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.floragunn.codova.documents.Document
meta, toBytes, toDeepBasicObject, toDocNode, toJsonString, toPrettyJsonString, toSmile, toString, toYamlString
-
-
-
-
Field Detail
-
MEDIA_TYPE
public static final String MEDIA_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JsonPatch
public JsonPatch(JsonPatch.Operation... operations)
-
-
Method Detail
-
toBasicObject
public Object toBasicObject()
- Specified by:
toBasicObjectin interfaceDocument<Object>
-
apply
public DocNode apply(DocNode targetDocument) throws DocUpdateException
- Specified by:
applyin interfaceDocPatch- Throws:
DocUpdateException
-
getMediaType
public String getMediaType()
- Specified by:
getMediaTypein interfaceDocPatch
-
isEmpty
public boolean isEmpty()
-
-