Module com.sun.xml.bind
Class Accessor.ReadOnlyFieldReflection<BeanT,ValueT>
- java.lang.Object
-
- org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor<BeanT,ValueT>
-
- org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor.FieldReflection<BeanT,ValueT>
-
- org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor.ReadOnlyFieldReflection<BeanT,ValueT>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor
Accessor.FieldReflection<BeanT,ValueT>, Accessor.GetterOnlyReflection<BeanT,ValueT>, Accessor.GetterSetterReflection<BeanT,ValueT>, Accessor.ReadOnlyFieldReflection<BeanT,ValueT>, Accessor.SetterOnlyReflection<BeanT,ValueT>
-
-
Field Summary
-
Fields inherited from class org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor.FieldReflection
f
-
Fields inherited from class org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor
JAXB_ELEMENT_VALUE, valueType
-
-
Constructor Summary
Constructors Constructor Description ReadOnlyFieldReflection(Field f)ReadOnlyFieldReflection(Field f, boolean supressAccessorWarnings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Accessor<BeanT,ValueT>optimize(JAXBContextImpl context)Returns the optimized version of the same accessor.voidset(BeanT bean, ValueT value)Sets the value of the property of the given bean object.-
Methods inherited from class org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor.FieldReflection
get
-
Methods inherited from class org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor
adapt, adapt, getErrorInstance, getUnadapted, getValueType, isAbstractable, isAdapted, isValueTypeAbstractable, receive, setUnadapted
-
-
-
-
Method Detail
-
set
public void set(BeanT bean, ValueT value)
Description copied from class:AccessorSets the value of the property of the given bean object.- Overrides:
setin classAccessor.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:AccessorReturns the optimized version of the same accessor.- Overrides:
optimizein classAccessor.FieldReflection<BeanT,ValueT>- Parameters:
context- TheJAXBContextImplthat owns the whole thing. (SeeRuntimeModelBuilder.context.)- Returns:
- At least the implementation can return
this.
-
-