org.apache.commons.discovery
Interface ResourceNameIterator

All Known Implementing Classes:
ResourceIterator

public interface ResourceNameIterator

Iterate over resource names. The semantics are somewhat unusual, for better or worse. hasNext is presumed to be destructive to the current state, each call will 'move' the cursor. nextResourceName() MUST BE non-destructive, it does not change the state. TODO: FIX iterator logic/semantics, possibly add 'currentResourceName()'.

Author:
Richard A. Sitze

Method Summary
 boolean hasNext()
          hasNext()
 java.lang.String nextResourceName()
          nextResourceName() returns the name of the next resource, and MUST be non-destructive.
 

Method Detail

hasNext

public boolean hasNext()
hasNext()


nextResourceName

public java.lang.String nextResourceName()
nextResourceName() returns the name of the next resource, and MUST be non-destructive. Repeated calls



Copyright (c) 2002 - Apache Software Foundation