Class SelectorBasedConstraint
- java.lang.Object
-
- 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
Constructors Constructor Description SelectorBasedConstraint(SelectorImpl selector)
Creates a new constraint based on the givenselector
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 givenselector
.- 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.
-
-