com.atlassian.jira.issue.search.parameters.lucene
Class SingleFieldMultiValueLuceneParameter

java.lang.Object
  extended bycom.atlassian.jira.issue.search.parameters.AbstractSearchParameter
      extended bycom.atlassian.jira.issue.search.parameters.LuceneParameter
          extended bycom.atlassian.jira.issue.search.parameters.lucene.SingleFieldMultiValueLuceneParameter
All Implemented Interfaces:
SearchParameter
Direct Known Subclasses:
LongListParameter, StringListParameter

public abstract class SingleFieldMultiValueLuceneParameter
extends LuceneParameter


Field Summary
protected  boolean andQuery
           
 
Fields inherited from class com.atlassian.jira.issue.search.parameters.AbstractSearchParameter
log
 
Constructor Summary
SingleFieldMultiValueLuceneParameter()
           
 
Method Summary
protected  org.apache.lucene.search.Query constructQueryFromValues(java.util.Collection values)
           
 boolean equals(java.lang.Object o)
           
 org.apache.lucene.search.Query getQuery(org.ofbiz.core.entity.GenericValue project, com.opensymphony.user.User searcher)
           
 electric.xml.Element getXml()
          This function returns a XML representation of this document, it is MAY NOT a complete parameter you need to call super from any sub classes
 int hashCode()
           
 boolean isAndQuery()
           
 boolean isValid()
           
 void setAndQuery(boolean andQuery)
           
 void setXml(electric.xml.Element el)
          This function set a XML representation of this document, it MAY NOT create them completly you need to call super from any sub classes
 
Methods inherited from class com.atlassian.jira.issue.search.parameters.AbstractSearchParameter
addValue, clearValues, getName, getQueryString, getQueryStringPrefix, getValues, setName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

andQuery

protected boolean andQuery
Constructor Detail

SingleFieldMultiValueLuceneParameter

public SingleFieldMultiValueLuceneParameter()
Method Detail

getQuery

public org.apache.lucene.search.Query getQuery(org.ofbiz.core.entity.GenericValue project,
                                               com.opensymphony.user.User searcher)
                                        throws org.apache.lucene.queryParser.ParseException
Specified by:
getQuery in class LuceneParameter
Returns:
a collection of Query objects.
Throws:
org.apache.lucene.queryParser.ParseException

constructQueryFromValues

protected org.apache.lucene.search.Query constructQueryFromValues(java.util.Collection values)

isAndQuery

public boolean isAndQuery()

setAndQuery

public void setAndQuery(boolean andQuery)

getXml

public electric.xml.Element getXml()
This function returns a XML representation of this document, it is MAY NOT a complete parameter you need to call super from any sub classes

Specified by:
getXml in interface SearchParameter
Specified by:
getXml in class AbstractSearchParameter
Returns:
Partial XML Element

setXml

public void setXml(electric.xml.Element el)
This function set a XML representation of this document, it MAY NOT create them completly you need to call super from any sub classes

Specified by:
setXml in interface SearchParameter
Overrides:
setXml in class AbstractSearchParameter

isValid

public boolean isValid()
Specified by:
isValid in interface SearchParameter
Specified by:
isValid in class AbstractSearchParameter

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class AbstractSearchParameter

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractSearchParameter


Copyright © 2002-2005 Atlassian. All Rights Reserved.