|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TResponseQueryContent
TResponseQueryContent is the interface that defines all operations needed to access the actual content of a response for a previous query operation. Such content only consists of TXMLObject instances. This interface defines operations so that such instance can be added to and cleared from the content. The content behaves as an ordered list and provides access to an iterator that can be used to navigate over the contents TXMLObject instances.
Method Summary | |
---|---|
void |
add(TXMLObject xmlObject)
Adds the specified TXMLObject to the set. |
void |
addAll(java.util.Iterator iterator)
Adds all TXMLObject instances underlying the iterator to the set. |
void |
clear()
Clears the entire set. |
TXMLObject |
get(int index)
Gets the TXMLObject at the specified index. |
java.lang.String |
getText()
Gets text content that might be given for the response query content. |
boolean |
hasText()
Indicates if text content is given for the response query content. |
java.util.Iterator |
iterator()
Returns the iterator for this set. |
void |
reverse()
Reverses the entire set of contained TXMLObjects. |
void |
set(int index,
TXMLObject xmlObject)
Sets the specified TXMLObject at the specified index. |
void |
setText(java.lang.String text)
Sets text content that might be given for the responses query content. |
int |
size()
Returns the size meaning number of TXMLObject instances currently stored within the sequence. |
void |
writeTo(java.io.Writer writer)
Writes the current query content to the given Writer instance. |
Method Detail |
---|
void add(TXMLObject xmlObject)
xmlObject
- that should be added to the set.void addAll(java.util.Iterator iterator)
iterator
- is the iterator for TXMLObject instances.void set(int index, TXMLObject xmlObject) throws java.lang.IndexOutOfBoundsException
index
- should be in valid range.xmlObject
- is the object that should be inserted.
java.lang.IndexOutOfBoundsException
- when index is out of bounds.void setText(java.lang.String text)
text
- referrs to the text content that might be given for xql:result.TXMLObject get(int index) throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsException
java.lang.String getText()
boolean hasText()
void reverse()
java.util.Iterator iterator()
void clear()
int size()
void writeTo(java.io.Writer writer)
writer
- is the output stream to which the sequnce of TXMLObject instances are written to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |