Accessor.FieldReflection<BeanT,ValueT>, Accessor.GetterOnlyReflection<BeanT,ValueT>, Accessor.GetterSetterReflection<BeanT,ValueT>, Accessor.ReadOnlyFieldReflection<BeanT,ValueT>, Accessor.SetterOnlyReflection<BeanT,ValueT>
JAXB_ELEMENT_VALUE, valueType
Constructor and Description |
---|
NullSafeAccessor(Accessor<B,V> core,
Lister<B,V,?,P> lister) |
Modifier and Type | Method and Description |
---|---|
V |
get(B bean)
Gets the value of the property of the given bean object.
|
void |
set(B bean,
V value)
Sets the value of the property of the given bean object.
|
adapt, adapt, getErrorInstance, getUnadapted, getValueType, isAbstractable, isAdapted, isValueTypeAbstractable, optimize, receive, setUnadapted
public V get(B bean) throws AccessorException
Accessor
get
in class Accessor<B,V>
bean
- must not be null.AccessorException
- if failed to set a value. For example, the getter method
may throw an exception.public void set(B bean, V value) throws AccessorException
Accessor
set
in class Accessor<B,V>
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 © 2020 JBoss by Red Hat. All rights reserved.