public class BeanFillerWrapper extends Object implements Filler
Filler
that supports getting values from a plain-old Java object
(POJO) via the Java bean property mechanism.
The dot convention is used to recursively delve into properties. For example,
the key obj1.prop1.prop2.prop3
would be identical to the Java call
obj.getProp1().getProp2().getProp3()
.
Constructor and Description |
---|
BeanFillerWrapper(String keyPrefix,
Object bean) |
BeanFillerWrapper(String keyPrefix,
Object bean,
BeanInfo beanInfo) |
Modifier and Type | Method and Description |
---|---|
Iterable<? extends Filler> |
getFillers(String iteratorKey) |
Object |
getValue(String key) |
public BeanFillerWrapper(String keyPrefix, Object bean) throws IntrospectionException
IntrospectionException
public Object getValue(String key) throws CastException
getValue
in interface Filler
CastException
public Iterable<? extends Filler> getFillers(String iteratorKey) throws CastException
getFillers
in interface Filler
CastException
Copyright © 2009-2015 Three Crickets LLC.