Accessor.FieldReflection<BeanT,ValueT>, Accessor.GetterOnlyReflection<BeanT,ValueT>, Accessor.GetterSetterReflection<BeanT,ValueT>, Accessor.ReadOnlyFieldReflection<BeanT,ValueT>, Accessor.SetterOnlyReflection<BeanT,ValueT>fJAXB_ELEMENT_VALUE, valueType| Constructor and Description |
|---|
ReadOnlyFieldReflection(Field f) |
ReadOnlyFieldReflection(Field f,
boolean supressAccessorWarnings) |
| Modifier and Type | Method and Description |
|---|---|
Accessor<BeanT,ValueT> |
optimize(JAXBContextImpl context)
Returns the optimized version of the same accessor.
|
void |
set(BeanT bean,
ValueT value)
Sets the value of the property of the given bean object.
|
getadapt, adapt, getErrorInstance, getUnadapted, getValueType, isAbstractable, isAdapted, isValueTypeAbstractable, receive, setUnadaptedpublic ReadOnlyFieldReflection(Field f, boolean supressAccessorWarnings)
public ReadOnlyFieldReflection(Field f)
public void set(BeanT bean, ValueT value)
Accessorset in class Accessor.FieldReflection<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.)public Accessor<BeanT,ValueT> optimize(JAXBContextImpl context)
Accessoroptimize in class Accessor.FieldReflection<BeanT,ValueT>context - The JAXBContextImpl that owns the whole thing.
(See RuntimeModelBuilder.context.)this.Copyright © 2018 JBoss by Red Hat. All rights reserved.