Package org.dspace.app.rest.converter
Class SubmissionCCLicenseFieldEnumConverter
- java.lang.Object
-
- org.dspace.app.rest.converter.SubmissionCCLicenseFieldEnumConverter
-
- All Implemented Interfaces:
DSpaceConverter<org.dspace.license.CCLicenseFieldEnum,SubmissionCCLicenseFieldEnumRest>
@Component public class SubmissionCCLicenseFieldEnumConverter extends Object implements DSpaceConverter<org.dspace.license.CCLicenseFieldEnum,SubmissionCCLicenseFieldEnumRest>
This converter is responsible for transforming the model representation of an CCLicenseFieldEnum to the REST representation of an CCLicenseFieldEnum and vice versa The CCLicenseFieldEnum is a sub component of the CCLicenseField object
-
-
Constructor Summary
Constructors Constructor Description SubmissionCCLicenseFieldEnumConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubmissionCCLicenseFieldEnumRestconvert(org.dspace.license.CCLicenseFieldEnum modelObject, Projection projection)Convert a CCLicenseFieldEnum to its REST representationClass<org.dspace.license.CCLicenseFieldEnum>getModelClass()
-
-
-
Method Detail
-
convert
public SubmissionCCLicenseFieldEnumRest convert(org.dspace.license.CCLicenseFieldEnum modelObject, Projection projection)
Convert a CCLicenseFieldEnum to its REST representation- Specified by:
convertin interfaceDSpaceConverter<org.dspace.license.CCLicenseFieldEnum,SubmissionCCLicenseFieldEnumRest>- Parameters:
modelObject- - the CCLicenseField to convertprojection- - the projection- Returns:
- the corresponding SubmissionCCLicenseFieldEnumRest object
-
getModelClass
public Class<org.dspace.license.CCLicenseFieldEnum> getModelClass()
- Specified by:
getModelClassin interfaceDSpaceConverter<org.dspace.license.CCLicenseFieldEnum,SubmissionCCLicenseFieldEnumRest>
-
-