org.omnaest.utils.beans.adapter.source
Interface SourcePropertyAccessor

All Superinterfaces:
Serializable
All Known Implementing Classes:
PropertynameMapToTypeAdapter.SourePropertyAccessorForMap, SourcePropertyAccessorDecorator, SourcePropertyAccessorDecoratorAdapter, SourcePropertyAccessorDecoratorDefaultValue, SourcePropertyAccessorDecoratorPropertyAccessOption, SourcePropertyAccessorDecoratorPropertyNameTemplate

public interface SourcePropertyAccessor
extends Serializable

Simple SourcePropertyAccessor interface which reduces to a setValue(String, Object, Class, PropertyMetaInformation) and getValue(String, Class, PropertyMetaInformation) method signature.

Author:
Omnaest

Nested Class Summary
static class SourcePropertyAccessor.PropertyMetaInformation
          Contains further meta information about a property
 
Method Summary
 Object getValue(String propertyName, Class<?> returnType, SourcePropertyAccessor.PropertyMetaInformation propertyMetaInformation)
          Returns the value related to the given property name.
 void setValue(String propertyName, Object value, Class<?> parameterType, SourcePropertyAccessor.PropertyMetaInformation propertyMetaInformation)
          Sets the given value for the given property name.
 

Method Detail

setValue

void setValue(String propertyName,
              Object value,
              Class<?> parameterType,
              SourcePropertyAccessor.PropertyMetaInformation propertyMetaInformation)
Sets the given value for the given property name.

Parameters:
propertyName -
value -
parameterType - : type of the first parameter of the property setter method, or type of the return type of the getter method
propertyMetaInformation -
See Also:
SourcePropertyAccessor.PropertyMetaInformation

getValue

Object getValue(String propertyName,
                Class<?> returnType,
                SourcePropertyAccessor.PropertyMetaInformation propertyMetaInformation)
Returns the value related to the given property name.

Parameters:
propertyName -
returnType -
propertyMetaInformation -
Returns:
See Also:
SourcePropertyAccessor.PropertyMetaInformation


Copyright © 2013. All Rights Reserved.