org.apache.jackrabbit.core.query.lucene.constraint
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.
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 |
SelectorBasedConstraint
public SelectorBasedConstraint(SelectorImpl selector)
- Creates a new constraint based on the given
selector
.
- Parameters:
selector
- the selector this constraint is based on.
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-2009 The Apache Software Foundation. All Rights Reserved.