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>getter, setterJAXB_ELEMENT_VALUE, valueType| Constructor and Description |
|---|
SetterOnlyReflection(Method setter) |
| Modifier and Type | Method and Description |
|---|---|
ValueT |
get(BeanT bean)
Gets the value of the property of the given bean object.
|
optimize, setadapt, adapt, getErrorInstance, getUnadapted, getValueType, isAbstractable, isAdapted, isValueTypeAbstractable, receive, setUnadaptedpublic SetterOnlyReflection(Method setter)
public ValueT get(BeanT bean) throws AccessorException
Accessorget 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 JBoss by Red Hat. All rights reserved.