public void set ( Object obj , Object value ) throws ReflectionException { try { if ( isPublic ( writeMethod ) ) { writeMethod . invoke ( obj , value ) ; } else { throw new ReflectionException ( "Cannot set the value of " + this + ", as it is read-only." ) ; } } catch ( Exception e ) { throw new ReflectionException ( "Cannot set the value of " + this + " to object " + obj , e ) ; } }
Sets a new value to the representation of this property on the specified object .