anthill.storage.impl
Class ExactQueryController
java.lang.Object
|
+--anthill.storage.impl.ExactQueryController
- All Implemented Interfaces:
- QueryController
- public class ExactQueryController
- extends Object
- implements QueryController
ExactQueryController
to match only exact queries
against a given resource.
- Version:
- $Revision: 1.3 $
- Author:
- Hein Meling
Method Summary |
boolean |
satisfies(Resource resource,
Object query)
Returns true if the given resource and query are exact matches;
otherwise false is returned. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExactQueryController
public ExactQueryController(Factory factory,
String name)
- Constructor for the query controller
- Parameters:
factory
- the factory to be used to read configuration arguments
and to create other configurable objectsname
- the name that is associated to this instance in the
configuration file
satisfies
public boolean satisfies(Resource resource,
Object query)
- Returns true if the given resource and query are exact matches;
otherwise false is returned.
- 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.