ariba.util.fieldvalue
Class ReflectionMethodSetter

java.lang.Object
  extended by ariba.util.fieldvalue.BaseAccessor
      extended by ariba.util.fieldvalue.ReflectionMethodAccessor
          extended by ariba.util.fieldvalue.ReflectionMethodSetter
All Implemented Interfaces:
FieldValueAccessor, FieldValueSetter
Direct Known Subclasses:
ClassExtensionSetter

public class ReflectionMethodSetter
extends ReflectionMethodAccessor
implements FieldValueSetter

The ReflectionMethodSetter is a wrapper for java.lang.reflect.Method and provides a uniform interface so that users needn't know if the accesor they're dealing with is either a Method or a Field.


Method Summary
 void setValue(java.lang.Object target, java.lang.Object value)
          Invokes the underlying reflection Method on the target setting the value.
 
Methods inherited from class ariba.util.fieldvalue.ReflectionMethodAccessor
toString
 
Methods inherited from class ariba.util.fieldvalue.BaseAccessor
forClass, getFieldName, isApplicable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ariba.util.fieldvalue.FieldValueAccessor
forClass, getFieldName, isApplicable
 

Method Detail

setValue

public void setValue(java.lang.Object target,
                     java.lang.Object value)
Invokes the underlying reflection Method on the target setting the value.

Specified by:
setValue in interface FieldValueSetter
Parameters:
target - the object on which the value will be set using the wrapped Method
value - the value to be set on the target using the wrapped Method


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.