Class ModelPropertyCalculator

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

public class ModelPropertyCalculator extends 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:
  • Constructor Details

    • ModelPropertyCalculator

      public ModelPropertyCalculator()
  • Method Details

    • setModel

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

      Specified by:
      setModel in interface IModelCalculator
    • calculate

      public Object calculate() throws Exception
      Specified by:
      calculate in interface ICalculator
      Throws:
      Exception
    • getProperty

      public String getProperty()
    • setProperty

      public void setProperty(String property)
    • getValueOfDependsProperty

      public Object getValueOfDependsProperty()
    • setValueOfDependsProperty

      public void setValueOfDependsProperty(Object valueOfDependsProperty)