Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1)

E10663-03


oracle.rules.rl.extensions
Class ClassFilter

java.lang.Object
  extended by oracle.rules.rl.extensions.ClassFilter

All Implemented Interfaces:
ObjectFilter

public class ClassFilter
extends java.lang.Object
implements ObjectFilter

A filter that passes objects that are instances of a particular class.


Constructor Summary
ClassFilter(java.lang.String className, RuleSession rs)
          Creates a new class filter.

 

Method Summary
 boolean accept(java.lang.Object object)
          Indicates that the specified object passes the filter if it is an instance of the class this filter was instantiated with.
 void reset()
          Reset has no affect on this filter.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ClassFilter

public ClassFilter(java.lang.String className,
                   RuleSession rs)
            throws UndefinedException
Creates a new class filter.
Parameters:
className - the name of the class that the filter should pass instances of. The class may be an RL class or a Java class. Consistent with RL semantics, it looks for an RL class with the specified name first and then looks for a Java class .
rs - the RuleSession this filter will be used with. It is used to handle RL classes.
Throws:
UndefinedException

Method Detail

accept

public boolean accept(java.lang.Object object)
Indicates that the specified object passes the filter if it is an instance of the class this filter was instantiated with.
Specified by:
accept in interface ObjectFilter
Parameters:
object - the object to apply the filter to.
Returns:
the result of the filter.

reset

public void reset()
Reset has no affect on this filter.
Specified by:
reset in interface ObjectFilter

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1)

E10663-03


Copyright © 2010, Oracle and/or its affiliates. All rights reserved.