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.Objectcalculate()java.lang.StringgetProperty()java.lang.ObjectgetValueOfDependsProperty()voidsetModel(java.lang.Object model)The model object that contains the member that uses the calculator.voidsetProperty(java.lang.String property)voidsetValueOfDependsProperty(java.lang.Object valueOfDependsProperty)
-
-
-
Method Detail
-
setModel
public void setModel(java.lang.Object model) throws java.rmi.RemoteExceptionDescription copied from interface:IModelCalculatorThe model object that contains the member that uses the calculator.- Specified by:
setModelin interfaceIModelCalculator- Throws:
java.rmi.RemoteException
-
calculate
public java.lang.Object calculate() throws java.lang.Exception- Specified by:
calculatein 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)
-
-