org.apache.jackrabbit.commons.flat
Interface TreeTraverser.InclusionPolicy<T extends Item>

Enclosing class:
TreeTraverser

public static interface TreeTraverser.InclusionPolicy<T extends Item>

Inclusion policy to determine which items to include when traversing. There a two predefined inclusion policies:


Field Summary
static TreeTraverser.InclusionPolicy<Item> ALL
          This inclusions policy includes all items.
static TreeTraverser.InclusionPolicy<Node> LEAVES
          This inclusion policy includes leave nodes only.
 
Method Summary
 boolean include(T item)
          Call back method to determine whether to include a given item.
 

Field Detail

ALL

static final TreeTraverser.InclusionPolicy<Item> ALL
This inclusions policy includes all items.


LEAVES

static final TreeTraverser.InclusionPolicy<Node> LEAVES
This inclusion policy includes leave nodes only. A leaf node is a node which does not have child nodes.

Method Detail

include

boolean include(T item)
Call back method to determine whether to include a given item.

Parameters:
item - The item under consideration
Returns:
true when item should be included. false otherwise.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.