Package com.atlassian.jira.jql.operand
Class FunctionOperandHandler
java.lang.Object
com.atlassian.jira.jql.operand.FunctionOperandHandler
- All Implemented Interfaces:
OperandHandler<FunctionOperand>
Adapter to convert the plugin point
JqlFunction into
OperandHandler.- Since:
- v4.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValues(QueryCreationContext queryCreationContext, FunctionOperand operand, TerminalClause terminalClause) Gets the unexpanded values provided by the user on input.booleanisEmpty()booleanbooleanisList()validate(ApplicationUser searcher, FunctionOperand operand, TerminalClause terminalClause) Will perform operand specific validation.
-
Field Details
-
i18nHelper
-
jqlFunction
-
-
Constructor Details
-
FunctionOperandHandler
-
-
Method Details
-
validate
public MessageSet validate(ApplicationUser searcher, FunctionOperand operand, TerminalClause terminalClause) Description copied from interface:OperandHandlerWill perform operand specific validation.- Specified by:
validatein interfaceOperandHandler<FunctionOperand>- Parameters:
searcher- the user performing the searchoperand- the operand to validateterminalClause- the terminal clause that contains the operand- Returns:
- a MessageSet which will contain any validation errors or warnings or will be empty if there is nothing to report, must not be null.
-
getValues
public List<QueryLiteral> getValues(QueryCreationContext queryCreationContext, FunctionOperand operand, TerminalClause terminalClause) Description copied from interface:OperandHandlerGets the unexpanded values provided by the user on input. In the case of a function this is the output values that will later be transformed into index values.- Specified by:
getValuesin interfaceOperandHandler<FunctionOperand>- Parameters:
queryCreationContext- the context of query creationoperand- the operand to get values fromterminalClause- the terminal clause that contains the operand- Returns:
- a List of objects that represent this Operands raw values. This must be the values specified by the user.
-
isList
public boolean isList()- Specified by:
isListin interfaceOperandHandler<FunctionOperand>- Returns:
- true if the operand represents a list of values, false otherwise.
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceOperandHandler<FunctionOperand>- Returns:
- true if the operand represents the absence of a value, false otherwise.
-
isFunction
public boolean isFunction()- Specified by:
isFunctionin interfaceOperandHandler<FunctionOperand>- Returns:
- true if the operand represents a function, false otherwise.
-
getJqlFunction
-