Accessor.FieldReflection<BeanT,ValueT>, Accessor.GetterOnlyReflection<BeanT,ValueT>, Accessor.GetterSetterReflection<BeanT,ValueT>, Accessor.ReadOnlyFieldReflection<BeanT,ValueT>, Accessor.SetterOnlyReflection<BeanT,ValueT>
f
JAXB_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.
|
get
adapt, adapt, getErrorInstance, getUnadapted, getValueType, isAbstractable, isAdapted, isValueTypeAbstractable, receive, setUnadapted
public ReadOnlyFieldReflection(Field f, boolean supressAccessorWarnings)
public ReadOnlyFieldReflection(Field f)
public void set(BeanT bean, ValueT value)
Accessor
set
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)
Accessor
optimize
in class Accessor.FieldReflection<BeanT,ValueT>
context
- The JAXBContextImpl
that owns the whole thing.
(See RuntimeModelBuilder.context
.)Copyright © 2017 JBoss by Red Hat. All rights reserved.