Package org.openxava.calculators
Class ModelPropertyCalculator
- java.lang.Object
-
- 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
Constructors Constructor Description ModelPropertyCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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 interfaceIModelCalculator
- Throws:
java.rmi.RemoteException
-
calculate
public java.lang.Object calculate() throws java.lang.Exception
- Specified by:
calculate
in interfaceICalculator
- 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)
-
-