Receiver
public static class Accessor.SetterOnlyReflection<BeanT,ValueT> extends Accessor.GetterSetterReflection<BeanT,ValueT>
Accessor.GetterSetterReflection
thaat doesn't have any getter.
This provides a user-friendly error message.
Accessor.FieldReflection<BeanT,ValueT>, Accessor.GetterOnlyReflection<BeanT,ValueT>, Accessor.GetterSetterReflection<BeanT,ValueT>, Accessor.ReadOnlyFieldReflection<BeanT,ValueT>, Accessor.SetterOnlyReflection<BeanT,ValueT>
JAXB_ELEMENT_VALUE, valueType
getter, setter
Constructor | Description |
---|---|
SetterOnlyReflection(java.lang.reflect.Method setter) |
Modifier and Type | Method | Description |
---|---|---|
ValueT |
get(BeanT bean) |
Gets the value of the property of the given bean object.
|
adapt, adapt, getErrorInstance, getUnadapted, getValueType, isAbstractable, isAdapted, isValueTypeAbstractable, receive, setUnadapted
optimize, set
public SetterOnlyReflection(java.lang.reflect.Method setter)
public ValueT get(BeanT bean) throws AccessorException
Accessor
get
in class Accessor.GetterSetterReflection<BeanT,ValueT>
bean
- must not be null.AccessorException
- if failed to set a value. For example, the getter method
may throw an exception.Copyright © 2018 Oracle Corporation. All rights reserved.