com.tensegrity.palowebviewer.modules.paloclient.client.misc
Class XResultIterator

java.lang.Object
  extended by com.tensegrity.palowebviewer.modules.paloclient.client.misc.XResultIterator
All Implemented Interfaces:
java.util.Iterator

public class XResultIterator
extends java.lang.Object
implements java.util.Iterator

This interface wraps Object[] returned by JPalo API to iterate it handy.


Constructor Summary
XResultIterator(XQueryPath query, XResult result)
           
 
Method Summary
 XQueryPath getQuery()
           
 boolean hasNext()
          checks if some points are left
 java.lang.Object next()
           
 IXPoint nextPoint()
           
 void remove()
          Has no sense.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XResultIterator

public XResultIterator(XQueryPath query,
                       XResult result)
Method Detail

hasNext

public boolean hasNext()
checks if some points are left

Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator
Returns:
IXPoint

nextPoint

public IXPoint nextPoint()
Returns:
IXPoint

remove

public void remove()
Has no sense. Throws UnsupportedOperationException.

Specified by:
remove in interface java.util.Iterator

getQuery

public XQueryPath getQuery()