@ Override public void setAsText ( final String text ) { if ( BeanUtils . isNull ( text ) ) { setValue ( null ) ; return ; } Object newValue = Boolean . valueOf ( text ) ; setValue ( newValue ) ; }
Map the argument text into Boolean . TRUE or Boolean . FALSE using Boolean . valueOf .