org.openxava.model.impl
Class POJOPropertiesContainerAdapter

java.lang.Object
  extended by org.openxava.model.impl.POJOPropertiesContainerAdapter
All Implemented Interfaces:
IPropertiesContainer

public class POJOPropertiesContainerAdapter
extends java.lang.Object
implements IPropertiesContainer

Author:
Javier Paniza

Constructor Summary
POJOPropertiesContainerAdapter(java.lang.Object object)
           
 
Method Summary
 java.util.Map executeGets(java.lang.String properties)
          Obtain the values of properties in a Map.
 void executeSets(java.util.Map properties)
          Update the properties from a map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POJOPropertiesContainerAdapter

public POJOPropertiesContainerAdapter(java.lang.Object object)
Method Detail

executeGets

public java.util.Map executeGets(java.lang.String properties)
                          throws java.rmi.RemoteException
Description copied from interface: IPropertiesContainer
Obtain the values of properties in a Map.

Specified by:
executeGets in interface IPropertiesContainer
Parameters:
properties - Names of properties to obtain separated by a colon (:). The properties have to exists in the object.
Returns:
Map withString propertyName:Object value. Not null
Throws:
java.rmi.RemoteException - Some system problem or another unexpected problem

executeSets

public void executeSets(java.util.Map properties)
                 throws ValidationException,
                        java.rmi.RemoteException
Description copied from interface: IPropertiesContainer
Update the properties from a map.

Specified by:
executeSets in interface IPropertiesContainer
Parameters:
properties - Map with String propertyName:Object value. Null is like a empty map.
Throws:
ValidationException - Some problem validating the data
java.rmi.RemoteException - Some system problem or another unexpected problem