com.sun.xml.bind.v2.runtime.reflect
Class Accessor.GetterOnlyReflection<BeanT,ValueT>
java.lang.Object
com.sun.xml.bind.v2.runtime.reflect.Accessor<BeanT,ValueT>
com.sun.xml.bind.v2.runtime.reflect.Accessor.GetterSetterReflection<BeanT,ValueT>
com.sun.xml.bind.v2.runtime.reflect.Accessor.GetterOnlyReflection<BeanT,ValueT>
- All Implemented Interfaces:
- Receiver
- Enclosing class:
- Accessor<BeanT,ValueT>
public static class Accessor.GetterOnlyReflection<BeanT,ValueT>
- extends Accessor.GetterSetterReflection<BeanT,ValueT>
A version of Accessor.GetterSetterReflection
thaat doesn't have any setter.
This provides a user-friendly error message.
Method Summary |
void |
set(BeanT bean,
ValueT value)
Sets the value of the property of the given bean object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Accessor.GetterOnlyReflection
public Accessor.GetterOnlyReflection(Method getter)
set
public void set(BeanT bean,
ValueT value)
throws AccessorException
- Description copied from class:
Accessor
- Sets the value of the property of the given bean object.
- Overrides:
set
in class Accessor.GetterSetterReflection<BeanT,ValueT>
- Parameters:
bean
- must not be null.value
- the value to be set. Setting value to null means resetting
to the VM default value (even for primitive properties.)
- Throws:
AccessorException
- if failed to set a value. For example, the setter method
may throw an exception.