org.apache.taglibs.rdc.core
Class Grammar

java.lang.Object
  extended by org.apache.taglibs.rdc.core.Grammar
All Implemented Interfaces:
java.io.Serializable

public class Grammar
extends java.lang.Object
implements java.io.Serializable

A grammar object containing the inline grammar or URI reference along with the grammar metadata.

Metadata:

Author:
Rahul Akolkar
See Also:
Serialized Form

Constructor Summary
Grammar()
          Constructor, no arguments, metadata set to defaults.
Grammar(java.lang.String grammar, java.lang.Boolean isDTMF, java.lang.Boolean isInline, java.lang.String name)
          Constructor, allows user to set metadata associated with grammar.
 
Method Summary
 java.lang.String getGrammar()
          Return the inline grammar or the URI reference (interpretation depends on Boolean isInline).
 java.lang.Boolean getIsDTMF()
          Returns a Boolean indicating whether the grammar is DTMF (or voice).
 java.lang.Boolean getIsInline()
          Returns a Boolean indicating whether the grammar is inline (or an URI reference).
 java.lang.String getName()
          Return the name associated with this grammar.
 void setGrammar(java.lang.String grammar)
          Set the inline grammar or URI reference (interpretation depends on Boolean isInline).
 void setIsDTMF(java.lang.Boolean isDTMF)
          Set whether this is a DTMF grammar.
 void setIsInline(java.lang.Boolean isInline)
          Set whether this is an inline grammar.
 void setName(java.lang.String name)
          Set the name associated with this grammar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grammar

public Grammar()

Constructor, no arguments, metadata set to defaults.


Grammar

public Grammar(java.lang.String grammar,
               java.lang.Boolean isDTMF,
               java.lang.Boolean isInline,
               java.lang.String name)

Constructor, allows user to set metadata associated with grammar.

Parameters:
grammar - the URI reference
isDTMF - whether this is a DTMF grammar
isInline - whether this is an inline grammar
name - The name for this grammar
Method Detail

getIsDTMF

public java.lang.Boolean getIsDTMF()

Returns a Boolean indicating whether the grammar is DTMF (or voice).

Returns:
isDTMF whether this is a DTMF grammar

setIsDTMF

public void setIsDTMF(java.lang.Boolean isDTMF)

Set whether this is a DTMF grammar.

Parameters:
isDTMF - whether this is a DTMF grammar

getIsInline

public java.lang.Boolean getIsInline()

Returns a Boolean indicating whether the grammar is inline (or an URI reference).

Returns:
isInline whether this is an inline grammar

setIsInline

public void setIsInline(java.lang.Boolean isInline)

Set whether this is an inline grammar.

Parameters:
isInline - whether this is an inline grammar

getGrammar

public java.lang.String getGrammar()

Return the inline grammar or the URI reference (interpretation depends on Boolean isInline).

Returns:
grammar the inline grammar or the URI reference

setGrammar

public void setGrammar(java.lang.String grammar)

Set the inline grammar or URI reference (interpretation depends on Boolean isInline).

Parameters:
grammar - the inline grammar or the URI reference

getName

public java.lang.String getName()

Return the name associated with this grammar. The value may be null.

Returns:
name The name for this grammar

setName

public void setName(java.lang.String name)

Set the name associated with this grammar.

Parameters:
name - The name for this grammar


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