com.atlassian.jira.jql.operand
Interface PredicateOperandResolver

All Known Implementing Classes:
DefaultPredicateOperandResolver

public interface PredicateOperandResolver

Responsible for validating Operands and extracting the String values from them.

Since:
v4.3

Method Summary
 List<QueryLiteral> getValues(com.atlassian.crowd.embedded.api.User searcher, com.atlassian.query.operand.Operand operand)
           
 boolean isEmptyOperand(com.atlassian.crowd.embedded.api.User searcher, com.atlassian.query.operand.Operand operand)
          Returns true if the operand represents an EMPTY operand.
 boolean isFunctionOperand(com.atlassian.crowd.embedded.api.User searcher, com.atlassian.query.operand.Operand operand)
          Returns true if the passed operand is a function call.
 boolean isListOperand(com.atlassian.crowd.embedded.api.User searcher, com.atlassian.query.operand.Operand operand)
          Returns true if the passed operand returns a list of values.
 

Method Detail

getValues

List<QueryLiteral> getValues(com.atlassian.crowd.embedded.api.User searcher,
                             com.atlassian.query.operand.Operand operand)

isEmptyOperand

boolean isEmptyOperand(com.atlassian.crowd.embedded.api.User searcher,
                       com.atlassian.query.operand.Operand operand)
Returns true if the operand represents an EMPTY operand.

Parameters:
operand - the operand to check if it is a EMPTY operand
Returns:
true if the operand is an EMPTY operand, false otherwise.

isFunctionOperand

boolean isFunctionOperand(com.atlassian.crowd.embedded.api.User searcher,
                          com.atlassian.query.operand.Operand operand)
Returns true if the passed operand is a function call.

Parameters:
operand - the operand to check. Cannot be null.
Returns:
true of the passed operand is a function operand, false otherwise.

isListOperand

boolean isListOperand(com.atlassian.crowd.embedded.api.User searcher,
                      com.atlassian.query.operand.Operand operand)
Returns true if the passed operand returns a list of values.

Parameters:
operand - the operand to check. Cannot be null.
Returns:
true if the passed operand returns a list of values or false otherwise.


Copyright © 2002-2011 Atlassian. All Rights Reserved.