org.apache.commons.clazz.bean
Class BasicBean

java.lang.Object
  extended by org.apache.commons.clazz.bean.BasicBean
All Implemented Interfaces:
Bean

public class BasicBean
extends Object
implements Bean

A trivial implementation of the Bean interface based on a HashMap.

Version:
$Revision: 155436 $ $Date: 2005-02-26 13:17:48 +0000 (Sat, 26 Feb 2005) $
Author:
Dmitri Plotnikov

Constructor Summary
BasicBean(Clazz clazz)
          Constructor for BasicBean.
BasicBean(Clazz clazz, Map initialPropertyValues)
          Constructor that initializes properties of the bean.
 
Method Summary
 Object get(String propertyName)
           
 Clazz getClazz()
          Gets the Clazz for the bean.
 void set(String propertyName, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicBean

public BasicBean(Clazz clazz)
Constructor for BasicBean.


BasicBean

public BasicBean(Clazz clazz,
                 Map initialPropertyValues)
Constructor that initializes properties of the bean.

Method Detail

getClazz

public Clazz getClazz()
Description copied from interface: Bean
Gets the Clazz for the bean.

Specified by:
getClazz in interface Bean
Returns:
the meta bean for the bean
See Also:
Bean.getClazz()

get

public Object get(String propertyName)
Specified by:
get in interface Bean
See Also:
Bean.get(java.lang.String)

set

public void set(String propertyName,
                Object value)
Specified by:
set in interface Bean
See Also:
Bean.set(String, Object)


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.