|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cojen.util.BeanPropertyMapFactory<B>
public abstract class BeanPropertyMapFactory<B>
Provides a simple and efficient means of reading and writing bean properties via a map. Properties which declare throwing checked exceptions are excluded as are properties which are read-only or write-only.
BeanPropertyAccessor| Constructor Summary | |
|---|---|
BeanPropertyMapFactory()
|
|
| Method Summary | ||
|---|---|---|
static SortedMap<String,Object> |
asMap(Object bean)
Returns a fixed-size map backed by the given bean. |
|
abstract SortedMap<String,Object> |
createMap(B bean)
Returns a fixed-size map backed by the given bean. |
|
static
|
forClass(Class<B> clazz)
Returns a new or cached BeanPropertyMapFactory for the given class. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanPropertyMapFactory()
| Method Detail |
|---|
public static <B> BeanPropertyMapFactory<B> forClass(Class<B> clazz)
public static SortedMap<String,Object> asMap(Object bean)
IllegalArgumentException - if bean is nullpublic abstract SortedMap<String,Object> createMap(B bean)
IllegalArgumentException - if bean is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||