org.sakaiproject.component.osid.repository.registry
Class AssetIterator

java.lang.Object
  extended byorg.sakaiproject.component.osid.repository.registry.AssetIterator
All Implemented Interfaces:
org.osid.repository.AssetIterator, Serializable

public class AssetIterator
extends Object
implements org.osid.repository.AssetIterator

AssetIterator implements an interface with that name in the Repository OSID.

Version:
$Id: PresenceTool.java 632 2005-07-14 21:22:50Z janderse@umich.edu $
Author:
Massachusetts Institute of Technology
See Also:
Serialized Form

Constructor Summary
protected AssetIterator(Vector vector)
          Store away what we will return piecemeal.
 
Method Summary
 boolean hasNextAsset()
          Return whether there is another Asset or not.
 org.osid.repository.Asset nextAsset()
          Return the next Asset or throw an exception if there are no more Assets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetIterator

protected AssetIterator(Vector vector)
                 throws org.osid.repository.RepositoryException
Store away what we will return piecemeal.

Method Detail

hasNextAsset

public boolean hasNextAsset()
                     throws org.osid.repository.RepositoryException
Return whether there is another Asset or not.

Specified by:
hasNextAsset in interface org.osid.repository.AssetIterator
Throws:
org.osid.repository.RepositoryException

nextAsset

public org.osid.repository.Asset nextAsset()
                                    throws org.osid.repository.RepositoryException
Return the next Asset or throw an exception if there are no more Assets. The exception's message is: org.osid.shared.SharedException.NO_MORE_ITERATOR_ELEMENTS

Specified by:
nextAsset in interface org.osid.repository.AssetIterator
Throws:
org.osid.repository.RepositoryException