ninja.activeproxy.path
Class OpIterator

java.lang.Object
  |
  +--ninja.activeproxy.path.OpIterator

public class OpIterator
extends java.lang.Object
implements java.util.Enumeration

OpIterator iterates through a set of operators


Field Summary
private  int cur
           
private  int len
           
(package private)  java.util.Vector results
           
 
Constructor Summary
OpIterator(java.util.Vector results)
          Creates a new OpIterator from the specified vector of operators
 
Method Summary
 boolean hasMoreElements()
           
 java.lang.Object nextElement()
          Get the next operator.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

len

private int len

cur

private int cur

results

java.util.Vector results
Constructor Detail

OpIterator

public OpIterator(java.util.Vector results)
Creates a new OpIterator from the specified vector of operators
Parameters:
results - Vector of operators Elements of the vector may be: SearchResult: result of an SDS query, which is converted into an OpInfo structure OpInfo: An OpInfo structure, which is used directly
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration
Returns:
true if more elements available, false otherwise. nextElement is guaranteed to return an element if hasMoreElements returns true.

nextElement

public java.lang.Object nextElement()
Get the next operator.
Specified by:
nextElement in interface java.util.Enumeration
Returns:
Object, which is actually ninja.madden.OpInfo containing information about the location and XML of the operator