org.apache.jackrabbit.core.query.lucene.constraint
Class SelectorBasedConstraint

java.lang.Object
  extended by org.apache.jackrabbit.core.query.lucene.constraint.SelectorBasedConstraint
All Implemented Interfaces:
Constraint
Direct Known Subclasses:
ComparisonConstraint, HierarchyConstraint, QueryConstraint

public abstract class SelectorBasedConstraint
extends Object
implements Constraint

SelectorBasedConstraint implements a constraint that is based on a named selector.


Constructor Summary
SelectorBasedConstraint(SelectorImpl selector)
          Creates a new constraint based on the given selector.
 
Method Summary
protected  SelectorImpl getSelector()
           
protected  int getSelectorIndex(Name[] names)
          Returns the selector index of this constraint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jackrabbit.core.query.lucene.constraint.Constraint
evaluate
 

Constructor Detail

SelectorBasedConstraint

public SelectorBasedConstraint(SelectorImpl selector)
Creates a new constraint based on the given selector.

Parameters:
selector - the selector this constraint is based on.
Method Detail

getSelectorIndex

protected int getSelectorIndex(Name[] names)
Returns the selector index of this constraint.

Parameters:
names - the selector names.
Returns:
the selector index.

getSelector

protected SelectorImpl getSelector()
Returns:
the selector of this constraint.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.