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

java.lang.Object
  extended by be.fedict.eid.applet.service.dto.GenderToMaleValueConvertor
All Implemented Interfaces:
ValueConvertor<Gender,Boolean>

public class GenderToMaleValueConvertor
extends Object
implements ValueConvertor<Gender,Boolean>

Converts a gender field value to a male boolean value.

Author:
Frank Cornelis

Constructor Summary
GenderToMaleValueConvertor()
           
 
Method Summary
 Boolean convert(Gender value)
          Convert the given object to the convertor data type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenderToMaleValueConvertor

public GenderToMaleValueConvertor()
Method Detail

convert

public Boolean convert(Gender value)
                throws ValueConvertorException
Description copied from interface: ValueConvertor
Convert the given object to the convertor data type.

Specified by:
convert in interface ValueConvertor<Gender,Boolean>
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-2012 FedICT. All Rights Reserved.