org.omnaest.utils.beans.adapter.source
Class SourcePropertyAccessorDecoratorPropertyAccessOption

java.lang.Object
  extended by org.omnaest.utils.beans.adapter.source.SourcePropertyAccessorDecorator
      extended by org.omnaest.utils.beans.adapter.source.SourcePropertyAccessorDecoratorPropertyAccessOption
All Implemented Interfaces:
Serializable, SourcePropertyAccessor

public class SourcePropertyAccessorDecoratorPropertyAccessOption
extends SourcePropertyAccessorDecorator

SourcePropertyAccessorDecorator which will convert incoming keys based on a PropertyAccessOption

Author:
Omnaest
See Also:
PropertyAccessOption, SourcePropertyAccessor, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.omnaest.utils.beans.adapter.source.SourcePropertyAccessor
SourcePropertyAccessor.PropertyMetaInformation
 
Field Summary
protected  PropertyAccessOption propertyAccessOption
           
 
Fields inherited from class org.omnaest.utils.beans.adapter.source.SourcePropertyAccessorDecorator
sourcePropertyAccessor
 
Constructor Summary
SourcePropertyAccessorDecoratorPropertyAccessOption(PropertyAccessOption propertyAccessOption)
           
SourcePropertyAccessorDecoratorPropertyAccessOption(SourcePropertyAccessor sourcePropertyAccessor, PropertyAccessOption propertyAccessOption)
           
 
Method Summary
 Object getValue(String propertyName, Class<?> returnType, SourcePropertyAccessor.PropertyMetaInformation propertyMetaInformation)
          Returns the value related to the given property name.
protected  String processPropertyNameWithTemplate(String propertyName)
           
 void setValue(String propertyName, Object value, Class<?> parameterType, SourcePropertyAccessor.PropertyMetaInformation propertyMetaInformation)
          Sets the given value for the given property name.
 
Methods inherited from class org.omnaest.utils.beans.adapter.source.SourcePropertyAccessorDecorator
setPropertyAccessorDecorator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyAccessOption

protected PropertyAccessOption propertyAccessOption
Constructor Detail

SourcePropertyAccessorDecoratorPropertyAccessOption

public SourcePropertyAccessorDecoratorPropertyAccessOption(SourcePropertyAccessor sourcePropertyAccessor,
                                                           PropertyAccessOption propertyAccessOption)
Parameters:
sourcePropertyAccessor -
propertyAccessOption -

SourcePropertyAccessorDecoratorPropertyAccessOption

public SourcePropertyAccessorDecoratorPropertyAccessOption(PropertyAccessOption propertyAccessOption)
Parameters:
propertyAccessOption -
Method Detail

setValue

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

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

getValue

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

Returns:
See Also:
SourcePropertyAccessor.PropertyMetaInformation

processPropertyNameWithTemplate

protected String processPropertyNameWithTemplate(String propertyName)


Copyright © 2013. All Rights Reserved.