Package org.dspace.app.rest.converter
Interface PatchConverter<T>
-
- Type Parameters:
T-
- All Known Implementing Classes:
JsonPatchConverter
public interface PatchConverter<T>A strategy interface for producing
Patchinstances from a patch document representation (such as JSON Patch) and rendering a Patch to a patch document representation. This decouples thePatchclass from any specific patch format or library that holds the representation.For example, if the
Based onPatchis to be represented as JSON Patch, the representation type could beJsonNodeor some other JSON library's type that holds a JSON document.PatchConverter- Author:
- Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tconvert(Patch patch)Convert aPatchto a representation object.Patchconvert(T patchRepresentation)Convert a patch document representation to aPatch.
-