com.microstrategy.web.objects.WebUserAnswers |
The WebUserAnswers
interface holds a collection of
WebPromptAnswer
. It comes from
executing a prompted report or document.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
delete(WebPromptAnswer promptAnswer)
Deletes a prompt answer from the collection and also removes it
from metadata.
| ||||||||||
abstract WebPromptAnswer |
get(int index)
Returns the prompt answer object at the specified position.
| ||||||||||
abstract Iterator |
getAnswers()
Returns an iterator over the collection of prompt answer objects.
| ||||||||||
abstract WebPromptAnswer |
getDefaultAnswer()
Returns the default prompt answer if there is any.
| ||||||||||
abstract WebPromptAnswer |
newPromptAnswer()
Creates a prompt answer object but has not yet been persisted in the metadata.
| ||||||||||
abstract void |
save(WebPromptAnswer promptAnswer)
Saves a prompt answer object to the collection as well as in the metadata.
| ||||||||||
abstract int |
size()
Returns the number of prompt answer objects in the collection.
|
Deletes a prompt answer from the collection and also removes it from metadata.
promptAnswer | the prompt answer object to be removed. |
---|
WebObjectsException | thrown if there is any error occurred. |
---|
Returns the prompt answer object at the specified position.
index | the position of a prompt answer. |
---|
Returns an iterator over the collection of prompt answer objects.
Returns the default prompt answer if there is any.
Creates a prompt answer object but has not yet been persisted in the metadata.
This is just a convenient method from WebObjectSource
.
Saves a prompt answer object to the collection as well as in the metadata.
WebObjectsException |
---|
Returns the number of prompt answer objects in the collection.