com.ibm.commerce.pa.beans
Class SalesAssistantDataBean

java.lang.Object
  |
  +--com.ibm.commerce.pa.beans.DynamicDataBeanImpl
        |
        +--com.ibm.commerce.pa.widget.beans.TreeDataBean
              |
              +--com.ibm.commerce.pa.beans.SalesAssistantDataBean
All Implemented Interfaces:
CommandDataBean, DataBean, DynamicDataBean, InputDataBean, java.io.Serializable

public class SalesAssistantDataBean
extends TreeDataBean

Contains data representing a tree of questions and answers. Constraints are set depending on the answers retrieved. Must be used in conjunction with a Widget Bean (e.g. DynamicForm or DynamicTable) to render the data in a browser (HTML).

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
           
protected  java.lang.String defaultLink
           
 
Fields inherited from class com.ibm.commerce.pa.widget.beans.TreeDataBean
level, root
 
Fields inherited from class com.ibm.commerce.pa.beans.DynamicDataBeanImpl
constraintList, defaultWidget, errorCode, errorMessage, interfaceName, metaData, pageName, parent, parentName, requestProperties, scriptName
 
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
 
Constructor Summary
SalesAssistantDataBean()
          SalesAssistantDataBean constructor.
 
Method Summary
 DsData[] getAnswers()
          This method will return the Answer from a Question and Answer tree.
 java.lang.String getCommandInterfaceName()
          Returns the name of the command interface.
 java.lang.String getDefaultLink()
          Returns the default url link which is used when there is no place else for an Answer to go.
 java.lang.String getQuestion()
          Returns the Question from a Question and Answer tree.
 void setDefaultLink(java.lang.String newValue)
          Set the default url link which is used when there is no place else for an Answer to go.
 
Methods inherited from class com.ibm.commerce.pa.widget.beans.TreeDataBean
copy, getChild, getChildCount, getIndexOfChild, getLevel, getRoot, isLeaf, setLevel, setRoot
 
Methods inherited from class com.ibm.commerce.pa.beans.DynamicDataBeanImpl
addConstraint, getConstraintList, getDefaultWidget, getErrorCode, getErrorMessage, getMetaData, getPageName, getParent, getParentName, getRequestProperties, getScriptName, setCommandInterfaceName, setConstraintList, setDefaultWidget, setErrorCode, setErrorMessage, setMetaData, setPageName, setParent, setParentName, setRequestProperties, setScriptName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

defaultLink

protected java.lang.String defaultLink
Constructor Detail

SalesAssistantDataBean

public SalesAssistantDataBean()
SalesAssistantDataBean constructor.
Method Detail

getAnswers

public DsData[] getAnswers()
This method will return the Answer from a Question and Answer tree.
Returns:
com.ibm.commerce.pa.datatype.DsData[] an array of DsData objects

getCommandInterfaceName

public java.lang.String getCommandInterfaceName()
Returns the name of the command interface.
Overrides:
getCommandInterfaceName in class DynamicDataBeanImpl
Returns:
java.lang.String

getDefaultLink

public java.lang.String getDefaultLink()
Returns the default url link which is used when there is no place else for an Answer to go.
Returns:
java.lang.String

getQuestion

public java.lang.String getQuestion()
Returns the Question from a Question and Answer tree.
Returns:
java.lang.String

setDefaultLink

public void setDefaultLink(java.lang.String newValue)
Set the default url link which is used when there is no place else for an Answer to go.
Parameters:
newValue - java.lang.String