com.sun.xml.bind.v2.runtime.reflect
Class Accessor.SetterOnlyReflection<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.SetterOnlyReflection<BeanT,ValueT>
- All Implemented Interfaces:
- Receiver
- Enclosing class:
- Accessor<BeanT,ValueT>
public static class Accessor.SetterOnlyReflection<BeanT,ValueT>
- extends Accessor.GetterSetterReflection<BeanT,ValueT>
A version of Accessor.GetterSetterReflection
thaat doesn't have any getter.
This provides a user-friendly error message.
Method Summary |
ValueT |
get(BeanT bean)
Gets 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.SetterOnlyReflection
public Accessor.SetterOnlyReflection(Method setter)
get
public ValueT get(BeanT bean)
throws AccessorException
- Description copied from class:
Accessor
- Gets the value of the property of the given bean object.
- Overrides:
get
in class Accessor.GetterSetterReflection<BeanT,ValueT>
- Parameters:
bean
- must not be null.
- Throws:
AccessorException
- if failed to set a value. For example, the getter method
may throw an exception.