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

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

public class NodeLocalNameOperand
extends DynamicOperand

NodeLocalNameOperand implements a node local name operand.


Field Summary
 
Fields inherited from class org.apache.jackrabbit.core.query.lucene.constraint.DynamicOperand
EMPTY
 
Constructor Summary
NodeLocalNameOperand()
           
 
Method Summary
 Value[] getValues(ScoreNode sn, EvaluationContext context)
          Returns the local name of the node denoted by the given score node sn.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeLocalNameOperand

public NodeLocalNameOperand()
Method Detail

getValues

public Value[] getValues(ScoreNode sn,
                         EvaluationContext context)
                  throws RepositoryException
Returns the local name of the node denoted by the given score node sn.

Specified by:
getValues in class DynamicOperand
Parameters:
sn - the score node.
context - the evaluation context.
Returns:
the local node name.
Throws:
RepositoryException - if an error occurs while reading the local name.


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