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

java.lang.Object
  extended by org.apache.jackrabbit.core.query.lucene.constraint.DynamicOperand
Direct Known Subclasses:
FullTextSearchScoreOperand, LengthOperand, LowerCaseOperand, NodeLocalNameOperand, NodeNameOperand, PropertyValueOperand, UpperCaseOperand

public abstract class DynamicOperand
extends Object

DynamicOperand is a base class for dynamic operands.


Field Summary
protected static Value[] EMPTY
          An empty Value array.
 
Constructor Summary
DynamicOperand()
           
 
Method Summary
abstract  Value[] getValues(ScoreNode sn, EvaluationContext context)
          Returns the values for the given score node sn of this dynamic operand.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

protected static final Value[] EMPTY
An empty Value array.

Constructor Detail

DynamicOperand

public DynamicOperand()
Method Detail

getValues

public abstract Value[] getValues(ScoreNode sn,
                                  EvaluationContext context)
                           throws RepositoryException
Returns the values for the given score node sn of this dynamic operand. If there are no values for the given score node, then an empty array is returned.

Parameters:
sn - the current score node.
context - the evaluation context.
Returns:
the values for the given score node.
Throws:
RepositoryException - if an error occurs while retrieving the value.


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