net.sf.implessbean
Class CapitalStringKeyMapper

java.lang.Object
  extended bynet.sf.implessbean.CapitalStringKeyMapper
All Implemented Interfaces:
KeyMapper

public class CapitalStringKeyMapper
extends java.lang.Object
implements KeyMapper

This key mapper maps a property name to a capitalized property name.

Since:
1.0
Version:
$Revision: 1.1 $
Author:
Kohji Nakamura

Constructor Summary
CapitalStringKeyMapper()
           
 
Method Summary
 java.lang.Object propertyNameToKey(java.util.Map values, java.lang.String propertyName)
          Returns a key object of Map corresponding to propertyName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CapitalStringKeyMapper

public CapitalStringKeyMapper()
Method Detail

propertyNameToKey

public java.lang.Object propertyNameToKey(java.util.Map values,
                                          java.lang.String propertyName)
Description copied from interface: KeyMapper
Returns a key object of Map corresponding to propertyName. Return null if there is no key object appropriate for propertyName. In this case, BeanHandler tries to invoke Map object's accessor method rather than to call its get/put method. If it doesn't have a corresponding accessor method, IllegalArgumentException would be thrown.

Specified by:
propertyNameToKey in interface KeyMapper
Parameters:
values - A Map object containing properties of the bean. You can use this Map to find out a key of Map corresponding to the propertyName. Don't change this Map.
propertyName - A name of property.
Returns:
A key object of Map corresponding to propertyName, or null.

Copyright (C) 2004 Kohji Nakamura. All rights reserved.