public static class Accessor.GetterOnlyReflection<BeanT,ValueT> extends Accessor.GetterSetterReflection<BeanT,ValueT>
Accessor.GetterSetterReflection
that doesn't have any setter.
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, setter
JAXB_ELEMENT_VALUE, valueType
Constructor and Description |
---|
GetterOnlyReflection(Method getter) |
Modifier and Type | Method and Description |
---|---|
void |
set(BeanT bean,
ValueT value)
Sets the value of the property of the given bean object.
|
get, optimize
adapt, adapt, getErrorInstance, getUnadapted, getValueType, isAbstractable, isAdapted, isValueTypeAbstractable, receive, setUnadapted
public GetterOnlyReflection(Method getter)
public void set(BeanT bean, ValueT value) throws AccessorException
Accessor
set
in class Accessor.GetterSetterReflection<BeanT,ValueT>
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.)AccessorException
- if failed to set a value. For example, the setter method
may throw an exception.Copyright © 2021 JBoss by Red Hat. All rights reserved.