com.waveset.adapter
Class GCOSResourceAdapter.AcctIter

java.lang.Object
  extended bycom.waveset.adapter.GCOSResourceAdapter.AcctIter
All Implemented Interfaces:
AccountIterator
Enclosing class:
GCOSResourceAdapter

protected class GCOSResourceAdapter.AcctIter
extends java.lang.Object
implements AccountIterator

AccountIterator implementation that can be built by construction from the output of mast smc


Field Summary
 
Fields inherited from interface com.waveset.adapter.AccountIterator
code_id
 
Constructor Summary
GCOSResourceAdapter.AcctIter(CaptureList captureList)
          Convenience constructor that builds an account iterator from a string of space delimited user names.
 
Method Summary
 void close()
          Closes the iterator.
 boolean hasNext()
          Returns true if there are more users to go.
 WSUser next()
          Returns the next user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GCOSResourceAdapter.AcctIter

public GCOSResourceAdapter.AcctIter(CaptureList captureList)
Convenience constructor that builds an account iterator from a string of space delimited user names.

Method Detail

hasNext

public boolean hasNext()
                throws WavesetException
Returns true if there are more users to go.

Specified by:
hasNext in interface AccountIterator
Throws:
WavesetException

next

public WSUser next()
            throws WavesetException
Returns the next user. Skips blank/invalid lines until a valid user or the end of the list.

Specified by:
next in interface AccountIterator
Returns:
the next account

Throws:
WavesetException

close

public void close()
Closes the iterator.

Specified by:
close in interface AccountIterator