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) |
<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)
PropertyAccessor
get
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)
PropertyAccessor
set
in interface PropertyAccessor<T>
S
- the class instance typeinstance
- the instance to set the property value tovalue
- the new value for the propertyprivate CodecConfigurationException getError(java.lang.Exception cause)
private CodecConfigurationException setError(java.lang.Exception cause)