public class PromptDesigner extends java.lang.Object implements java.lang.Iterable<PromptElement>
Modifier | Constructor and Description |
---|---|
protected |
PromptDesigner(com.uc4.util.XMLDocument doc)
Parses the XMLDocument and extracts all prompt elements.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
PromptElement element)
Inserts the PromptElement at the specified position.
|
void |
add(PromptElement element)
Adds a new PromptElement at the end of this PromptSet.
|
void |
clear()
Removes all PromptElements from this PromptSet.
|
java.lang.String |
getCaption()
Returns the caption of this PromptSet.
|
java.util.Iterator<PromptElement> |
iterator()
Returns an
java.util.Iterator which can used to read PromptElements of this PromptSet. |
void |
setCaption(java.lang.String caption)
Sets the caption of this PromptSet.
|
int |
size()
Returns the number of prompt elements in this PromptSet.
|
protected void |
store(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element objectElement,
ConnectionAttributes sessionInfo,
java.lang.String idnr) |
static java.lang.String |
toString(org.w3c.dom.Document doc)
Returns the given document as a string.
|
protected PromptDesigner(com.uc4.util.XMLDocument doc)
doc
- XML documentpublic int size()
-1
if the request has not been sent.public java.util.Iterator<PromptElement> iterator()
java.util.Iterator
which can used to read PromptElements of this PromptSet.
The remove() method of the Iterator can be used to remove elements.iterator
in interface java.lang.Iterable<PromptElement>
public void clear()
public void add(PromptElement element)
element
- PromptElementpublic void add(int index, PromptElement element)
index
- Indexelement
- PromptElementpublic java.lang.String getCaption()
public void setCaption(java.lang.String caption)
caption
- Captionprotected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes sessionInfo, java.lang.String idnr)
public static java.lang.String toString(org.w3c.dom.Document doc)
doc
- the xml document