Module com.sun.xml.bind
Class NullSafeAccessor<B,V,P>
- java.lang.Object
-
- org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor<B,V>
-
- org.glassfish.jaxb.runtime.v2.runtime.reflect.NullSafeAccessor<B,V,P>
-
-
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
JAXB_ELEMENT_VALUE, valueType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vget(B bean)Gets the value of the property of the given bean object.voidset(B bean, V value)Sets the value of the property of the given bean object.-
Methods inherited from class org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor
adapt, adapt, getErrorInstance, getUnadapted, getValueType, isAbstractable, isAdapted, isValueTypeAbstractable, optimize, receive, setUnadapted
-
-
-
-
Method Detail
-
get
public V get(B bean) throws AccessorException
Description copied from class:AccessorGets the value of the property of the given bean object.- Specified by:
getin classAccessor<B,V>- Parameters:
bean- must not be null.- Throws:
AccessorException- if failed to set a value. For example, the getter method may throw an exception.
-
set
public void set(B bean, V value) throws AccessorException
Description copied from class:AccessorSets the value of the property of the given bean object.- Specified by:
setin classAccessor<B,V>- 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.)- Throws:
AccessorException- if failed to set a value. For example, the setter method may throw an exception.
-
-