org.apache.taglibs.rdc.core
Class ComponentModel

java.lang.Object
  extended by org.apache.taglibs.rdc.core.BaseModel
      extended by org.apache.taglibs.rdc.core.ComponentModel
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CreditCardInfo, DateRange, Mortgage

public class ComponentModel
extends BaseModel
implements java.io.Serializable

This is the base class for component models of composite RDCs.

Author:
Abhishek Verma, 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
protected  java.lang.String config
           
protected  java.util.Map configMap
           
protected  javax.servlet.jsp.JspContext context
           
protected  java.util.Map localMap
           
 
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
ComponentModel()
           
 
Method Summary
protected  void configHandler()
          Hook for subclasses to interpret the config attribute
 java.util.Map getConfigMap()
          Get the map of configuration file URIs
 java.util.Map getLocalMap()
          Get the map of child RDC datamodels
 void setConfig(java.lang.String newConfig)
          Set the configuration URI
 void setConfigMap(java.util.Map configMap)
          Set the map of configuration file URI of child RDCs
 void setContext(javax.servlet.jsp.JspContext ctx)
          Set the context in which this component is executing
 void setLocalMap(java.util.Map localMap)
          Set the map of child RDC datamodels
 
Methods inherited from class org.apache.taglibs.rdc.core.BaseModel
baseCanonicalize, baseValidate, calculateCanonicalizedValue, canonicalize, 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, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localMap

protected java.util.Map localMap

configMap

protected java.util.Map configMap

config

protected java.lang.String config

context

protected javax.servlet.jsp.JspContext context
Constructor Detail

ComponentModel

public ComponentModel()
Method Detail

getLocalMap

public java.util.Map getLocalMap()
Get the map of child RDC datamodels

Returns:
the map of child RDC datamodels

setLocalMap

public void setLocalMap(java.util.Map localMap)
Set the map of child RDC datamodels

Parameters:
localMap - The map of child RDC datamodels

getConfigMap

public java.util.Map getConfigMap()
Get the map of configuration file URIs

Returns:
the map of configuration file URI of child RDCs

setConfigMap

public void setConfigMap(java.util.Map configMap)
Set the map of configuration file URI of child RDCs

Parameters:
configMap - The map of configuration file URI of child RDCs

setContext

public void setContext(javax.servlet.jsp.JspContext ctx)
Set the context in which this component is executing

Parameters:
ctx - The JspContext

setConfig

public void setConfig(java.lang.String newConfig)
Set the configuration URI

Parameters:
newConfig - The new configuration file URI

configHandler

protected void configHandler()
Hook for subclasses to interpret the config attribute



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