edu.UCL.satin.impl.arch.attribute
Class AnyFilter

java.lang.Object
  extended byedu.UCL.satin.impl.arch.attribute.AnyFilter
All Implemented Interfaces:
MatchFilter

public class AnyFilter
extends java.lang.Object
implements MatchFilter

An attribute comparison filter that always returns true

Author:
Stefanos Zachariadis

Constructor Summary
AnyFilter()
           
 
Method Summary
 boolean compare(MatchAttribute filter, GenericAttribute attr)
          Compares the value of attr with that of filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnyFilter

public AnyFilter()
Method Detail

compare

public boolean compare(MatchAttribute filter,
                       GenericAttribute attr)
Description copied from interface: MatchFilter
Compares the value of attr with that of filter. The implementor may assume that this method will only be called if both attributes have the same key.

Specified by:
compare in interface MatchFilter
Parameters:
filter - The filter attribute to which this MatchFilter is attached
attr - The attribute with which we are comparing.
Returns:
Must return true, if the values of the attributes satisfy the implementors semantics. False otherwise