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

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

public class GreaterThanFilter
extends java.lang.Object
implements MatchFilter

An attribute comparison filter that returns true if the value of the attribute is greater than that of the filter

Author:
Stefanos Zachariadis

Constructor Summary
GreaterThanFilter()
           
 
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

GreaterThanFilter

public GreaterThanFilter()
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