net.sf.molae.bean
Interface GenericBean

All Known Implementing Classes:
DefaultGenericBean

public interface GenericBean

Compared to a "classic" Java Bean the properties of a generic bean are not defined at compile time. Therefore no get- and set-methods are defined for each single property, instead the get- and put-methods of the property map are used. All generic beans that have the same set of properties belong to one "type". The type is described in the associated bean structure.

Since:
1.1

Method Summary
 BeanStructure getStructure()
          Returns the structure of this bean.
 Map getValues()
          Returns a map containing all property-value mappings in this bean.
 

Method Detail

getStructure

public BeanStructure getStructure()
Returns the structure of this bean.
Returns:
the structure of this bean.

getValues

public Map getValues()
Returns a map containing all property-value mappings in this bean. The map can be modifiable or unmodifiable.
Returns:
a map containing all property-value mappings in this bean.