org.ow2.clif.storage.lib.util
Class NameBladeFilter

java.lang.Object
  extended by org.ow2.clif.storage.lib.util.NameBladeFilter
All Implemented Interfaces:
java.io.Serializable, BladeFilter

public class NameBladeFilter
extends java.lang.Object
implements BladeFilter

Author:
Jordan Brunier
See Also:
Serialized Form

Constructor Summary
NameBladeFilter(java.lang.String name)
          Creates a new blade event filter selecting events whose date is between the given bounds (inclusive).
 
Method Summary
 boolean accept(BladeDescriptor desc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameBladeFilter

public NameBladeFilter(java.lang.String name)
Creates a new blade event filter selecting events whose date is between the given bounds (inclusive). If the lower bound is negative, then all events prior to the upper bound are accepted. If the upper bound is negative, then all events after the lower bound are accepted. If both the upper bound and the lower bound are negative, then all events are accepted. If the lower bound is greater than the upper bound, then no event is accepted.

Parameters:
name - the name of the blade
Method Detail

accept

public boolean accept(BladeDescriptor desc)
Specified by:
accept in interface BladeFilter