Package de.cismet.cids.jsonpatch
Class CidsBeanPatch
- java.lang.Object
-
- de.cismet.cids.jsonpatch.CidsBeanPatch
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.JsonSerializable
public class CidsBeanPatch extends Object implements com.fasterxml.jackson.databind.JsonSerializable
DOCUMENT ME!- Version:
- $Revision$, $Date$
-
-
Field Summary
Fields Modifier and Type Field Description protected List<CidsBeanPatchOperation>operations
-
Constructor Summary
Constructors Constructor Description CidsBeanPatch(List<CidsBeanPatchOperation> operations)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.cismet.cids.dynamics.CidsBeanapply(de.cismet.cids.dynamics.CidsBean cidsBean)Apply this patch to a JSON value.List<CidsBeanPatchOperation>getOperations()DOCUMENT ME!voidserialize(com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)voidserializeWithType(com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)StringtoString()
-
-
-
Field Detail
-
operations
protected final List<CidsBeanPatchOperation> operations
-
-
Constructor Detail
-
CidsBeanPatch
public CidsBeanPatch(List<CidsBeanPatchOperation> operations)
Constructor.Normally, you should never have to use it.
- Parameters:
operations- the list of operations for this patch- See Also:
JsonPatchOperation
-
-
Method Detail
-
apply
public de.cismet.cids.dynamics.CidsBean apply(de.cismet.cids.dynamics.CidsBean cidsBean) throws com.github.fge.jsonpatch.JsonPatchExceptionApply this patch to a JSON value.- Parameters:
cidsBean- DOCUMENT ME!- Returns:
- the patched JSON value
- Throws:
com.github.fge.jsonpatch.JsonPatchException- failed to apply patch
-
serialize
public void serialize(com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException- Specified by:
serializein interfacecom.fasterxml.jackson.databind.JsonSerializable- Throws:
IOException
-
serializeWithType
public void serializeWithType(com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) throws IOException- Specified by:
serializeWithTypein interfacecom.fasterxml.jackson.databind.JsonSerializable- Throws:
IOException
-
getOperations
public List<CidsBeanPatchOperation> getOperations()
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
-