|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.commons.query.qom.OperandEvaluator
public class OperandEvaluator
Evaluator of QOM operands. This class evaluates operands
in the context of a value factory, a set of bind
variables and possibly a query result row.
| Constructor Summary | |
|---|---|
OperandEvaluator(ValueFactory factory,
Map<String,Value> variables)
Creates an operand evaluator for the given value factory and set of bind variables. |
|
OperandEvaluator(ValueFactory factory,
Map<String,Value> variables,
Locale locale)
Creates an operand evaluator for the given value factory and set of bind variables. |
|
| Method Summary | |
|---|---|
Value |
getValue(Operand operand,
Row row)
Returns the value of the given operand in the context of the given row. |
Value |
getValue(StaticOperand operand)
Returns the value of the given static operand ( literal or bind variable). |
Value |
getValue(StaticOperand operand,
int type)
Returns the value of the given static operand ( literal or bind variable)
casted to the given type. |
Value[] |
getValues(Operand operand,
Node node)
Evaluates the given operand in the context of the given node. |
Value[] |
getValues(Operand operand,
Row row)
Evaluates the given operand in the context of the given row. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperandEvaluator(ValueFactory factory,
Map<String,Value> variables,
Locale locale)
factory - value factoryvariables - bind variableslocale - locale to use in upper- and lower-case conversions
public OperandEvaluator(ValueFactory factory,
Map<String,Value> variables)
Locale.ENGLISH.
factory - value factoryvariables - bind variables| Method Detail |
|---|
public Value getValue(StaticOperand operand,
int type)
throws RepositoryException
literal or bind variable)
casted to the given type.
operand - static operand to be evaluatedtype - expected value type
RepositoryException - if a named bind variable is not found,
if the operand type is unknown, or
if the type conversion fails
public Value getValue(StaticOperand operand)
throws RepositoryException
literal or bind variable).
operand - static operand to be evaluated
RepositoryException - if a named bind variable is not found,
or if the operand type is unknown
public Value getValue(Operand operand,
Row row)
throws RepositoryException
getValues(Operand, Row) method for more accurate results.
operand - operand to be evaluatedrow - query result row
RepositoryException - if the operand can't be evaluated
public Value[] getValues(Operand operand,
Row row)
throws RepositoryException
operand - operand to be evaluatedrow - query result row
RepositoryException - if the operand can't be evaluated
public Value[] getValues(Operand operand,
Node node)
throws RepositoryException
operand - operand to be evaluatednode - node
RepositoryException - if the operand can't be evaluated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||