Module com.sun.xml.bind
Class Accessor.SetterOnlyReflection<BeanT,ValueT>
- java.lang.Object
-
- org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor<BeanT,ValueT>
-
- org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor.GetterSetterReflection<BeanT,ValueT>
-
- org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor.SetterOnlyReflection<BeanT,ValueT>
-
- All Implemented Interfaces:
Receiver
public static class Accessor.SetterOnlyReflection<BeanT,ValueT> extends Accessor.GetterSetterReflection<BeanT,ValueT>
A version ofAccessor.GetterSetterReflectionthaat doesn't have any getter.This provides a user-friendly error message.
-
-
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.GetterSetterReflection
getter, setter
-
Fields inherited from class org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor
JAXB_ELEMENT_VALUE, valueType
-
-
Constructor Summary
Constructors Constructor Description SetterOnlyReflection(Method setter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueTget(BeanT bean)Gets the value of the property of the given bean object.-
Methods inherited from class org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor.GetterSetterReflection
optimize, set
-
Methods inherited from class org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor
adapt, adapt, getErrorInstance, getUnadapted, getValueType, isAbstractable, isAdapted, isValueTypeAbstractable, receive, setUnadapted
-
-
-
-
Constructor Detail
-
SetterOnlyReflection
public SetterOnlyReflection(Method setter)
-
-
Method Detail
-
get
public ValueT get(BeanT bean) throws AccessorException
Description copied from class:AccessorGets the value of the property of the given bean object.- Overrides:
getin classAccessor.GetterSetterReflection<BeanT,ValueT>- Parameters:
bean- must not be null.- Throws:
AccessorException- if failed to set a value. For example, the getter method may throw an exception.
-
-