com.sun.xml.ws.client.sei
Class ValueSetter

java.lang.Object
  extended by com.sun.xml.ws.client.sei.ValueSetter
Direct Known Subclasses:
ValueSetter.AsyncBeanValueSetter, ValueSetter.Param

abstract class ValueSetter
extends Object

Moves a Java value unmarshalled from a response message to the right place.

Sometimes values are returned as a return value, and others are returned in the Holder value. Instances of this interface abstracts this detail.

ValueSetter is a stateless behavior encapsulation.


Nested Class Summary
(package private) static class ValueSetter.AsyncBeanValueSetter
          OUT parameters are set in async bean
(package private) static class ValueSetter.Param
           
 
Field Summary
(package private) static ValueSetter SINGLE_VALUE
          Singleton instance.
 
Method Summary
(package private) static ValueSetter getSync(ParameterImpl p)
          Returns a ValueSetter suitable for the given Parameter.
(package private) abstract  Object put(Object obj, Object[] args)
          Moves the value to the expected place.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLE_VALUE

static final ValueSetter SINGLE_VALUE
Singleton instance.

Method Detail

put

abstract Object put(Object obj,
                    Object[] args)
Moves the value to the expected place.

Parameters:
obj - The unmarshalled object.
args - The arguments given to the Java method invocation. If obj is supposed to be returned as a Holder value, a suitable Holder is obtained from this argument list and obj is set.
Returns:
if obj is supposed to be returned as a return value from the method, this method returns obj. Otherwise null.

getSync

static ValueSetter getSync(ParameterImpl p)
Returns a ValueSetter suitable for the given Parameter.