be.fedict.eid.applet.service.dto
Interface ValueConvertor<FROM,TO>

Type Parameters:
TO - the type to which to convert to.
FROM - the type from which to convert.
All Known Implementing Classes:
GenderToFemaleValueConvertor, GenderToMaleValueConvertor, IdenticalValueConvertor

public interface ValueConvertor<FROM,TO>

Interface for a value convertor component.

Author:
Frank Cornelis

Method Summary
 TO convert(FROM value)
          Convert the given object to the convertor data type.
 

Method Detail

convert

TO convert(FROM value)
           throws ValueConvertorException
Convert the given object to the convertor data type.

Parameters:
value - the object to convert.
Returns:
an object of the data convertor data type type.
Throws:
ValueConvertorException - in case the conversion failed.


Copyright © 2008-2014 FedICT. All Rights Reserved.