jess
Class Filter.ByModule

java.lang.Object
  extended by jess.Filter.ByModule
All Implemented Interfaces:
Filter
Enclosing interface:
Filter

public static class Filter.ByModule
extends java.lang.Object
implements Filter

A Filter implementation that passes Jess objects defined in a given module.


Nested Class Summary
 
Nested classes/interfaces inherited from interface jess.Filter
Filter.ByClass, Filter.ByModule
 
Constructor Summary
Filter.ByModule(java.lang.String module)
          Constructor.
 
Method Summary
 boolean accept(java.lang.Object o)
          Returns true if the given object implements the jess.Modular interface and is defined in the filter's named module
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filter.ByModule

public Filter.ByModule(java.lang.String module)
Constructor. The given module name will be used to filter objects

Parameters:
module - the module name to filter by
Method Detail

accept

public boolean accept(java.lang.Object o)
Returns true if the given object implements the jess.Modular interface and is defined in the filter's named module

Specified by:
accept in interface Filter
Parameters:
o - the object to test
Returns:
true if the object is a 'Modular' in this filter's module
See Also:
Modular

© 2013 Sandia Corporation