Package org.dspace.app.rest.converter
Class SubmissionCCLicenseFieldConverter
- java.lang.Object
-
- org.dspace.app.rest.converter.SubmissionCCLicenseFieldConverter
-
- All Implemented Interfaces:
DSpaceConverter<org.dspace.license.CCLicenseField,SubmissionCCLicenseFieldRest>
@Component public class SubmissionCCLicenseFieldConverter extends Object implements DSpaceConverter<org.dspace.license.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(org.dspace.license.CCLicenseField modelObject, Projection projection)Convert a CCLicenseField to its REST representationClass<org.dspace.license.CCLicenseField>getModelClass()
-
-
-
Method Detail
-
convert
public SubmissionCCLicenseFieldRest convert(org.dspace.license.CCLicenseField modelObject, Projection projection)
Convert a CCLicenseField to its REST representation- Specified by:
convertin interfaceDSpaceConverter<org.dspace.license.CCLicenseField,SubmissionCCLicenseFieldRest>- Parameters:
modelObject- - the CCLicenseField to convertprojection- - the projection- Returns:
- the corresponding SubmissionCCLicenseFieldRest object
-
getModelClass
public Class<org.dspace.license.CCLicenseField> getModelClass()
- Specified by:
getModelClassin interfaceDSpaceConverter<org.dspace.license.CCLicenseField,SubmissionCCLicenseFieldRest>
-
-