Package hudson.model

Class ItemVisitor

java.lang.Object
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 Details

    • ItemVisitor

      public ItemVisitor()
  • Method Details

    • 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)