Methods Summary |
---|
protected boolean | addInto(java.lang.Object key, java.lang.Object element, java.lang.Object container)INTERNAL:
Add element into the container.
try {
((IndirectList)container).addElement(element);
return true;
} catch (ClassCastException ex) {
throw QueryException.cannotAddElement(element, container, ex);
}
|
public void | addIntoWithOrder(java.util.Vector indexes, java.util.Hashtable elements, java.lang.Object container)INTERNAL:
Add element into a container which implements the Collection interface.
Object object = null;
try {
Enumeration indexEnum = indexes.elements();
while (indexEnum.hasMoreElements()) {
Integer index = (Integer)indexEnum.nextElement();
object = elements.get(index);
if (index.intValue() >= (sizeFor(container) - 1)) {
((IndirectList)container).addElement(object);
} else {
((IndirectList)container).setElementAt(object, index.intValue());
}
}
} catch (ClassCastException ex1) {
throw QueryException.cannotAddElement(object, container, ex1);
}
|
public void | clear(java.lang.Object container)INTERNAL:
Remove all the elements from container.
((IndirectList)container).clear();
|
protected boolean | contains(java.lang.Object element, java.lang.Object container)INTERNAL:
Return the true if element exists in container.
return ((IndirectList)container).contains(element);
|
public java.lang.Class | getInterfaceType()
return ClassConstants.IndirectList_Class;
|
public boolean | hasNext(java.lang.Object iterator)INTERNAL:
Return whether the iterator has more objects,
return ((Enumeration)iterator).hasMoreElements();
|
public boolean | hasOrder()INTERNAL:
Returns true if the collection has order
return true;
|
public java.lang.Object | iteratorFor(java.lang.Object container)INTERNAL:
Return an Iterator for the given container.
return ((IndirectList)container).elements();
|
protected java.lang.Object | next(java.lang.Object iterator)INTERNAL:
Return the next object on the queue.
Valid for some subclasses only.
return ((Enumeration)iterator).nextElement();
|
protected boolean | removeFrom(java.lang.Object key, java.lang.Object element, java.lang.Object container)INTERNAL:
Remove element from container which implements the Collection interface.
return ((IndirectList)container).removeElement(element);
|
public void | removeFromWithOrder(int beginIndex, java.lang.Object container)INTERNAL:
Remove elements from this container starting with this index
int size = sizeFor(container) - 1;
try {
for (; size >= beginIndex; --size) {
((IndirectList)container).removeElementAt(size);
}
} catch (ClassCastException ex1) {
throw QueryException.cannotRemoveFromContainer(new Integer(size), container, this);
}
|
public int | sizeFor(java.lang.Object container)INTERNAL:
Return the size of container.
return ((IndirectList)container).size();
|