public final class JVoiceXmlApplication extends java.lang.Object implements Application
Application.Application| Constructor and Description |
|---|
JVoiceXmlApplication()
Constructs a new object.
|
JVoiceXmlApplication(ScopeObserver scopeObserver)
Creates a new object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDocument(java.net.URI uri,
org.jvoicexml.xml.vxml.VoiceXmlDocument doc)
Adds the given document to the application.
|
java.net.URI |
getApplication()
Retrieves the URI of the application.
|
org.jvoicexml.xml.vxml.VoiceXmlDocument |
getCurrentDocument()
Retrieves the current document.
|
java.util.List<LastResult> |
getLastResult()
Retrieves information about the last recognition to occur within this
application.
|
java.net.URI |
getXmlBase()
Retrieves the base URI.
|
boolean |
isLoaded(java.net.URI uri)
Checks, if the document with the given
uri is loaded. |
java.net.URI |
resolve(java.net.URI uri)
Converts the given
URI into a hierarchical URI. |
java.net.URI |
resolve(java.net.URI base,
java.net.URI uri)
Converts the given
URI into a hierarchical URI. |
void |
setLastResult(java.util.List<LastResult> result)
Sets the last result.
|
void |
setRootDocument(org.jvoicexml.xml.vxml.VoiceXmlDocument document)
Sets the new root document.
|
java.lang.String |
toString() |
public JVoiceXmlApplication()
public JVoiceXmlApplication(ScopeObserver scopeObserver)
scopeObserver - the scope observer.public void addDocument(java.net.URI uri,
org.jvoicexml.xml.vxml.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(org.jvoicexml.xml.vxml.VoiceXmlDocument document)
throws BadFetchError
setRootDocument in interface Applicationdocument - the new root document.BadFetchError - error in the document.public java.net.URI getApplication()
getApplication in interface Applicationpublic java.net.URI getXmlBase()
getXmlBase in interface Applicationpublic org.jvoicexml.xml.vxml.VoiceXmlDocument getCurrentDocument()
getCurrentDocument in interface Applicationpublic java.net.URI resolve(java.net.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 java.net.URI resolve(java.net.URI base,
java.net.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(java.net.URI uri)
uri is loaded.isLoaded in interface Applicationuri - the URI to check.true if the document is loaded.public java.lang.String toString()
toString in class java.lang.Objectpublic void setLastResult(java.util.List<LastResult> result)
setLastResult in interface Applicationresult - the last result to set.public java.util.List<LastResult> getLastResult()
getLastResult in interface Applicationnull.