com.atlassian.jira.jql.operand
Class DefaultPredicateOperandResolver

java.lang.Object
  extended by com.atlassian.jira.jql.operand.DefaultPredicateOperandResolver
All Implemented Interfaces:
PredicateOperandResolver

public class DefaultPredicateOperandResolver
extends Object
implements PredicateOperandResolver

Default implementation of the PredicateOperandResolver

Since:
v4.3

Constructor Summary
DefaultPredicateOperandResolver(PredicateOperandHandlerRegistry handlerRegistry)
           
 
Method Summary
 List<QueryLiteral> getValues(com.atlassian.crowd.embedded.api.User searcher, String field, Operand operand)
           
 boolean isEmptyOperand(com.atlassian.crowd.embedded.api.User searcher, String field, Operand operand)
          Returns true if the operand represents an EMPTY operand.
 boolean isFunctionOperand(com.atlassian.crowd.embedded.api.User searcher, String field, Operand operand)
          Returns true if the passed operand is a function call.
 boolean isListOperand(com.atlassian.crowd.embedded.api.User searcher, String field, Operand operand)
          Returns true if the passed operand returns a list of values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPredicateOperandResolver

public DefaultPredicateOperandResolver(PredicateOperandHandlerRegistry handlerRegistry)
Method Detail

getValues

public List<QueryLiteral> getValues(com.atlassian.crowd.embedded.api.User searcher,
                                    String field,
                                    Operand operand)
Specified by:
getValues in interface PredicateOperandResolver
Parameters:
searcher - the User performing the lookup
field - a String representing the field over which you are searching
operand - the Operand containing the values used to search
Returns:
a List of values obtained from the operand

isEmptyOperand

public boolean isEmptyOperand(com.atlassian.crowd.embedded.api.User searcher,
                              String field,
                              Operand operand)
Description copied from interface: PredicateOperandResolver
Returns true if the operand represents an EMPTY operand.

Specified by:
isEmptyOperand in interface PredicateOperandResolver
operand - the operand to check if it is a EMPTY operand
Returns:
true if the operand is an EMPTY operand, false otherwise.

isFunctionOperand

public boolean isFunctionOperand(com.atlassian.crowd.embedded.api.User searcher,
                                 String field,
                                 Operand operand)
Description copied from interface: PredicateOperandResolver
Returns true if the passed operand is a function call.

Specified by:
isFunctionOperand in interface PredicateOperandResolver
operand - the operand to check. Cannot be null.
Returns:
true of the passed operand is a function operand, false otherwise.

isListOperand

public boolean isListOperand(com.atlassian.crowd.embedded.api.User searcher,
                             String field,
                             Operand operand)
Description copied from interface: PredicateOperandResolver
Returns true if the passed operand returns a list of values.

Specified by:
isListOperand in interface PredicateOperandResolver
operand - the operand to check. Cannot be null.
Returns:
true if the passed operand returns a list of values or false otherwise.


Copyright © 2002-2013 Atlassian. All Rights Reserved.