org.jvoicexml
Interface GrammarDocument

All Known Implementing Classes:
JVoiceXmlGrammarDocument

public interface GrammarDocument

Grammar document that is retrieved from the DocumentServer.

VoiceXML is designed to support at least

Documents are kept as a string.

Since:
0.5.5
Version:
$Revision: 213 $

Copyright © 2007 JVoiceXML group - http://jvoicexml.sourceforge.net/

Author:
Dirk Schnelle

Method Summary
 String getDocument()
          Retrieves the document as a string.
 GrammarType getMediaType()
          Returns the declared media type of the grammar.
 void setMediaType(GrammarType type)
          Sets the media type of this document.
 

Method Detail

setMediaType

void setMediaType(GrammarType type)
Sets the media type of this document.

Parameters:
type - the new media type.

getMediaType

GrammarType getMediaType()
Returns the declared media type of the grammar.

Returns:
The media type of the grammar file.

getDocument

String getDocument()
Retrieves the document as a string.

Returns:
the document object.


Copyright © 2005-2007 JVoiceXML group.