hudson.model
Class ItemVisitor

java.lang.Object
  extended by hudson.model.ItemVisitor

public abstract class ItemVisitor
extends Object

Walks the tree structure that consists of ItemGroup and Item.

Since:
1.402
Author:
Kohsuke Kawaguchi

Constructor Summary
ItemVisitor()
           
 
Method Summary
 void onItem(Item i)
          Visits an Item.
 void onItemGroup(ItemGroup<?> group)
          Visits an ItemGroup by visits the member items.
 void walk()
          Visits the entire tree rooted at Hudson.getInstance().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemVisitor

public ItemVisitor()
Method Detail

onItemGroup

public void onItemGroup(ItemGroup<?> group)
Visits an ItemGroup by visits the member items.


onItem

public void onItem(Item i)
Visits an Item. If it is a group, visits the children.


walk

public final void walk()
Visits the entire tree rooted at Hudson.getInstance().

To walk a subtree, call onItemGroup(ItemGroup) or onItem(Item)



Copyright © 2004-2013. All Rights Reserved.