public class FunctionOperandHandler extends Object implements OperandHandler<FunctionOperand>
JqlFunction
into
OperandHandler
.Modifier and Type | Field and Description |
---|---|
protected I18nHelper |
i18nHelper |
protected JqlFunction |
jqlFunction |
Constructor and Description |
---|
FunctionOperandHandler(JqlFunction jqlFunction,
I18nHelper i18nHelper) |
Modifier and Type | Method and Description |
---|---|
JqlFunction |
getJqlFunction() |
List<QueryLiteral> |
getValues(QueryCreationContext queryCreationContext,
FunctionOperand operand,
TerminalClause terminalClause)
Gets the unexpanded values provided by the user on input.
|
boolean |
isEmpty() |
boolean |
isFunction() |
boolean |
isList() |
MessageSet |
validate(ApplicationUser searcher,
FunctionOperand operand,
TerminalClause terminalClause)
Will perform operand specific validation.
|
protected final I18nHelper i18nHelper
protected final JqlFunction jqlFunction
public FunctionOperandHandler(JqlFunction jqlFunction, I18nHelper i18nHelper)
public MessageSet validate(ApplicationUser searcher, FunctionOperand operand, TerminalClause terminalClause)
OperandHandler
validate
in interface OperandHandler<FunctionOperand>
searcher
- the user performing the searchoperand
- the operand to validateterminalClause
- the terminal clause that contains the operandpublic List<QueryLiteral> getValues(QueryCreationContext queryCreationContext, FunctionOperand operand, TerminalClause terminalClause)
OperandHandler
getValues
in interface OperandHandler<FunctionOperand>
queryCreationContext
- the context of query creationoperand
- the operand to get values fromterminalClause
- the terminal clause that contains the operandpublic boolean isList()
isList
in interface OperandHandler<FunctionOperand>
public boolean isEmpty()
isEmpty
in interface OperandHandler<FunctionOperand>
EmptyOperand
public boolean isFunction()
isFunction
in interface OperandHandler<FunctionOperand>
FunctionOperand
public JqlFunction getJqlFunction()
Copyright © 2002-2024 Atlassian. All Rights Reserved.