Interface Converter<SOURCE,TARGET>
- Type Parameters:
SOURCE- the type of the source objectTARGET- the type of the destination object
- All Superinterfaces:
org.springframework.core.convert.converter.Converter<SOURCE,TARGET>
- All Known Subinterfaces:
ConfigurableConverter<SOURCE,,TARGET, OPTION> ConfigurableSubtypeConverter<SOURCE,,TARGET, OPTION> ContextualConverter<SOURCE,TARGET, CONTEXT>
- All Known Implementing Classes:
AbstractB2BFlexibleSearchConverter,AbstractContextualPopulatingConverter,AbstractConverter,AbstractDynamicConverter,AbstractErrorConverter,AbstractLocalizedErrorConverter,AbstractOrderRaoToCurrencyConverter,AbstractOrderRaoToOrderConverter,AbstractPopulatingConverter,AbstractPopulatingConverter,AbstractPopulatingDynamicConverter,AbstractSolrConverter,AggregatedStatisticsConverter,AsnEntryModelPopulatingConverter,AsnModelPopulatingConverter,AuthenticationExceptionToLabelConverter,CartModificationDataErrorConverter,CartModificationDataErrorConverter,CartModificationDataListErrorConverter,CartModificationDataListErrorConverter,CartVoucherValidationErrorConverter,CartVoucherValidationErrorConverter,CartVoucherValidationListErrorConverter,CartVoucherValidationListErrorConverter,ComponentTypeStructureConverter,ContentSlotDataConverter,ConvertObjectsToCSV,DefaultCmsUrlChangeEventConverter,DefaultConfigurableConverter,DefaultConfigurableSubtypeAwareConverter,DefaultConfigurableSubtypeConverter,DefaultJobLogConverter,DefaultSolrFacetSearchProductSearchStrategyTest.SearchQueryPageableConverter,DefaultSolrFacetSearchProductSearchStrategyTest.SolrSearchRequestConverter,DefaultSolrFacetSearchProductSearchStrategyTest.SolrSearchResponseConverter,DefaultSolrProductConverter,DummyConverterForMockito,ExceptionConverter,FaultTolerantConverter,GenericConverter,JsonToTrackingEventConverter,OrderEntryRaoToNumberedLineItemConverter,PointOfServiceDistanceConverter,PosConverter,ProductConverter,TrackingEventToCsvDataConverter,ValidationErrorConverter,ValidationErrorConverter,WebserviceExceptionConverter
public interface Converter<SOURCE,TARGET>
extends org.springframework.core.convert.converter.Converter<SOURCE,TARGET>
Interface for a converter that transforms an object of one type into an object of another type
-
Method Summary
Modifier and TypeMethodDescriptionConverts the source object, creating a new instance of the destination typeConvert the source object by filling the prototypeconvertAll(Collection<? extends SOURCE> sources) Convert Collection of SOURCE instances and return Collection of TARGET instances.convertAllIgnoreExceptions(Collection<? extends SOURCE> sources) Convert Collection of SOURCE instances and return Collection of TARGET instances.default org.apache.log4j.LoggerMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Method Details
-
convert
Converts the source object, creating a new instance of the destination type- Specified by:
convertin interfaceorg.springframework.core.convert.converter.Converter<SOURCE,TARGET> - Parameters:
source- the source object- Returns:
- the converted object
- Throws:
ConversionException- if an error occurs
-
convert
Convert the source object by filling the prototype- Parameters:
source- the source objectprototype- the prototype to fill- Returns:
- the converted object, identical to the prototype
- Throws:
ConversionException- if an error occurs
-
convertAll
Convert Collection of SOURCE instances and return Collection of TARGET instances.- Parameters:
sources- the source instances- Returns:
- collection of target instances
- Throws:
ConversionException
-
convertAllIgnoreExceptions
Convert Collection of SOURCE instances and return Collection of TARGET instances.- Parameters:
sources- the source instances- Returns:
- collection of target instances
- Throws:
ConversionException
-
getLogger
default org.apache.log4j.Logger getLogger()
-