com.atlassian.jira.issue.search.searchers.transformer
Class DefaultFieldFlagOperandRegistry

java.lang.Object
  extended by com.atlassian.jira.issue.search.searchers.transformer.DefaultFieldFlagOperandRegistry
All Implemented Interfaces:
FieldFlagOperandRegistry

public class DefaultFieldFlagOperandRegistry
extends Object
implements FieldFlagOperandRegistry

The default field flag operand registry that maps field name and navigator flag value pairs to their appropiate operand.

Since:
v4.0

Constructor Summary
DefaultFieldFlagOperandRegistry()
           
 
Method Summary
 Set<String> getFlagForOperand(String fieldName, Operand operand)
          Retrieves the navigator flag values associated with the field name and operand pair.
 Operand getOperandForFlag(String fieldName, String flagValue)
          Retrieves the operand associated with a field and navigator flag value pair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFieldFlagOperandRegistry

public DefaultFieldFlagOperandRegistry()
Method Detail

getOperandForFlag

public Operand getOperandForFlag(String fieldName,
                                 String flagValue)
Description copied from interface: FieldFlagOperandRegistry
Retrieves the operand associated with a field and navigator flag value pair. For example the issuetype field has the -2 navigator flag value which maps to the FunctionOperand corresponding to the AllStandardIssueTypesFunction

Specified by:
getOperandForFlag in interface FieldFlagOperandRegistry
Parameters:
fieldName - The name of the field
flagValue - The navigator flag value
Returns:
the operand associated with the field and navigator flag value; null if there is none

getFlagForOperand

public Set<String> getFlagForOperand(String fieldName,
                                     Operand operand)
Description copied from interface: FieldFlagOperandRegistry
Retrieves the navigator flag values associated with the field name and operand pair.

Specified by:
getFlagForOperand in interface FieldFlagOperandRegistry
Parameters:
fieldName - The name of the field
operand - the Operand
Returns:
The navigator flag value associated with the field name and operand pair; null if there is none


Copyright © 2002-2009 Atlassian. All Rights Reserved.