com.haley.haleyrules.jsr94
Class DefaultObjectFilter

java.lang.Object
  |
  +--com.haley.haleyrules.jsr94.DefaultObjectFilter
All Implemented Interfaces:
javax.rules.ObjectFilter, java.io.Serializable

public class DefaultObjectFilter
extends java.lang.Object
implements javax.rules.ObjectFilter

This class implements the ObjectFilter interface. This is the default object filter for the RuleExecutionSet. The ObjectFilter interface is used to filter objects. The caller passes an implementation of this interface to a method and receives callbacks that allow the caller to filter the output objects as desired. Filters can either build up state within themselves or can merely block or pass objects based on a filtering algorithm.

See Also:
Serialized Form

Constructor Summary
DefaultObjectFilter()
           
 
Method Summary
 java.lang.Object filter(java.lang.Object object)
          The main filtering method on the interface.
 void reset()
          Stateful filters should implement this interface to allow them to be reset to an intial state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultObjectFilter

public DefaultObjectFilter()
Method Detail

filter

public java.lang.Object filter(java.lang.Object object)
The main filtering method on the interface.
Specified by:
filter in interface javax.rules.ObjectFilter
Parameters:
object - the object to be filtered.
Returns:
the result of the filtering or null.

reset

public void reset()
Stateful filters should implement this interface to allow them to be reset to an intial state. Note: The reset method on the ObjectFilter is not called when a StatefulRuleSession resets.
Specified by:
reset in interface javax.rules.ObjectFilter


Copyright © 2005-2006 Haley Systems, Inc. All Rights Reserved.