Package org.dspace.app.rest.converter
Class BitstreamFormatConverter
- java.lang.Object
-
- org.dspace.app.rest.converter.BitstreamFormatConverter
-
- All Implemented Interfaces:
DSpaceConverter<BitstreamFormat,BitstreamFormatRest>
@Component public class BitstreamFormatConverter extends Object implements DSpaceConverter<BitstreamFormat,BitstreamFormatRest>
This is the converter from/to the BitstreamFormat in the DSpace API data model and the REST data model- Author:
- Andrea Bollini (andrea.bollini at 4science.it)
-
-
Constructor Summary
Constructors Constructor Description BitstreamFormatConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitstreamFormatRestconvert(BitstreamFormat obj, Projection projection)Convert a DSpace model object into its equivalent REST resource, applying a given projection.Class<BitstreamFormat>getModelClass()For what DSpace API model class does this converter convert?
-
-
-
Method Detail
-
convert
public BitstreamFormatRest convert(BitstreamFormat obj, Projection projection)
Description copied from interface:DSpaceConverterConvert a DSpace model object into its equivalent REST resource, applying a given projection.- Specified by:
convertin interfaceDSpaceConverter<BitstreamFormat,BitstreamFormatRest>- Parameters:
obj- a DSpace API model object.- Returns:
- a resource representing the model object.
-
getModelClass
public Class<BitstreamFormat> getModelClass()
Description copied from interface:DSpaceConverterFor what DSpace API model class does this converter convert?- Specified by:
getModelClassin interfaceDSpaceConverter<BitstreamFormat,BitstreamFormatRest>- Returns:
- Class of model objects represented.
-
-