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<MetadataValueDTO,MetadataValueRest>
@Component
public class MetadataValueDTOConverter
extends Object
implements org.springframework.core.convert.converter.Converter<MetadataValueDTO,MetadataValueRest>
Converter to translate between domain
MetadataValues and MetadataValueRest representations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(MetadataValueDTO metadataValue) Gets a rest representation of the given domain metadata value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
MetadataValueDTOConverter
public MetadataValueDTOConverter()
-
-
Method Details
-
convert
Gets a rest representation of the given domain metadata value.- Specified by:
convertin interfaceorg.springframework.core.convert.converter.Converter<MetadataValueDTO,MetadataValueRest> - Parameters:
metadataValue- the domain value.- Returns:
- the rest representation.
-