public abstract class AbstractIssueTypeFunction extends AbstractJqlFunction
Modifier and Type | Field and Description |
---|---|
protected SubTaskManager |
subTaskManager |
Modifier | Constructor and Description |
---|---|
protected |
AbstractIssueTypeFunction(SubTaskManager subTaskManager) |
Modifier and Type | Method and Description |
---|---|
JiraDataType |
getDataType()
Provides the
JiraDataType that this function handles and creates values for. |
int |
getMinimumNumberOfExpectedArguments()
This method must return the number of arguments that the function expects to perform its operation correctly.
|
MessageSet |
validate(ApplicationUser searcher,
FunctionOperand operand,
TerminalClause terminalClause)
Will validate the function operand's arguments and report back any errors.
|
getFunctionName, getI18n, getModuleDescriptor, init, isList, validateNumberOfArgs
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValues
protected final SubTaskManager subTaskManager
protected AbstractIssueTypeFunction(SubTaskManager subTaskManager)
public MessageSet validate(ApplicationUser searcher, FunctionOperand operand, TerminalClause terminalClause)
JqlFunction
searcher
- the user performing the searchoperand
- the operand to validateterminalClause
- the terminal clause that contains the operandpublic int getMinimumNumberOfExpectedArguments()
JqlFunction
public JiraDataType getDataType()
JqlFunction
JiraDataType
that this function handles and creates values for. This
allows us to infer some information about how it will interact with other elements in the system.
For example, if this returns JiraDataTypes.DATE
then we know that we can provide
values for any clauses that also specify a data type of DATE.
JiraDataTypes
Copyright © 2002-2017 Atlassian. All Rights Reserved.