edu.northwestern.at.monk.model
Class Searcher

java.lang.Object
  extended by edu.northwestern.at.monk.model.Searcher

public class Searcher
extends java.lang.Object

The grand unified searcher.

See Also:
MONK Datastore Overview, Licensing Agreement

Method Summary
static boolean canUse(java.lang.Class resultClass, java.lang.Class criterionClass)
          Returns true if a result class can use a criterion class.
static boolean canUse(java.lang.String resultName, java.lang.String criterionName)
          Returns true if a result class can use a criterion class.
static java.util.Collection<java.lang.String> getCriterionNames(java.lang.String resultName)
          Gets all the criterion names for a result name.
static java.util.Collection<java.lang.String> getResultNames()
          Gets all the result names.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getResultNames

public static java.util.Collection<java.lang.String> getResultNames()
Gets all the result names.

Returns:
Result names.

getCriterionNames

public static java.util.Collection<java.lang.String> getCriterionNames(java.lang.String resultName)
Gets all the criterion names for a result name.

Parameters:
resultName - Result name.
Returns:
Criterion names.

canUse

public static boolean canUse(java.lang.Class resultClass,
                             java.lang.Class criterionClass)
Returns true if a result class can use a criterion class.

Parameters:
resultClass - Result class.
criterionClass - Criterion class.
Returns:
True if result can use criterion.

canUse

public static boolean canUse(java.lang.String resultName,
                             java.lang.String criterionName)
Returns true if a result class can use a criterion class.

Parameters:
resultName - Result class naem.
criterionName - Criterion class name.
Returns:
True if result can use criterion.