com.opensymphony.xwork.util
Interface ObjectTypeDeterminer
- All Known Implementing Classes:
- DefaultObjectTypeDeterminer, MockObjectTypeDeterminer
- public interface ObjectTypeDeterminer
Determines what the key and and element class of a Map or Collection should be. For Maps, the elements are the
values. For Collections, the elements are the elements of the collection.
- Author:
- Gabriel Zimmerman
getKeyClass
public Class getKeyClass(Class parentClass,
String property)
getElementClass
public Class getElementClass(Class parentClass,
String property,
Object key)
getKeyProperty
public String getKeyProperty(Class parentClass,
String property)
shouldCreateIfNew
public boolean shouldCreateIfNew(Class parentClass,
String property,
Object target,
String keyProperty,
boolean isIndexAccessed)