PreCache NetInjector Documentation Center : PreCache NetInjector API Reference

Java Classes

   







CompoundFilter

— an abstract class for aggregating filters


CompoundFilter is used to aggregate filters into a single object. CompoundFilter serves as a base class for AndFilter and OrFilter objects.

Hierarchy

java.lang.Object

--> com.precache.event. Filter

      --> com.precache.event.CompoundFilter

subclasses —
AndFilter, OrFilter

Constructors

CompoundFilter()

public CompoundFilter()

Methods

CompoundFilter inherits clone and match from class com.precache.event. Filter .

CompoundFilter inherits clone, equals, finalize, getClass, hashCode, notify, notifyAll, and wait from class java.lang.Object.

add

public void add( Filter f)

Adds another subfilter to this object.

f —
a Filter object for the added subfilter

throws —
add throws an InvalidFilterException if the subfilter has already been added.

remove

public void remove( Filter f)

Removes a subfilter from this object.

f —
a Filter object for a subfilter to be removed

reset

public void reset()

Removes all existing subfilters for this object.

getFilters

public vector getFilters()

returns —
getFilters returns a vector object storing the constituent Filter objects in the order in which they were added.

toString

public string toString()

Converts the filtered object to a string representation.

overrides —
toString in class Object