anthill.storage.impl
Class ANDQueryController

java.lang.Object
  |
  +--anthill.storage.impl.ANDQueryController
All Implemented Interfaces:
QueryController

public class ANDQueryController
extends java.lang.Object
implements QueryController

This class is used to verify if an object is

Version:
$Revision$
Author:
Alberto Montresor, Hein Meling

Constructor Summary
ANDQueryController(Factory factory)
          Constructor for the query controller
 
Method Summary
 boolean satisfies(Resource resource, java.lang.Object query)
          Returns the result of matching the specified query with the given resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ANDQueryController

public ANDQueryController(Factory factory)
Constructor for the query controller
Parameters:
factory - factory object used to instantiate objects and obtaining configuration values
Method Detail

satisfies

public boolean satisfies(Resource resource,
                         java.lang.Object query)
Returns the result of matching the specified query with the given resource.
Specified by:
satisfies in interface QueryController
Parameters:
resource - to match the query against.
query - query object match the specified resource against.
Returns:
true if the specified resource match the specified query.