com.atlassian.jira.jql.operand.registry
Interface JqlFunctionHandlerRegistry

All Known Implementing Classes:
PluginsAwareJqlFunctionHandlerRegistry

public interface JqlFunctionHandlerRegistry

Registry for JqlFunctions. Can resolve a OperandHandler of type FunctionOperand for a provided FunctionOperand. The handler returned wraps a registered JqlFunction.

Since:
v4.0

Method Summary
 List<String> getAllFunctionNames()
          Fetches all function names ordered alphabetically.
 FunctionOperandHandler getOperandHandler(FunctionOperand operand)
          Fetches the associated OperandHandler for the provided FunctionOperand.
 

Method Detail

getOperandHandler

FunctionOperandHandler getOperandHandler(FunctionOperand operand)
Fetches the associated OperandHandler for the provided FunctionOperand. The returned handler is looked up by the name of the FunctionOperand (case insensitive).

Parameters:
operand - that defines the name for which we want to find the operand handler.
Returns:
the operand handler associated with this operand, null if there is none.

getAllFunctionNames

List<String> getAllFunctionNames()
Fetches all function names ordered alphabetically.

Returns:
all function names ordered alphabetically, an empty collection if there are none.


Copyright © 2002-2013 Atlassian. All Rights Reserved.