|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.taglibs.rdc.core.Grammar
public class Grammar
A grammar object containing the inline grammar or URI reference along with the grammar metadata.
Metadata:
isInline
: Indicates whether this grammar is
inline (or a URI reference). Default is Boolean.FALSE (URI reference)isDTMF
: Indicates whether this is a DTMF
(or voice) grammar. Default is Boolean.FALSE (voice grammar). This is
ignored for inline grammars.name
: An optional name for this grammar.
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 |
---|
public Grammar()
Constructor, no arguments, metadata set to defaults.
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.
grammar
- the URI referenceisDTMF
- whether this is a DTMF grammarisInline
- whether this is an inline grammarname
- The name for this grammarMethod Detail |
---|
public java.lang.Boolean getIsDTMF()
Returns a Boolean indicating whether the grammar is DTMF (or voice).
public void setIsDTMF(java.lang.Boolean isDTMF)
Set whether this is a DTMF grammar.
isDTMF
- whether this is a DTMF grammarpublic java.lang.Boolean getIsInline()
Returns a Boolean indicating whether the grammar is inline (or an URI reference).
public void setIsInline(java.lang.Boolean isInline)
Set whether this is an inline grammar.
isInline
- whether this is an inline grammarpublic java.lang.String getGrammar()
Return the inline grammar or the URI reference (interpretation depends on Boolean isInline).
public void setGrammar(java.lang.String grammar)
Set the inline grammar or URI reference (interpretation depends on Boolean isInline).
grammar
- the inline grammar or the URI referencepublic java.lang.String getName()
Return the name associated with this grammar. The value may be null.
public void setName(java.lang.String name)
Set the name associated with this grammar.
name
- The name for this grammar
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |