org.apache.jetspeed.om.registry.base
Class PortletIterator

java.lang.Object
  extended byorg.apache.jetspeed.om.registry.base.PortletIterator
All Implemented Interfaces:
java.util.Iterator

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

PortletIterator - seamless iterator over nested vectors of portlet collections

Version:
$Id: PortletIterator.java,v 1.4 2005/04/27 14:08:24 raphael Exp $
Author:
David Sean Taylor

Field Summary
protected  BasePortletEntry entry
           
protected  int index
           
protected  java.lang.String method
           
protected  java.util.Vector vector
           
 
Constructor Summary
PortletIterator(BasePortletEntry entry, java.lang.String method)
           
 
Method Summary
protected  BasePortletEntry getParentEntry(BasePortletEntry entry)
           
protected  java.util.Vector getVector()
           
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entry

protected BasePortletEntry entry

method

protected java.lang.String method

vector

protected java.util.Vector vector

index

protected int index
Constructor Detail

PortletIterator

public PortletIterator(BasePortletEntry entry,
                       java.lang.String method)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

remove

public void remove()
            throws java.lang.IllegalStateException,
                   java.lang.UnsupportedOperationException
Specified by:
remove in interface java.util.Iterator
Throws:
java.lang.IllegalStateException
java.lang.UnsupportedOperationException

getParentEntry

protected BasePortletEntry getParentEntry(BasePortletEntry entry)

next

public java.lang.Object next()
                      throws java.util.NoSuchElementException
Specified by:
next in interface java.util.Iterator
Throws:
java.util.NoSuchElementException

getVector

protected java.util.Vector getVector()


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.