org.omnaest.utils.beans.adapter
Class PropertynameMapToTypeAdapter.SourePropertyAccessorForMap

java.lang.Object
  extended by org.omnaest.utils.beans.adapter.PropertynameMapToTypeAdapter.SourePropertyAccessorForMap
All Implemented Interfaces:
Serializable, SourcePropertyAccessor
Enclosing class:
PropertynameMapToTypeAdapter<T>

protected static class PropertynameMapToTypeAdapter.SourePropertyAccessorForMap
extends Object
implements SourcePropertyAccessor

Author:
Omnaest
See Also:
SourcePropertyAccessor, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.omnaest.utils.beans.adapter.source.SourcePropertyAccessor
SourcePropertyAccessor.PropertyMetaInformation
 
Constructor Summary
PropertynameMapToTypeAdapter.SourePropertyAccessorForMap(Map<String,Object> map)
           
 
Method Summary
 Map<String,Object> getMap()
           
 Object getValue(String propertyName, Class<?> returnType, SourcePropertyAccessor.PropertyMetaInformation propertyMetaInformation)
          Returns the value related to the given property name.
 void setMap(Map<String,Object> map)
           
 void setValue(String propertyName, Object value, Class<?> parameterType, SourcePropertyAccessor.PropertyMetaInformation propertyMetaInformation)
          Sets the given value for the given property name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertynameMapToTypeAdapter.SourePropertyAccessorForMap

public PropertynameMapToTypeAdapter.SourePropertyAccessorForMap(Map<String,Object> map)
Parameters:
map - Map
See Also:
PropertynameMapToTypeAdapter.SourePropertyAccessorForMap
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.

Specified by:
setValue in interface SourcePropertyAccessor
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.

Specified by:
getValue in interface SourcePropertyAccessor
Returns:
See Also:
SourcePropertyAccessor.PropertyMetaInformation

getMap

public Map<String,Object> getMap()

setMap

public void setMap(Map<String,Object> map)


Copyright © 2013. All Rights Reserved.