public class SingleValueOperandHandler extends Object implements OperandHandler<SingleValueOperand>
Constructor and Description |
---|
SingleValueOperandHandler() |
Modifier and Type | Method and Description |
---|---|
List<QueryLiteral> |
getValues(QueryCreationContext queryCreationContext,
SingleValueOperand operand,
TerminalClause terminalClause)
Gets the unexpanded values provided by the user on input.
|
boolean |
isEmpty() |
boolean |
isFunction() |
boolean |
isList() |
MessageSet |
validate(ApplicationUser searcher,
SingleValueOperand operand,
TerminalClause terminalClause)
Will perform operand specific validation.
|
public MessageSet validate(ApplicationUser searcher, SingleValueOperand operand, TerminalClause terminalClause)
OperandHandler
validate
in interface OperandHandler<SingleValueOperand>
searcher
- the user performing the searchoperand
- the operand to validateterminalClause
- the terminal clause that contains the operandpublic List<QueryLiteral> getValues(QueryCreationContext queryCreationContext, SingleValueOperand operand, TerminalClause terminalClause)
OperandHandler
getValues
in interface OperandHandler<SingleValueOperand>
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<SingleValueOperand>
public boolean isEmpty()
isEmpty
in interface OperandHandler<SingleValueOperand>
EmptyOperand
public boolean isFunction()
isFunction
in interface OperandHandler<SingleValueOperand>
FunctionOperand
Copyright © 2002-2024 Atlassian. All Rights Reserved.