Package com.atlassian.jira.jql.operand
Class DefaultPredicateOperandResolver
java.lang.Object
com.atlassian.jira.jql.operand.DefaultPredicateOperandResolver
- All Implemented Interfaces:
PredicateOperandResolver
Default implementation of the
PredicateOperandResolver- Since:
- v4.3
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultPredicateOperandResolver(PredicateOperandHandlerRegistry handlerRegistry) -
Method Summary
Modifier and TypeMethodDescriptiongetValues(ApplicationUser searcher, String field, Operand operand) booleanisEmptyOperand(ApplicationUser searcher, String field, Operand operand) Returns true if the operand represents an EMPTY operand.booleanisFunctionOperand(ApplicationUser searcher, String field, Operand operand) Returns true if the passed operand is a function call.booleanisListOperand(ApplicationUser searcher, String field, Operand operand) Returns true if the passed operand returns a list of values.
-
Constructor Details
-
DefaultPredicateOperandResolver
-
-
Method Details
-
getValues
- Specified by:
getValuesin interfacePredicateOperandResolver- Parameters:
searcher- theApplicationUserperforming the lookupfield- a String representing the field over which you are searchingoperand- the Operand containing the values used to search- Returns:
- a List of values obtained from the operand
-
isEmptyOperand
Description copied from interface:PredicateOperandResolverReturns true if the operand represents an EMPTY operand.- Specified by:
isEmptyOperandin interfacePredicateOperandResolveroperand- the operand to check if it is a EMPTY operand- Returns:
- true if the operand is an EMPTY operand, false otherwise.
-
isFunctionOperand
Description copied from interface:PredicateOperandResolverReturns true if the passed operand is a function call.- Specified by:
isFunctionOperandin interfacePredicateOperandResolveroperand- the operand to check. Cannot be null.- Returns:
- true of the passed operand is a function operand, false otherwise.
-
isListOperand
Description copied from interface:PredicateOperandResolverReturns true if the passed operand returns a list of values.- Specified by:
isListOperandin interfacePredicateOperandResolveroperand- the operand to check. Cannot be null.- Returns:
- true if the passed operand returns a list of values or false otherwise.
-