|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.interpreter.JVoiceXmlApplication
public final class JVoiceXmlApplication
Implementation of the Application.
Application| Constructor Summary | |
|---|---|
JVoiceXmlApplication(ScopeObserver scopeObserver)
Creates a new object. |
|
| 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 base,
URI uri)
Converts the given URI into a hierarchical URI. |
void |
setRootDocument(VoiceXmlDocument document)
Sets the new root document. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JVoiceXmlApplication(ScopeObserver scopeObserver)
scopeObserver - the scope observer.| Method Detail |
|---|
public void addDocument(URI uri,
VoiceXmlDocument doc)
throws BadFetchError
addDocument in interface Applicationuri - the URI of the document.doc - the document to add.
BadFetchError - error in the document.
public void setRootDocument(VoiceXmlDocument document)
throws BadFetchError
setRootDocument in interface Applicationdocument - the new root document.
BadFetchError - error in the document.public URI getApplication()
getApplication in interface Applicationpublic URI getXmlBase()
getXmlBase in interface Applicationpublic VoiceXmlDocument getCurrentDocument()
getCurrentDocument in interface Applicationpublic URI resolve(URI uri)
URI into a hierarchical URI. If the given
URI is a relative URI, it is expanded using the application
URI.
resolve in interface Applicationuri - the URI to resolve.
public URI resolve(URI base,
URI uri)
URI into a hierarchical URI. If the given
URI is a relative URI, it is expanded using the
baseUri.
resolve in interface Applicationbase - the base URI.uri - the URI to resolve.
public boolean isLoaded(URI uri)
uri is loaded.
isLoaded in interface Applicationuri - the URI to check.
true if the document is loaded.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||