|
|||||||||||
| 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.core.RDCTemplate
org.apache.taglibs.rdc.sampleapps.musicstore.AmazonMenuTemplate
The RDC template instance for the main menu of the music store sample application. This template instance has: a) A user defined data model b) Multiple turns in "input" state c) "Mixed initiative" style interaction for first turn d) Custom "dialog management" based on validation criteria for subsequent turns
| Nested Class Summary | |
static class |
AmazonMenuTemplate.AmazonMenuResult
Class that encapsulates the user's choice from the main menu. |
| Nested classes inherited from class org.apache.taglibs.rdc.core.BaseModel |
BaseModel.ValueInterpreter |
| Field Summary | |
static int |
ERR_NO_CATEGORY
A constant for Error Code stating no category from the menu has been specified |
| Fields inherited from class org.apache.taglibs.rdc.core.RDCTemplate |
bean, constraints, data, dynamicAttributes, fsmFragment, populateGrammars |
| 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 | |
AmazonMenuTemplate()
Sets default values for all data members |
|
| Method Summary | |
int |
getERR_NO_CATEGORY()
|
void |
initComponentGrammars()
Initialize the component grammars for first round trip |
void |
setCategoryGrammar(Grammar g)
|
void |
setConfirmed(java.lang.Boolean confirmed)
Set the response of user to the confirmation dialog |
void |
setMainGrammar(Grammar g)
|
void |
setValueFromInterpretation()
Sets the new value |
protected java.lang.Boolean |
validate(java.lang.Object newValue,
boolean setErrorCode)
Custom validation |
| Methods inherited from class org.apache.taglibs.rdc.core.RDCTemplate |
getBean, getConstraints, getData, getFsmFragment, setBean, setConstraints, setData, setDynamicAttributes, setFsmFragment, setGrammar |
| 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_NO_CATEGORY
| Constructor Detail |
public AmazonMenuTemplate()
| Method Detail |
public final int getERR_NO_CATEGORY()
public void setMainGrammar(Grammar g)
public void setCategoryGrammar(Grammar g)
public void setValueFromInterpretation()
setValueFromInterpretation in interface BaseModel.ValueInterpreterBaseModel.ValueInterpreter.setValueFromInterpretation()public void initComponentGrammars()
initComponentGrammars in class RDCTemplateRDCTemplate.initComponentGrammars()public void setConfirmed(java.lang.Boolean confirmed)
setConfirmed in class BaseModelconfirmed -
protected java.lang.Boolean validate(java.lang.Object newValue,
boolean setErrorCode)
validate in class BaseModelBaseModel.validate(Object,boolean)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||