| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.unifiedsearch.SearchFieldCriteria
public class SearchFieldCriteria
Maps search keywords to specific search fields. Use this to describe the data
 in a SearchableEntity when you register your data in the Unified Search Framework.
| Constructor Summary | ||
|---|---|---|
 | 
SearchFieldCriteria(SearchField field,
                    String[] phrases)
Initializes a new instance of SearchFieldCriteria. | 
|
 | 
SearchFieldCriteria(SearchField field,
                    String[] phrases,
                    boolean preserveSpecialChars,
                    String delimiter)
Initializes a new instance of SearchFieldCriteria. | 
|
| Method Summary | ||
|---|---|---|
 | 
 String | 
getDelimiter()
Returns the character sequence that delimits search keywords or phrases in this SearchFieldCriteria into multiple keywords. | 
 | 
 SearchField | 
getField()
Returns the SearchField instance associated with this object. | 
 | 
 String[] | 
getPhrases()
Returns the search phrases.  | 
 | 
 boolean | 
preserveSpecialCharacters()
Indicates whether this SearchFieldCriteria can have keywords
 or phrases that contain special characters. | 
 | 
 String | 
toString()
Returns a String containing the search criteria. | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public SearchFieldCriteria(SearchField field,
                           String[] phrases)
SearchFieldCriteria. 
 Note that the Unified Search Framework trims leading and trailing white space in phrases.
 Note that for indexing purposes all strings are converted to lowercase.
 
field - The SearchField instance associated with this object.phrases - An array of String objects containing individual 
            keywords or phrases.
            Note that the framework trims leading and trailing white space in phrases. The framework combines keywords within a phrase using a logical AND operation. Search results for phrases are combined using a logical OR operation.
IllegalArgumentException - null.
             null.
             
public SearchFieldCriteria(SearchField field,
                           String[] phrases,
                           boolean preserveSpecialChars,
                           String delimiter)
SearchFieldCriteria. 
 Note that the Unified Search Service trims leading and trailing white space in phrases.
 Note that for indexing purposes all strings are converted to lowercase.
field - The SearchField instance associated with this object.phrases - An array of String objects containing individual 
            keywords or phrases.
            Note that the framework trims leading and trailing white space in phrases. The framework combines keywords within a phrase using a logical AND operation. Search results for phrases are combined using a logical OR operation.
preserveSpecialChars - If set to true, non-alphabetic characters are not
            removed from keywords or phrases during indexing.delimiter - The character sequence that the Unified Search Service should 
            use to delimit a phrase into one or more. If this
            parameter is null, the entire phrase is indexed as
            a single keyword. If  preserveSpecialChars parameter
            is false, delimiter is ignored.
IllegalArgumentException - null.
             null.
             | Method Detail | 
|---|
public SearchField getField()
SearchField instance associated with this object.
SearchField.public String[] getPhrases()
public String toString()
String containing the search criteria.  
 Note: for indexing purposes all strings are converted to lowercase 
 and thus this method will return the keywords in lowercase form.
toString in class ObjectString containing the search criteria.public boolean preserveSpecialCharacters()
SearchFieldCriteria can have keywords
 or phrases that contain special characters.
true if special characters are preserved in the search phrases, 
 otherwise false.public String getDelimiter()
SearchFieldCriteria into multiple keywords.
null if not 
 applicable.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited.  295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8.  All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal