Package org.dspace.app.rest.converter
Class DSpaceObjectConverter<M extends DSpaceObject,R extends DSpaceObjectRest>
- java.lang.Object
-
- org.dspace.app.rest.converter.DSpaceObjectConverter<M,R>
-
- Type Parameters:
M- the Class in the DSpace API data modelR- the Class in the DSpace REST data model
- All Implemented Interfaces:
DSpaceConverter<M,R>
- Direct Known Subclasses:
BitstreamConverter,BundleConverter,CollectionConverter,CommunityConverter,EPersonConverter,GroupConverter,ItemConverter,SiteConverter
public abstract class DSpaceObjectConverter<M extends DSpaceObject,R extends DSpaceObjectRest> extends Object implements DSpaceConverter<M,R>
This is the base converter from/to objects in the DSpace API data model and the REST data model- Author:
- Andrea Bollini (andrea.bollini at 4science.it)
-
-
Constructor Summary
Constructors Constructor Description DSpaceObjectConverter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Rconvert(M obj, Projection projection)protected abstract RnewInstance()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.app.rest.converter.DSpaceConverter
getModelClass
-
-
-
-
Method Detail
-
convert
public R convert(M obj, Projection projection)
- Specified by:
convertin interfaceDSpaceConverter<M extends DSpaceObject,R extends DSpaceObjectRest>
-
newInstance
protected abstract R newInstance()
-
-