org.iscreen
Class DocumentationIterator

java.lang.Object
  extended by org.iscreen.DocumentationIterator
All Implemented Interfaces:
java.util.Iterator

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

For each validation service, a set of documentation may exist (on a per validator basis). Instances of this class represent the set of documentation for the entire service.

Author:
Shellman, Dan

Field Summary
protected  int currentIndex
           
protected  java.util.List itemNames
           
protected  java.util.List items
           
 
Constructor Summary
DocumentationIterator()
          Default constructor.
 
Method Summary
 void addItem(java.lang.String item, java.lang.String name)
           
 void addIterator(DocumentationIterator it)
           
 int getCount()
           
 int getCurrentIndex()
           
 java.lang.String getCurrentName()
           
 java.lang.String getDoc(int index)
           
 java.lang.String getName(int index)
           
 boolean hasNext()
           
 java.lang.Object next()
           
 java.lang.String nextItem()
           
 void remove()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

items

protected java.util.List items

itemNames

protected java.util.List itemNames

currentIndex

protected int currentIndex
Constructor Detail

DocumentationIterator

public DocumentationIterator()
Default constructor.

Method Detail

hasNext

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

next

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

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

getCurrentName

public java.lang.String getCurrentName()

nextItem

public java.lang.String nextItem()

reset

public void reset()

getCount

public int getCount()

getDoc

public java.lang.String getDoc(int index)

getName

public java.lang.String getName(int index)

addItem

public void addItem(java.lang.String item,
                    java.lang.String name)

getCurrentIndex

public int getCurrentIndex()

addIterator

public void addIterator(DocumentationIterator it)