javax.rad.bean
Class DynamicBean

java.lang.Object
  extended by javax.rad.bean.DynamicBean
All Implemented Interfaces:
IBean, IReadBean

public class DynamicBean
extends Object
implements IBean

The DynamicBean stores dynamic data.


Constructor Summary
DynamicBean()
          Creates an empty Bean without properties.
DynamicBean(String[] pPropertyNames)
          Creates an Bean with the given properties.
 
Method Summary
 Object get(String pPropertyName)
          Gets the value of the property name.
 String[] getPropertyNames()
          Gets the property names available by this bean.
 Object set(String pPropertyName, Object pValue)
          Sets the value of the property name.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynamicBean

public DynamicBean()
Creates an empty Bean without properties.


DynamicBean

public DynamicBean(String[] pPropertyNames)
Creates an Bean with the given properties.

Parameters:
pPropertyNames - the property names.
Method Detail

toString

public String toString()

Overrides:
toString in class Object

getPropertyNames

public String[] getPropertyNames()
Gets the property names available by this bean.

Specified by:
getPropertyNames in interface IReadBean
Returns:
the property names.

get

public Object get(String pPropertyName)
Gets the value of the property name. The property name can be written in dot notation for accessing sub beans.

Specified by:
get in interface IReadBean
Parameters:
pPropertyName - the property name.
Returns:
the value of the property name.

set

public Object set(String pPropertyName,
                  Object pValue)
Sets the value of the property name.

Specified by:
set in interface IBean
Parameters:
pPropertyName - the property name.
pValue - the value of the property name.
Returns:
the oldValue.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.