Class BitstreamFormatConverter

  • All Implemented Interfaces:
    DSpaceConverter<org.dspace.content.BitstreamFormat,​BitstreamFormatRest>

    @Component
    public class BitstreamFormatConverter
    extends Object
    implements DSpaceConverter<org.dspace.content.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 Detail

      • BitstreamFormatConverter

        public BitstreamFormatConverter()
    • Method Detail

      • convert

        public BitstreamFormatRest convert​(org.dspace.content.BitstreamFormat obj,
                                           Projection projection)
        Description copied from interface: DSpaceConverter
        Convert a DSpace model object into its equivalent REST resource, applying a given projection.
        Specified by:
        convert in interface DSpaceConverter<org.dspace.content.BitstreamFormat,​BitstreamFormatRest>
        Parameters:
        obj - a DSpace API model object.
        Returns:
        a resource representing the model object.
      • getModelClass

        public Class<org.dspace.content.BitstreamFormat> getModelClass()
        Description copied from interface: DSpaceConverter
        For what DSpace API model class does this converter convert?
        Specified by:
        getModelClass in interface DSpaceConverter<org.dspace.content.BitstreamFormat,​BitstreamFormatRest>
        Returns:
        Class of model objects represented.