public interface PropertyAccessor<B,V>
This interface allows JAX-RPC to access an element property of a JAXB bean.
Subject to change without notice.
Modifier and Type | Method and Description |
---|---|
V |
get(B bean)
Gets the value of the property of the given bean object.
|
void |
set(B bean,
V value)
Sets the value of the property of the given bean object.
|
V get(B bean) throws DatabindingException
bean
- must not be null.AccessorException
- if failed to set a value. For example, the getter method
may throw an exception.DatabindingException
void set(B bean, V value) throws DatabindingException
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.)AccessorException
- if failed to set a value. For example, the setter method
may throw an exception.DatabindingException
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.