org.apache.jackrabbit.rmi.client.iterator
Class ClientVersionIterator

java.lang.Object
  extended by org.apache.jackrabbit.rmi.client.ClientObject
      extended by org.apache.jackrabbit.rmi.client.iterator.ClientIterator
          extended by org.apache.jackrabbit.rmi.client.iterator.ClientVersionIterator
All Implemented Interfaces:
Iterator, RangeIterator, VersionIterator

public class ClientVersionIterator
extends ClientIterator
implements VersionIterator

A ClientIterator for iterating remote versions.


Constructor Summary
ClientVersionIterator(RemoteIterator iterator, Session session, LocalAdapterFactory factory)
          Creates a ClientVersionIterator instance.
 
Method Summary
protected  Object getObject(Object remote)
          Creates and returns a local adapter for the given remote version.
 Version nextVersion()
          Returns the next version in this iteration.
 
Methods inherited from class org.apache.jackrabbit.rmi.client.iterator.ClientIterator
getPosition, getSize, hasNext, next, remove, skip
 
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jcr.RangeIterator
getPosition, getSize, skip
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Constructor Detail

ClientVersionIterator

public ClientVersionIterator(RemoteIterator iterator,
                             Session session,
                             LocalAdapterFactory factory)
Creates a ClientVersionIterator instance.

Parameters:
iterator - remote iterator
session - current session
factory - local adapter factory
Method Detail

getObject

protected Object getObject(Object remote)
Creates and returns a local adapter for the given remote version.

Specified by:
getObject in class ClientIterator
Parameters:
remote - remote referecne
Returns:
local adapter
See Also:
ClientIterator.getObject(Object)

nextVersion

public Version nextVersion()
Returns the next version in this iteration.

Specified by:
nextVersion in interface VersionIterator
Returns:
next version
See Also:
VersionIterator.nextVersion()


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.