org.speakright.core.tests
Class ValFlow

java.lang.Object
  extended by org.speakright.core.FlowBase
      extended by org.speakright.core.flows.BasicFlow
          extended by org.speakright.core.tests.ValFlow
All Implemented Interfaces:
java.io.Serializable, IFlow

public class ValFlow
extends BasicFlow

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.speakright.core.flows.BasicFlow
m_L
 
Constructor Summary
ValFlow(java.lang.String name)
           
 
Method Summary
 boolean validateInput(java.lang.String input, SRResults results)
          The default implementation is to return true.
 
Methods inherited from class org.speakright.core.flows.BasicFlow
add, addPromptFlow, findSubFlow, getFirst, getNext, getSubFlowAfter, SubFlowCount
 
Methods inherited from class org.speakright.core.FlowBase
createRenderer, execute, executionCount, fixupGrammar, fixupPrompt, log, logError, name, onBegin, onCatch, onComplete, onDisconnect, onEnd, onNoInput, onPlatformError, onTransferFailed, onValidateFailed, promptGroup, setExecutionCount, setName, setPromptGroup, shouldExecute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValFlow

public ValFlow(java.lang.String name)
Method Detail

validateInput

public boolean validateInput(java.lang.String input,
                             SRResults results)
Description copied from class: FlowBase
The default implementation is to return true.

Specified by:
validateInput in interface IFlow
Overrides:
validateInput in class FlowBase
Parameters:
input - String value of the user input. For simple, single-value inputs, input is sufficient. For more complicated user inputs, use the SML in results.
results - Results containing the user input, including the SML, confidence vales, and NBest information.
Returns:
boolean indicating if the input is valid or not.