Class 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 domain MetadataValues and MetadataValueRest representations.
    • Constructor Detail

      • MetadataValueDTOConverter

        public MetadataValueDTOConverter()
    • Method Detail

      • convert

        public MetadataValueRest convert​(org.dspace.content.dto.MetadataValueDTO metadataValue)
        Gets a rest representation of the given domain metadata value.
        Specified by:
        convert in interface org.springframework.core.convert.converter.Converter<org.dspace.content.dto.MetadataValueDTO,​MetadataValueRest>
        Parameters:
        metadataValue - the domain value.
        Returns:
        the rest representation.