org.modelmapper
Interface Converter<S,D>

Type Parameters:
S - source type
D - destination type
All Known Subinterfaces:
ConditionalConverter<S,D>
All Known Implementing Classes:
AbstractConverter

public interface Converter<S,D>

Converts instances of source type S to instances of destination type D.

Author:
Jonathan Halterman

Method Summary
 D convert(MappingContext<S,D> context)
          Converts the MappingContext.getSource() to an instance of MappingContext.getDestinationType().
 

Method Detail

convert

D convert(MappingContext<S,D> context)
Converts the MappingContext.getSource() to an instance of MappingContext.getDestinationType().

Parameters:
context - of current mapping process
Throws:
MappingException - if an error occurs while converting


Copyright © 2011. All Rights Reserved.