|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.taglibs.rdc.core.BaseModel
org.apache.taglibs.rdc.CreditCardAmount
Datamodel for the credit card payment RDC. The amount value and the maximum and minimum values have an expected format of the form UUUmm.nn or mm.nn where UUU is the ISO 4217 currency code, mmm is integer part and nn is the fractional part. If currency code is not specified the default currency code for the default locale is assumed.
Nested Class Summary |
Nested classes inherited from class org.apache.taglibs.rdc.core.BaseModel |
BaseModel.ValueInterpreter |
Field Summary | |
static int |
ERR_NEED_HIGHER_AMOUNT
A constant for Error Code stating the currency entered is lower than allowed |
static int |
ERR_NEED_LOWER_AMOUNT
A constant for Error Code stating the currency entered is higher than allowed |
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 | |
CreditCardAmount()
Sets default values for all data model members |
Method Summary | |
protected java.lang.Object |
canonicalize(java.lang.Object input,
boolean isAttribute)
Sets up maximum or minimum permissible value. |
java.lang.String |
getBalance()
Return the account balance |
java.lang.String |
getCurrencyCode()
Gets the currency code for the currency used |
java.lang.String |
getMaxAmount()
Gets the maximum allowed amount for this payment |
int |
getMaxDenials()
Get the maximum denials allowed before graceful exit |
java.lang.String |
getMinAmount()
Gets the minimum allowed amount for this payment |
void |
setBalance(java.lang.String balance)
Set the account balance |
void |
setConfirmed(java.lang.Boolean confirmed)
Record user response to confirmation |
void |
setCurrencyCode(java.lang.String code)
Sets the specified currency code |
void |
setFullAmountGrammar(Grammar g)
|
void |
setMaxAmount(java.lang.String maxAmount)
Sets the maximum allowed amount for this payment |
void |
setMaxDenials(int maxDenials)
Set the maximum denials allowed before graceful exit |
void |
setMinAmount(java.lang.String minAmount)
Sets the minimum allowed amount for this payment |
void |
setMinimumDueGrammar(Grammar g)
|
protected java.lang.Boolean |
validate(java.lang.Object newValue,
boolean setErrorCode)
Validates the amount value against the given constraints |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ERR_NEED_LOWER_AMOUNT
public static final int ERR_NEED_HIGHER_AMOUNT
Constructor Detail |
public CreditCardAmount()
Method Detail |
public void setMinimumDueGrammar(Grammar g)
public void setFullAmountGrammar(Grammar g)
public void setConfirmed(java.lang.Boolean confirmed)
setConfirmed
in class BaseModel
confirmed
- The user confirmationpublic java.lang.String getCurrencyCode()
public void setCurrencyCode(java.lang.String code)
code
- The currency code as defined in ISO 4217 standardspublic java.lang.String getMaxAmount()
public void setMaxAmount(java.lang.String maxAmount)
maxAmount
- The maximum allowed amountpublic java.lang.String getMinAmount()
public void setMinAmount(java.lang.String minAmount)
minAmount
- The minimum allowed amountpublic java.lang.String getBalance()
public void setBalance(java.lang.String balance)
balance
- The balance to set.public int getMaxDenials()
public void setMaxDenials(int maxDenials)
maxDenials
- The maxDenials to set.protected java.lang.Object canonicalize(java.lang.Object input, boolean isAttribute)
canonicalize
in class BaseModel
input
- the value
protected java.lang.Boolean validate(java.lang.Object newValue, boolean setErrorCode)
validate
in class BaseModel
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |