org.mule.routing.filters
Class EqualsFilter

java.lang.Object
  extended byorg.mule.routing.filters.EqualsFilter
All Implemented Interfaces:
ObjectFilter, UMOFilter

public class EqualsFilter
extends Object
implements UMOFilter, ObjectFilter

EqualsFilter is a filter for comparing two objects using the equals() method.


Constructor Summary
EqualsFilter()
           
EqualsFilter(Object compareTo)
           
 
Method Summary
 boolean accept(Object object)
           
 boolean accept(UMOMessage message)
          Check a given message against this filter.
 Object getPattern()
           
 void setPattern(Object pattern)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EqualsFilter

public EqualsFilter()

EqualsFilter

public EqualsFilter(Object compareTo)
Method Detail

accept

public boolean accept(UMOMessage message)
Description copied from interface: UMOFilter
Check a given message against this filter.

Specified by:
accept in interface UMOFilter
Parameters:
message - a non null message to filter.
Returns:
true if the message matches the filter

accept

public boolean accept(Object object)
Specified by:
accept in interface ObjectFilter

getPattern

public Object getPattern()

setPattern

public void setPattern(Object pattern)


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.