com.atlassian.user.search.query
Class AbstractSingleTermQuery

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

public class AbstractSingleTermQuery
extends java.lang.Object
implements TermQuery


Field Summary
protected  java.lang.String matchingRule
           
protected  boolean matchingSubstring
           
protected  java.lang.String term
           
 
Fields inherited from interface com.atlassian.user.search.query.TermQuery
SUBSTRING_CONTAINS, SUBSTRING_ENDS_WITH, SUBSTRING_STARTS_WITH, WILDCARD
 
Constructor Summary
AbstractSingleTermQuery(java.lang.String term)
           
AbstractSingleTermQuery(java.lang.String term, java.lang.String matchingRule)
           
 
Method Summary
 java.lang.String getMatchingRule()
           
 java.lang.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 java.lang.String matchingRule

matchingSubstring

protected boolean matchingSubstring

term

protected java.lang.String term
Constructor Detail

AbstractSingleTermQuery

public AbstractSingleTermQuery(java.lang.String term)

AbstractSingleTermQuery

public AbstractSingleTermQuery(java.lang.String term,
                               java.lang.String matchingRule)
Method Detail

getTerm

public java.lang.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 java.lang.String getMatchingRule()
Specified by:
getMatchingRule in interface TermQuery

isMatchingSubstring

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


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