org.openxava.calculators
Class ModelPropertyCalculator

java.lang.Object
  extended by org.openxava.calculators.ModelPropertyCalculator
All Implemented Interfaces:
java.io.Serializable, ICalculator, IModelCalculator

public class ModelPropertyCalculator
extends java.lang.Object
implements IModelCalculator

Return the value of the indicated property of the sent object model.

Useful for accessing to a calculated property of a handmade POJO.

Author:
Javier Paniza
See Also:
Serialized Form

Constructor Summary
ModelPropertyCalculator()
           
 
Method Summary
 java.lang.Object calculate()
           
 java.lang.String getProperty()
           
 java.lang.Object getValueOfDependsProperty()
           
 void setModel(java.lang.Object model)
          The model object that contains the member that uses the calculator.
 void setProperty(java.lang.String property)
           
 void setValueOfDependsProperty(java.lang.Object valueOfDependsProperty)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelPropertyCalculator

public ModelPropertyCalculator()
Method Detail

setModel

public void setModel(java.lang.Object model)
              throws java.rmi.RemoteException
Description copied from interface: IModelCalculator
The model object that contains the member that uses the calculator.

Specified by:
setModel in interface IModelCalculator
Throws:
java.rmi.RemoteException

calculate

public java.lang.Object calculate()
                           throws java.lang.Exception
Specified by:
calculate in interface ICalculator
Throws:
java.lang.Exception

getProperty

public java.lang.String getProperty()

setProperty

public void setProperty(java.lang.String property)

getValueOfDependsProperty

public java.lang.Object getValueOfDependsProperty()

setValueOfDependsProperty

public void setValueOfDependsProperty(java.lang.Object valueOfDependsProperty)