|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.utils.beans.TypeToAutowiredPropertyContainerAdapter<B>
B - public class TypeToAutowiredPropertyContainerAdapter<B>
Adapter to create a Map view on an underlying Java Bean object. Modifications to the bean or the map will be reflected
to each other.
MapToTypeAdapter| Field Summary | |
|---|---|
protected B |
bean
|
protected Map<String,BeanPropertyAccessor<B>> |
propertynameToBeanPropertyAccessorMap
|
protected Map<Class<?>,Set<BeanPropertyAccessor<B>>> |
propertyTypeToBeanPropertyAccessorSetMap
|
| Constructor Summary | |
|---|---|
protected |
TypeToAutowiredPropertyContainerAdapter(B bean)
|
| Method Summary | ||
|---|---|---|
|
getPropertynameToValueMap(Class<O> clazz)
Returns a Map for all properties which can be assigned to the given Class. |
|
|
getValue(Class<O> clazz)
Returns the value of the property which can be assigned as value to the given Class type. |
|
|
getValueSet(Class<O> clazz)
Returns a Set for all properties which can be assigned to the given Class. |
|
Iterator<Object> |
iterator()
|
|
static
|
newInstance(B bean)
Factory method to create a Map view on a given Java Bean object. |
|
int |
put(Object value)
Adds an Object to the AutowiredPropertyContainer. |
|
boolean |
put(String propertyname,
Object value)
Adds an Object to the AutowiredPropertyContainer. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected B bean
protected Map<String,BeanPropertyAccessor<B>> propertynameToBeanPropertyAccessorMap
protected Map<Class<?>,Set<BeanPropertyAccessor<B>>> propertyTypeToBeanPropertyAccessorSetMap
| Constructor Detail |
|---|
protected TypeToAutowiredPropertyContainerAdapter(B bean)
bean - newInstance(Object)| Method Detail |
|---|
public static <B> AutowiredPropertyContainer newInstance(B bean)
Map view on a given Java Bean object. Changes to this map will be translated to the Java
Bean object and vice versa.
B - bean -
public int put(Object value)
AutowiredPropertyContainerObject to the AutowiredPropertyContainer. This will update all properties of the underlying Java Bean
object which can be assigned by the given Object.
put in interface AutowiredPropertyContainer
public boolean put(String propertyname,
Object value)
AutowiredPropertyContainerObject to the AutowiredPropertyContainer. This will update all properties of the underlying Java Bean
object which can be assigned by the given Object.
put in interface AutowiredPropertyContainerpublic <O> Map<String,O> getPropertynameToValueMap(Class<O> clazz)
AutowiredPropertyContainerMap for all properties which can be assigned to the given Class. The Map has the property
names as key and the values of the properties as values.
getPropertynameToValueMap in interface AutowiredPropertyContainerpublic <O> Set<O> getValueSet(Class<O> clazz)
AutowiredPropertyContainerSet for all properties which can be assigned to the given Class.
getValueSet in interface AutowiredPropertyContainerpublic <O> O getValue(Class<O> clazz)
AutowiredPropertyContainerClass type. If there are multiple
properties available with fitting types null is returned.
getValue in interface AutowiredPropertyContainerpublic Iterator<Object> iterator()
iterator in interface Iterable<Object>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||