org.speakright.core.flows
Class RawContentFlow

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

public class RawContentFlow
extends FlowBase

A call control flow object that outputs raw VoiceXML. This flow object is an escape hatch which apps can use to output things not supported by SpeakRight. The content supplied by the app is an entire VoiceXML page, starting with the tags. By default this flow outputs the tag. But this can be disabled using setOutputXMLTag to false and then including it in the content.

Author:
IanRaeLaptop
See Also:
Serialized Form

Constructor Summary
RawContentFlow()
           
RawContentFlow(java.lang.String content)
           
 
Method Summary
 java.lang.String Content()
          get the raw VoiceXML content
 IFlowRenderer createRenderer()
          Create the type-specific renderer
 boolean OutputXMLTag()
          get the flag that controls output of the tag
 void setContent(java.lang.String content)
          set the raw VoiceXML content
 void setOutputXMLTag(boolean b)
          set the flag that controls output of the tag.
 
Methods inherited from class org.speakright.core.FlowBase
execute, executionCount, fixupGrammar, fixupPrompt, getFirst, getNext, getSubFlowAfter, log, logError, name, onBegin, onCatch, onComplete, onDisconnect, onEnd, onNoInput, onPlatformError, onTransferFailed, onValidateFailed, promptGroup, setExecutionCount, setName, setPromptGroup, shouldExecute, validateInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RawContentFlow

public RawContentFlow()

RawContentFlow

public RawContentFlow(java.lang.String content)
Method Detail

Content

public java.lang.String Content()
get the raw VoiceXML content

Returns:
content

setContent

public void setContent(java.lang.String content)
set the raw VoiceXML content

Parameters:
content -

OutputXMLTag

public boolean OutputXMLTag()
get the flag that controls output of the tag

Returns:
flag

setOutputXMLTag

public void setOutputXMLTag(boolean b)
set the flag that controls output of the tag. The only use for setting it to false is if you don't want to use version 1.0 and UTF-8.


createRenderer

public IFlowRenderer createRenderer()
Create the type-specific renderer

Specified by:
createRenderer in interface IFlow
Overrides:
createRenderer in class FlowBase