public class TResponseQueryContentImpl extends java.lang.Object implements TResponseQueryContent
Constructor and Description |
---|
TResponseQueryContentImpl()
Default Constructor.
|
TResponseQueryContentImpl(java.util.Enumeration enumeration)
Constructor that takes an TXMLObject enumeration for initialization.
|
TResponseQueryContentImpl(java.util.Iterator iterator)
Constructor that takes an TXMLObject iterator for initialization.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public TResponseQueryContentImpl()
public TResponseQueryContentImpl(java.util.Enumeration enumeration)
public TResponseQueryContentImpl(java.util.Iterator iterator)
public void add(TXMLObject xmlObject)
add
in interface TResponseQueryContent
xmlObject
- that should be added to the set.public void addAll(java.util.Iterator iterator)
addAll
in interface TResponseQueryContent
iterator
- is the iterator for TXMLObject instances.public void set(int index, TXMLObject xmlObject) throws java.lang.IndexOutOfBoundsException
set
in interface TResponseQueryContent
index
- should be in valid range.xmlObject
- is the object that should be inserted.java.lang.IndexOutOfBoundsException
- when index is out of bounds.public void setText(java.lang.String text)
setText
in interface TResponseQueryContent
text
- referrs to the text content that might be given for xql:result.public boolean hasText()
hasText
in interface TResponseQueryContent
public void reverse()
reverse
in interface TResponseQueryContent
public java.util.Iterator iterator()
iterator
in interface TResponseQueryContent
public TXMLObject get(int index) throws java.lang.IndexOutOfBoundsException
get
in interface TResponseQueryContent
java.lang.IndexOutOfBoundsException
public java.lang.String getText()
getText
in interface TResponseQueryContent
public void clear()
clear
in interface TResponseQueryContent
public int size()
size
in interface TResponseQueryContent
public void writeTo(java.io.Writer writer)
writeTo
in interface TResponseQueryContent
writer
- is the output stream to which the sequnce of TXMLObject instances are written to.Copyright (c) 2017 Software AG. All Rights Reserved.