be.fedict.eid.applet.service.dto
Class DTOMapper

java.lang.Object
  extended by be.fedict.eid.applet.service.dto.DTOMapper

public class DTOMapper
extends Object

Data Transfer Object Mapper.

Author:
Frank Cornelis

Constructor Summary
DTOMapper()
           
 
Method Summary
<T> T
map(Object from, Class<T> toClass)
          Maps an object to an object of the given class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTOMapper

public DTOMapper()
Method Detail

map

public <T> T map(Object from,
                 Class<T> toClass)
Maps an object to an object of the given class.

Type Parameters:
T - the type of the class to map to.
Parameters:
from - the object to map from.
toClass - the class to map to.
Returns:
the mapped object.


Copyright © 2008-2013 FedICT. All Rights Reserved.