org.apache.taglibs.rdc
Class SelectOne.Options

java.lang.Object
  extended by org.apache.taglibs.rdc.SelectOne.Options
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
SelectOne

public static class SelectOne.Options
extends java.lang.Object
implements java.io.Serializable

Encapsulates a set of options. Each option should include an utterance, and an optional value.

See Also:
Serialized Form

Field Summary
static java.lang.String ACCEPT_APPROX
           
static java.lang.String ACCEPT_EXACT
           
 
Constructor Summary
SelectOne.Options()
          Constructor
 
Method Summary
 void add(java.lang.String option_utterance)
          Add this option to the list.
 void add(java.lang.String option_utterance, boolean option_approximate)
          Add this option to the list.
 void add(java.lang.String option_value, java.lang.String option_utterance)
          Add this option to the list.
 void add(java.lang.String option_value, java.lang.String option_utterance, boolean option_approximate)
          Add this option to the list.
 void add(java.lang.String option_value, java.lang.String option_utterance, java.lang.String option_dtmf)
          Add this option to the list.
 void add(java.lang.String option_value, java.lang.String option_utterance, java.lang.String option_dtmf, boolean option_approximate)
          Add this option to the list.
 java.lang.String getVXMLOptionsMarkup()
          Generate the markup of the vxml <option> elements as a String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCEPT_EXACT

public static final java.lang.String ACCEPT_EXACT
See Also:
Constant Field Values

ACCEPT_APPROX

public static final java.lang.String ACCEPT_APPROX
See Also:
Constant Field Values
Constructor Detail

SelectOne.Options

public SelectOne.Options()
Constructor

Method Detail

add

public void add(java.lang.String option_utterance)
Add this option to the list. Option contains an utterance and an optional value, dtmf and accept.

Parameters:
option_utterance - The utterance for this option

add

public void add(java.lang.String option_utterance,
                boolean option_approximate)
Add this option to the list. Option contains an utterance and an optional value, dtmf and accept.

Parameters:
option_utterance - The utterance for this option
option_approximate - Whether an exact or approximate match is sought

add

public void add(java.lang.String option_value,
                java.lang.String option_utterance)
Add this option to the list. Option contains an utterance and an optional value, dtmf and accept.

Parameters:
option_value - The value for this option
option_utterance - The utterance for this option

add

public void add(java.lang.String option_value,
                java.lang.String option_utterance,
                boolean option_approximate)
Add this option to the list. Option contains an utterance and an optional value, dtmf and accept.

Parameters:
option_value - The value for this option
option_utterance - The utterance for this option
option_approximate - Whether an exact or approximate match is sought

add

public void add(java.lang.String option_value,
                java.lang.String option_utterance,
                java.lang.String option_dtmf)
Add this option to the list. Option contains an utterance and an optional value, dtmf and accept.

Parameters:
option_value - The value for this option
option_utterance - The utterance for this option
option_dtmf - The DTMF value for this option

add

public void add(java.lang.String option_value,
                java.lang.String option_utterance,
                java.lang.String option_dtmf,
                boolean option_approximate)
Add this option to the list. Option contains an utterance and an optional value, dtmf and accept.

Parameters:
option_value - The value for this option
option_utterance - The utterance for this option
option_dtmf - The DTMF value for this option
option_approximate - Whether an exact or approximate match is sought

getVXMLOptionsMarkup

public java.lang.String getVXMLOptionsMarkup()
Generate the markup of the vxml <option> elements as a String

Returns:
String the VXML markup


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