org.speakright.core.render
Class PromptSet

java.lang.Object
  extended by org.speakright.core.render.FormElement
      extended by org.speakright.core.render.PromptSet
All Implemented Interfaces:
java.io.Serializable

public class PromptSet
extends FormElement
implements java.io.Serializable

A set of prompts to be used for a question. Can contain one of each prompt type.

Author:
Ian Rae
See Also:
Serialized Form

Constructor Summary
PromptSet()
           
 
Method Summary
 void add(Prompt prompt)
           
 void addIf(boolean b, Prompt prompt)
           
 Prompt find(PromptType type, int subIndex)
           
 java.util.ArrayList findAll(PromptType.Family family)
           
 java.util.ArrayList<Prompt> prompts()
           
 void renderPrompts(PromptPipeline pipeline)
          Render any prompts in this element using the pipeline.
 
Methods inherited from class org.speakright.core.render.FormElement
renderGrammars
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PromptSet

public PromptSet()
Method Detail

add

public void add(Prompt prompt)

addIf

public void addIf(boolean b,
                  Prompt prompt)

find

public Prompt find(PromptType type,
                   int subIndex)

findAll

public java.util.ArrayList findAll(PromptType.Family family)

renderPrompts

public void renderPrompts(PromptPipeline pipeline)
Description copied from class: FormElement
Render any prompts in this element using the pipeline.

Overrides:
renderPrompts in class FormElement

prompts

public java.util.ArrayList<Prompt> prompts()