org.apache.taglibs.rdc
Class MortgageType

java.lang.Object
  extended by org.apache.taglibs.rdc.core.BaseModel
      extended by org.apache.taglibs.rdc.MortgageType
All Implemented Interfaces:
java.io.Serializable

public class MortgageType
extends BaseModel

DataModel for the Mortgage Term RDC

Author:
Sindhu Unnikrishnan, Rahul Akolkar
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.taglibs.rdc.core.BaseModel
BaseModel.ValueInterpreter
 
Field Summary
static int ERR_INVALID_MORTGAGE_TERM
           
static int ERR_NEED_HIGHER_VALUE
           
static int ERR_NEED_LOWER_VALUE
           
 
Fields inherited from class org.apache.taglibs.rdc.core.BaseModel
ambiguousValues, candidates, canonicalizedValue, className, configuration, confirm, confirmed, DEFAULT_INITIAL_GRAMMAR_NAME, DEFAULT_MIN_CONFIDENCE, DEFAULT_NUM_N_BEST, echo, ERR_NO_DEFAULT, ERR_NONE, errorCode, exitStatus, grammars, id, initial, initialGrammar, interpretation, isAmbiguous, isValid, locale, maxNoInput, maxNoMatch, minConfidence, numNBest, paramsMap, PROPERTY_INITIAL_GRAMMAR, rdcLocale, rdcResourceBundle, skipSubmit, state, subdialog, submit, utterance, value
 
Constructor Summary
MortgageType()
           
 
Method Summary
protected  java.lang.Object canonicalize(java.lang.Object input, boolean isAttribute)
          This method returns the mortgage term format
 java.lang.String getMaxTerm()
          Get the max mortgage term that a user has specified in the attirbute
 java.lang.String getMinTerm()
          Get what min Mortgage term that a user has specified in the attirbute
 void setMaxTerm(java.lang.String maxTerm)
          Set the MaxTerm value.
 void setMinTerm(java.lang.String minTerm)
          Set the MinTerm value.
protected  java.lang.Boolean validate(java.lang.Object newValue, boolean setErrorCode)
          Validate the received input against the validation constraints
 
Methods inherited from class org.apache.taglibs.rdc.core.BaseModel
baseCanonicalize, baseValidate, calculateCanonicalizedValue, getAmbiguousValues, getCandidates, getCanonicalizedValue, getClassName, getConfiguration, getConfirm, getConfirmed, getEcho, getERR_NO_DEFAULT, getERR_NONE, getErrorCode, getExitStatus, getGrammars, getId, getInitial, getInterpretation, getIsAmbiguous, getIsValid, getLocale, getMaxNoInput, getMaxNoMatch, getMinConfidence, getNumNBest, getParamsMap, getRdcLocale, getRdcResourceBundle, getSerializedValue, getSkipSubmit, getState, getSubdialog, getSubmit, getUtterance, getValue, setAmbiguousValues, setCandidates, setCanonicalizedValue, setConfiguration, setConfirm, setConfirmed, setEcho, setErrorCode, setExitStatus, setGrammar, setId, setInitial, setInterpretation, setIsAmbiguous, setIsValid, setLocale, setMaxNoInput, setMaxNoMatch, setMinConfidence, setNumNBest, setSkipSubmit, setState, setSubdialog, setSubmit, setUtterance, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERR_INVALID_MORTGAGE_TERM

public static final int ERR_INVALID_MORTGAGE_TERM
See Also:
Constant Field Values

ERR_NEED_LOWER_VALUE

public static final int ERR_NEED_LOWER_VALUE
See Also:
Constant Field Values

ERR_NEED_HIGHER_VALUE

public static final int ERR_NEED_HIGHER_VALUE
See Also:
Constant Field Values
Constructor Detail

MortgageType

public MortgageType()
Method Detail

getMaxTerm

public java.lang.String getMaxTerm()
Get the max mortgage term that a user has specified in the attirbute

Returns:
the user specified maxTerm

setMaxTerm

public void setMaxTerm(java.lang.String maxTerm)
Set the MaxTerm value.

Parameters:
maxTerm - The max mortgage term value.

getMinTerm

public java.lang.String getMinTerm()
Get what min Mortgage term that a user has specified in the attirbute

Returns:
the user specified minTerm

setMinTerm

public void setMinTerm(java.lang.String minTerm)
Set the MinTerm value.

Parameters:
minTerm - The min Mortgage term value.

canonicalize

protected java.lang.Object canonicalize(java.lang.Object input,
                                        boolean isAttribute)
This method returns the mortgage term format

Overrides:
canonicalize in class BaseModel
Parameters:
input - The mortgage term input string
Returns:
The value of mortgage term

validate

protected java.lang.Boolean validate(java.lang.Object newValue,
                                     boolean setErrorCode)
Validate the received input against the validation constraints

Overrides:
validate in class BaseModel
Returns:
boolean - true if valid, false if invalid


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.