Top Description Constructors Methods
org.glassfish.jaxb.runtime.api

public abstract Class RawAccessor<B, V>

extends Object
Class Inheritance

Accesses a particular property of a bean.

This interface allows JAX-RPC to access an element property of a JAXB bean.

Subject to change without notice.

Author
Kohsuke Kawaguchi
Since
2.0 EA1

Constructor Summary

AccessConstructor and Description
protected
RawAccessor()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public abstract V
get(B
must not be null.
bean
)

Gets the value of the property of the given bean object.

public abstract void
set(B
must not be null.
bean
,
V
the value to be set. Setting value to null means resetting to the VM default value (even for primitive properties.)
value
)

Sets the value of the property of the given bean object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RawAccessorback to summary
protected RawAccessor()

Default constructor.

Method Detail

getback to summary
public abstract V get(B bean) throws AccessorException

Gets the value of the property of the given bean object.

Parameters
bean:B

must not be null.

Exceptions
AccessorException:
if failed to set a value. For example, the getter method may throw an exception.
Since
2.0 EA1
setback to summary
public abstract void set(B bean, V value) throws AccessorException

Sets the value of the property of the given bean object.

Parameters
bean:B

must not be null.

value:V

the value to be set. Setting value to null means resetting to the VM default value (even for primitive properties.)

Exceptions
AccessorException:
if failed to set a value. For example, the setter method may throw an exception.
Since
2.0 EA1