com.atlassian.user.search.query
Class AbstractSingleTermQuery

java.lang.Object
  extended by com.atlassian.user.search.query.AbstractSingleTermQuery
All Implemented Interfaces:
Query, TermQuery
Direct Known Subclasses:
EmailTermQuery, ExternalEntityNameTermQuery, FullNameTermQuery, GroupNameTermQuery, UserNameTermQuery

public class AbstractSingleTermQuery
extends Object
implements TermQuery


Field Summary
protected  String matchingRule
           
protected  boolean matchingSubstring
           
protected  String term
           
 
Fields inherited from interface com.atlassian.user.search.query.TermQuery
SUBSTRING_CONTAINS, SUBSTRING_ENDS_WITH, SUBSTRING_STARTS_WITH, WILDCARD
 
Constructor Summary
AbstractSingleTermQuery(String term)
           
AbstractSingleTermQuery(String term, String matchingRule)
           
 
Method Summary
 String getMatchingRule()
           
 String getTerm()
           
 boolean isMatchingSubstring()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

matchingRule

protected String matchingRule

matchingSubstring

protected boolean matchingSubstring

term

protected String term
Constructor Detail

AbstractSingleTermQuery

public AbstractSingleTermQuery(String term)

AbstractSingleTermQuery

public AbstractSingleTermQuery(String term,
                               String matchingRule)
Method Detail

getTerm

public String getTerm()
Specified by:
getTerm in interface TermQuery
Returns:
a String holding the system indepdent value of the term to match for equality.

For example, in a ColourQuery this term might be 'red' but, when rendered, would be represented as "select colour from colour_table where colour == 'red'"


getMatchingRule

public String getMatchingRule()
Specified by:
getMatchingRule in interface TermQuery

isMatchingSubstring

public boolean isMatchingSubstring()
Specified by:
isMatchingSubstring in interface TermQuery


Copyright © 2005-2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.