Package org.dspace.app.rest.converter
Class SubmissionCCLicenseFieldConverter
- java.lang.Object
-
- org.dspace.app.rest.converter.SubmissionCCLicenseFieldConverter
-
- All Implemented Interfaces:
DSpaceConverter<CCLicenseField,SubmissionCCLicenseFieldRest>
@Component public class SubmissionCCLicenseFieldConverter extends Object implements DSpaceConverter<CCLicenseField,SubmissionCCLicenseFieldRest>
This converter is responsible for transforming the model representation of an CCLicenseField to the REST representation of an CCLicenseField and vice versa The CCLicenseField is a sub component of the CCLicense object
-
-
Constructor Summary
Constructors Constructor Description SubmissionCCLicenseFieldConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubmissionCCLicenseFieldRestconvert(CCLicenseField modelObject, Projection projection)Convert a CCLicenseField to its REST representationClass<CCLicenseField>getModelClass()For what DSpace API model class does this converter convert?
-
-
-
Method Detail
-
convert
public SubmissionCCLicenseFieldRest convert(CCLicenseField modelObject, Projection projection)
Convert a CCLicenseField to its REST representation- Specified by:
convertin interfaceDSpaceConverter<CCLicenseField,SubmissionCCLicenseFieldRest>- Parameters:
modelObject- - the CCLicenseField to convertprojection- - the projection- Returns:
- the corresponding SubmissionCCLicenseFieldRest object
-
getModelClass
public Class<CCLicenseField> getModelClass()
Description copied from interface:DSpaceConverterFor what DSpace API model class does this converter convert?- Specified by:
getModelClassin interfaceDSpaceConverter<CCLicenseField,SubmissionCCLicenseFieldRest>- Returns:
- Class of model objects represented.
-
-