final class PropertyAccessorImpl<T> extends java.lang.Object implements PropertyAccessor<T>
| Modifier and Type | Field and Description |
|---|---|
private PropertyMetadata<T> |
propertyMetadata |
| Constructor and Description |
|---|
PropertyAccessorImpl(PropertyMetadata<T> propertyMetadata) |
| Modifier and Type | Method and Description |
|---|---|
<S> T |
get(S instance)
Gets the value for a given PropertyModel instance.
|
private CodecConfigurationException |
getError(java.lang.Exception cause) |
(package private) PropertyMetadata<T> |
getPropertyMetadata() |
<S> void |
set(S instance,
T value)
Sets a value on the given PropertyModel
|
private CodecConfigurationException |
setError(java.lang.Exception cause) |
private final PropertyMetadata<T> propertyMetadata
PropertyAccessorImpl(PropertyMetadata<T> propertyMetadata)
public <S> T get(S instance)
PropertyAccessorget in interface PropertyAccessor<T>S - the class instance typeinstance - the class instance to get the property value frompublic <S> void set(S instance,
T value)
PropertyAccessorset in interface PropertyAccessor<T>S - the class instance typeinstance - the instance to set the property value tovalue - the new value for the propertyPropertyMetadata<T> getPropertyMetadata()
private CodecConfigurationException getError(java.lang.Exception cause)
private CodecConfigurationException setError(java.lang.Exception cause)