Package org.dspace.app.rest.converter
Class MetadataValueDTOConverter
- java.lang.Object
-
- org.dspace.app.rest.converter.MetadataValueDTOConverter
-
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<org.dspace.content.dto.MetadataValueDTO,MetadataValueRest>
@Component public class MetadataValueDTOConverter extends Object implements org.springframework.core.convert.converter.Converter<org.dspace.content.dto.MetadataValueDTO,MetadataValueRest>
Converter to translate between domainMetadataValues andMetadataValueRestrepresentations.
-
-
Constructor Summary
Constructors Constructor Description MetadataValueDTOConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataValueRestconvert(org.dspace.content.dto.MetadataValueDTO metadataValue)Gets a rest representation of the given domain metadata value.
-
-
-
Method Detail
-
convert
public MetadataValueRest convert(org.dspace.content.dto.MetadataValueDTO metadataValue)
Gets a rest representation of the given domain metadata value.- Specified by:
convertin interfaceorg.springframework.core.convert.converter.Converter<org.dspace.content.dto.MetadataValueDTO,MetadataValueRest>- Parameters:
metadataValue- the domain value.- Returns:
- the rest representation.
-
-