com.sun.xml.bind.v2.runtime.reflect
Class Accessor.ReadOnlyFieldReflection<BeanT,ValueT>
java.lang.Object
com.sun.xml.bind.v2.runtime.reflect.Accessor<BeanT,ValueT>
com.sun.xml.bind.v2.runtime.reflect.Accessor.FieldReflection<BeanT,ValueT>
com.sun.xml.bind.v2.runtime.reflect.Accessor.ReadOnlyFieldReflection<BeanT,ValueT>
- All Implemented Interfaces:
- Receiver
- Enclosing class:
- Accessor<BeanT,ValueT>
public static final class Accessor.ReadOnlyFieldReflection<BeanT,ValueT>
- extends Accessor.FieldReflection<BeanT,ValueT>
Read-only access to Field
. Used to handle a static field.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Accessor.ReadOnlyFieldReflection
public Accessor.ReadOnlyFieldReflection(Field f)
set
public void set(BeanT bean,
ValueT value)
- Description copied from class:
Accessor
- Sets the value of the property of the given bean object.
- Overrides:
set
in class Accessor.FieldReflection<BeanT,ValueT>
- Parameters:
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.)
optimize
public Accessor<BeanT,ValueT> optimize(JAXBContextImpl context)
- Description copied from class:
Accessor
- Returns the optimized version of the same accessor.
- Overrides:
optimize
in class Accessor.FieldReflection<BeanT,ValueT>
- Parameters:
context
- The JAXBContextImpl
that owns the whole thing.
(See RuntimeModelBuilder.context
.)
- Returns:
- At least the implementation can return this.