webwork.examples
Class LoanCalc

java.lang.Object
  extended bywebwork.action.ActionSupport
      extended bywebwork.examples.LoanCalc
All Implemented Interfaces:
Action, IllegalArgumentAware, java.io.Serializable

public class LoanCalc
extends ActionSupport

See Also:
Serialized Form

Nested Class Summary
 class LoanCalc.MonthlyDue
           
 
Field Summary
protected static int MAXTERMS
           
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages, log
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
LoanCalc()
           
 
Method Summary
protected  java.lang.String doExecute()
           
protected  void doValidation()
          Subclasses may override this method to provide validation of input data.
 float getInstalment()
           
 float getInterestRate()
           
 java.util.List getMonthlyDues()
           
 float getPresentValue()
           
 void setInstalment(float instalment)
           
 void setInterestRate(float interestRate)
           
 void setPresentValue(float presentValue)
           
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, addIllegalArgumentException, doDefault, execute, getActionName, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getLocale, getPropertyEditorMessage, getText, getTexts, getTexts, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAXTERMS

protected static final int MAXTERMS
See Also:
Constant Field Values
Constructor Detail

LoanCalc

public LoanCalc()
Method Detail

setPresentValue

public void setPresentValue(float presentValue)

getPresentValue

public float getPresentValue()

setInterestRate

public void setInterestRate(float interestRate)

getInterestRate

public float getInterestRate()

setInstalment

public void setInstalment(float instalment)

getInstalment

public float getInstalment()

getMonthlyDues

public java.util.List getMonthlyDues()

doValidation

protected void doValidation()
Description copied from class: ActionSupport
Subclasses may override this method to provide validation of input data. The execute() method should call validate() in the beginning of its code (which will delegate to this method), so as to check input data before doing the actual processing.

If any application errors arise these should be registered by calling addErrorMessage or addError .

If the validation is dependent on whether a command has been issued, and what that command is, then the isCommand() method should be used.

Overrides:
doValidation in class ActionSupport

doExecute

protected java.lang.String doExecute()
Overrides:
doExecute in class ActionSupport


Copyright © 2001-2003 WebWork All Rights Reserved.