@ SuppressWarnings ( "rawtypes" ) protected Object getValue ( GetterMethodCover method , Object value ) { if ( method . isByte ( ) ) { value = ( ( Byte ) value ) . intValue ( ) ; } else if ( method . isChar ( ) ) { value = ( int ) ( ( Character ) value ) . charValue ( ) ; } else if ( method . isFloat ( ) ) { value = ( ( Float ) value ) . doubleValue ( ) ; } else if ( method . isLong ( ) ) { value = ( ( Long ) value ) . doubleValue ( ) ; } else if ( method . isShort ( ) ) { value = ( ( Short ) value ) . intValue ( ) ; } else if ( method . isObject ( ) ) { value = parseObject ( method , value ) ; } else if ( method . isObjectArray ( ) ) { value = parseArray ( method , value ) ; } else if ( method . isArrayObjectCollection ( ) ) { return parseArrayObjectCollection ( method , ( Collection ) value ) ; } else if ( method . isObjectCollection ( ) ) { return parseObjectCollection ( method , ( Collection ) value ) ; } else if ( method . isArrayCollection ( ) ) { return parseArrayCollection ( method , ( Collection ) value ) ; } else if ( method . isArray ( ) || method . isColection ( ) ) { return transformSimpleValue ( value ) ; } return value ; }
Call getter method and get value