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

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.ClientPropertyIterator
All Implemented Interfaces:
Iterator, PropertyIterator, RangeIterator

public class ClientPropertyIterator
extends ClientIterator
implements PropertyIterator

A ClientIterator for iterating remote properties.


Constructor Summary
ClientPropertyIterator(RemoteIterator iterator, Session session, LocalAdapterFactory factory)
          Creates a ClientPropertyIterator instance.
 
Method Summary
protected  Object getObject(Object remote)
          Creates and returns a local adapter for the given remote property.
 Property nextProperty()
          Returns the next property 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

ClientPropertyIterator

public ClientPropertyIterator(RemoteIterator iterator,
                              Session session,
                              LocalAdapterFactory factory)
Creates a ClientPropertyIterator 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 property.

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

nextProperty

public Property nextProperty()
Returns the next property in this iteration.

Specified by:
nextProperty in interface PropertyIterator
Returns:
next property
See Also:
PropertyIterator.nextProperty()


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.