net.sf.molae.bean
Class DefaultBeanStructure

java.lang.Object
  |
  +--net.sf.molae.bean.MapWithDefault
        |
        +--net.sf.molae.bean.MapBasedBeanStructure
              |
              +--net.sf.molae.bean.DefaultBeanStructure
All Implemented Interfaces:
BeanStructure, Serializable, Transformer

public class DefaultBeanStructure
extends MapBasedBeanStructure

Provides an implementation of the BeanStructure interface based on WrappedKey.

Since:
1.1
See Also:
Serialized Form

Constructor Summary
DefaultBeanStructure()
          Constructs a new DefaultBeanStructure.
 
Method Summary
protected  Object newValue(Object key)
          Factory method to create new values.
 
Methods inherited from class net.sf.molae.bean.MapBasedBeanStructure
getProperties, getProperty
 
Methods inherited from class net.sf.molae.bean.MapWithDefault
getMapping, isReadOnly, setReadOnly, toString, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.molae.bean.BeanStructure
isReadOnly, setReadOnly
 

Constructor Detail

DefaultBeanStructure

public DefaultBeanStructure()
Constructs a new DefaultBeanStructure.
Method Detail

newValue

protected Object newValue(Object key)
Description copied from class: MapWithDefault
Factory method to create new values. This method is called if a value is requested for a key, that is not contained in the base map.
Overrides:
newValue in class MapWithDefault
Following copied from class: net.sf.molae.bean.MapWithDefault
Parameters:
key - key whose associated value is requested
Returns:
a new entry for the specified key.