public interface

PredicateOperandResolver

com.atlassian.jira.jql.operand.PredicateOperandResolver
Known Indirect Subclasses

Class Overview

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

Summary

Public Methods
List<QueryLiteral> getValues(User searcher, String field, Operand operand)
boolean isEmptyOperand(User searcher, String field, Operand operand)
Returns true if the operand represents an EMPTY operand.
boolean isFunctionOperand(User searcher, String field, Operand operand)
Returns true if the passed operand is a function call.
boolean isListOperand(User searcher, String field, Operand operand)
Returns true if the passed operand returns a list of values.

Public Methods

public List<QueryLiteral> getValues (User searcher, String field, Operand operand)

Parameters
searcher the User performing the lookup
field a String representing the field over which you are searching
operand the Operand containing the values used to search
Returns
  • a List of values obtained from the operand

public boolean isEmptyOperand (User searcher, String field, 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.

public boolean isFunctionOperand (User searcher, String field, 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.

public boolean isListOperand (User searcher, String field, 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.