org.apache.taglibs.rdc
Class CreditCardExpiry

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

public class CreditCardExpiry
extends BaseModel

Datamodel for the credit card expiry date RDC.

Author:
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_EXPIRED
          A constant for Error Code stating card has already expired (as of today)
 
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
CreditCardExpiry()
          Sets default values for all data members
 
Method Summary
protected  java.lang.Object canonicalize(java.lang.Object input, boolean isAttribute)
          Canonicalize
 int getMaxDenials()
          Get the maximum denials allowed before graceful exit
 void setConfirmed(java.lang.Boolean confirmed)
          Record user response to confirmation
 void setMaxDenials(int maxDenials)
          Set the maximum denials allowed before graceful exit
protected  java.lang.Boolean validate(java.lang.Object newValue, boolean setErrorCode)
          Validates 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, 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_EXPIRED

public static final int ERR_EXPIRED
A constant for Error Code stating card has already expired (as of today)

See Also:
Constant Field Values
Constructor Detail

CreditCardExpiry

public CreditCardExpiry()
Sets default values for all data members

Method Detail

setConfirmed

public void setConfirmed(java.lang.Boolean confirmed)
Record user response to confirmation

Overrides:
setConfirmed in class BaseModel
Parameters:
confirmed - The user confirmation

getMaxDenials

public int getMaxDenials()
Get the maximum denials allowed before graceful exit

Returns:
Returns the maxDenials.

setMaxDenials

public void setMaxDenials(int maxDenials)
Set the maximum denials allowed before graceful exit

Parameters:
maxDenials - The maxDenials to set.

canonicalize

protected java.lang.Object canonicalize(java.lang.Object input,
                                        boolean isAttribute)
Canonicalize

Overrides:
canonicalize in class BaseModel
Parameters:
input - the value
Returns:
The value of date

validate

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

Overrides:
validate in class BaseModel
Returns:
True if valid, False if invalid


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