|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<String,Object>
javax.rad.type.bean.AbstractBean<BeanType>
javax.rad.type.bean.Bean
public class Bean
The Bean is a bean with dynamic properties. It's a sort of dynamic/generic
bean without special get/set implementation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Field Summary |
|---|
| Fields inherited from class javax.rad.type.bean.AbstractBean |
|---|
beanType |
| Constructor Summary | |
|---|---|
Bean()
Creates an empty Bean. |
|
Bean(BeanType pBeanType)
Creates a Bean with a BeanType. |
|
Bean(Class pBeanClass)
Creates a Bean with a bean class. |
|
Bean(IBeanType pBeanType)
Creates a Bean with a IBeanType. |
|
Bean(Object pObject)
Creates a Bean with an object. |
|
| Method Summary | |
|---|---|
Object |
clone()
Returns a clone of this bean. |
Object |
get(int pIndex)
Gets the value of a property. |
Object |
getObject()
Gets the Object that stores the values. |
void |
put(int pIndex,
Object pValue)
Sets the value of a property. |
| Methods inherited from class javax.rad.type.bean.AbstractBean |
|---|
entrySet, get, getBeanType, put |
| Methods inherited from class java.util.AbstractMap |
|---|
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Bean()
Bean.
public Bean(IBeanType pBeanType)
Bean with a IBeanType.
pBeanType - the bean type.
ClassCastException - if given type is not an instance of BeanTypepublic Bean(BeanType pBeanType)
Bean with a BeanType.
pBeanType - the bean type.public Bean(Object pObject)
Bean with an object.
pObject - the object.public Bean(Class pBeanClass)
Bean with a bean class.
pBeanClass - the bean class.| Method Detail |
|---|
public void put(int pIndex,
Object pValue)
put in class AbstractBean<BeanType>pIndex - the property indexpValue - the value of the propertypublic Object clone()
clone in interface IBeanclone in class AbstractBean<BeanType>public Object getObject()
public Object get(int pIndex)
get in class AbstractBean<BeanType>pIndex - the property index
null if the property was not found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||