- All Known Implementing Classes:
RawAccessorWrapper
public interface PropertyAccessor<B,V>
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.
- Since:
- 2.0 EA1
- Author:
- Kohsuke Kawaguchi
-
Method Summary
-
Method Details
-
get
Gets the value of the property of the given bean object.- Parameters:
bean
- must not be null.- Throws:
DatabindingException
- if failed to set a value. For example, the getter method may throw an exception.- Since:
- 2.0 EA1
-
set
Sets the value of the property of the given bean object.- 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:
DatabindingException
- if failed to set a value. For example, the setter method may throw an exception.- Since:
- 2.0 EA1
-