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, setter
JAXB_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, set
adapt, adapt, getErrorInstance, getUnadapted, getValueType, isAbstractable, isAdapted, isValueTypeAbstractable, receive, setUnadapted
public SetterOnlyReflection(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 © 2017 JBoss by Red Hat. All rights reserved.