|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.implessbean.StringKeyMapper
This key mapper maps a property name to itself.
Constructor Summary | |
StringKeyMapper()
|
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 |
public StringKeyMapper()
Method Detail |
public java.lang.Object propertyNameToKey(java.util.Map values, java.lang.String propertyName)
KeyMapper
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.
propertyNameToKey
in interface KeyMapper
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.
|
Copyright (C) 2004 Kohji Nakamura. All rights reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |