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)
OperandHandlervalidate 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)
OperandHandlergetValues 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>EmptyOperandpublic boolean isFunction()
isFunction in interface OperandHandler<SingleValueOperand>FunctionOperandCopyright © 2002-2019 Atlassian. All Rights Reserved.