|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Application
An Application is a set of documents sharing the same
application root document.
Whenever the user interacts with a document in an application, its application root document is also loaded. The application root document remains loaded while the user is transitioning between other documents in the same application, and it is unloaded when the user transitions to a document that is not in the application. While it is loaded, the application root document's variables are available to the other documents as application variables, and its grammars remain active for the duration of the application.
| Method Summary | |
|---|---|
void |
addDocument(URI uri,
VoiceXmlDocument doc)
Adds the given document to the application. |
URI |
getApplication()
Retrieves the URI of the application. |
VoiceXmlDocument |
getCurrentDocument()
Retrieves the current document. |
URI |
getXmlBase()
Retrieves the base URI. |
boolean |
isLoaded(URI uri)
Checks, if the document with the given uri is loaded. |
URI |
resolve(URI uri)
Converts the given URI into a hierarchical URI. |
URI |
resolve(URI baseUri,
URI uri)
Converts the given URI into a hierarchical URI. |
void |
setRootDocument(VoiceXmlDocument document)
Sets the new root document. |
| Method Detail |
|---|
void addDocument(URI uri,
VoiceXmlDocument doc)
throws BadFetchError
uri - the URI of the document.doc - the document to add.
BadFetchError - error in the document.VoiceXmlDocument getCurrentDocument()
URI getApplication()
void setRootDocument(VoiceXmlDocument document)
throws BadFetchError
document - the new root document.
BadFetchError - error in the document.boolean isLoaded(URI uri)
uri is loaded.
uri - the URI to check.
true if the document is loaded.URI getXmlBase()
URI resolve(URI uri)
URI into a hierarchical URI. If the given
URI is a relative URI, it is expanded using the application
URI.
uri - the URI to resolve.
URI resolve(URI baseUri,
URI uri)
URI into a hierarchical URI. If the given
URI is a relative URI, it is expanded using the
baseUri.
baseUri - the base URI.uri - the URI to resolve.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||