private static Object setTextValue ( Object entity , Field member , Object retVal ) { if ( member != null && member . getType ( ) . isEnum ( ) ) { EnumAccessor accessor = new EnumAccessor ( ) ; if ( member != null ) { retVal = accessor . fromString ( member . getType ( ) , ( String ) retVal ) ; } } else if ( member != null && ( member . getType ( ) . isAssignableFrom ( char . class ) || member . getType ( ) . isAssignableFrom ( Character . class ) ) ) { retVal = new CharAccessor ( ) . fromString ( member . getType ( ) , ( String ) retVal ) ; } return retVal ; }
Sets the text value .