org.ops4j.pax.construct.util
Class PomIterator

java.lang.Object
  extended by org.ops4j.pax.construct.util.PomIterator
All Implemented Interfaces:
java.util.Iterator

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

Iterate over all POMs in a Maven project tree using depth-first and backtracking search (non-recursive)


Constructor Summary
PomIterator(java.io.File here)
           
PomIterator(java.io.File here, boolean localSearch)
           
 
Method Summary
 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
 

Constructor Detail

PomIterator

public PomIterator(java.io.File here)
Parameters:
here - a directory somewhere in the project tree

PomIterator

public PomIterator(java.io.File here,
                   boolean localSearch)
Parameters:
here - a directory somewhere in the project tree
localSearch - when true, only search downwards
Method Detail

next

public java.lang.Object next()

Specified by:
next in interface java.util.Iterator

hasNext

public boolean hasNext()

Specified by:
hasNext in interface java.util.Iterator

remove

public void remove()

Specified by:
remove in interface java.util.Iterator


Copyright © 2007-2008 OPS4J. All Rights Reserved.