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

java.lang.Object
  extended by org.apache.jackrabbit.core.query.lucene.constraint.DynamicOperand
      extended by org.apache.jackrabbit.core.query.lucene.constraint.UpperCaseOperand

public class UpperCaseOperand
extends DynamicOperand

UpperCaseOperand implements an upper case operand.


Field Summary
 
Fields inherited from class org.apache.jackrabbit.core.query.lucene.constraint.DynamicOperand
EMPTY
 
Constructor Summary
UpperCaseOperand(DynamicOperand operand)
          Creates a new upper case operand.
 
Method Summary
 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
 

Constructor Detail

UpperCaseOperand

public UpperCaseOperand(DynamicOperand operand)
Creates a new upper case operand.

Parameters:
operand - the operand to upper case the value.
Method Detail

getValues

public 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.

Specified by:
getValues in class DynamicOperand
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.