public class SearchManager
extends java.lang.Object
The platform provides the following searchable collections:
Region.Search
PropertySearch
Plugins can register searchable object collections using
registerSearchable().
| Modifier and Type | Method and Description |
|---|---|
static Matcher |
getMatcher(SearchClause searchClause,
java.lang.Class instanceClass)
Get object matcher that can apply 'searchClause' to objects of
'instanceClass'.
|
static void |
registerMatcher(java.lang.Class searchClauseClass,
java.lang.Class instanceClass,
MatcherFactory matcherFactory)
Register object match factory.
|
static void |
registerSearchable(ObjectType objectType,
Searchable searchable)
Register a new searchable object collection.
|
static java.util.Collection |
searchObjects(ObjectType objectType,
SearchClause searchClause,
SearchSelection selection)
Search for matching objects and get selected information.
|
public static java.util.Collection searchObjects(ObjectType objectType, SearchClause searchClause, SearchSelection selection)
The search clause is a SearchClass sub-class designed specifically for an object type (or class of object types).
objectType - Search for this object typesearchClause - Object matching criteriaselection - Information selection; only the indicated
information will be returned.public static void registerSearchable(ObjectType objectType, Searchable searchable)
objectType - Collection object type.searchable - Object search implementation.public static void registerMatcher(java.lang.Class searchClauseClass,
java.lang.Class instanceClass,
MatcherFactory matcherFactory)
searchClauseClass - A SearchClause sub-class.instanceClass - Instance object class.matcherFactory - Can return a Matcher object capable of
running the SearchClause against the instance object.public static Matcher getMatcher(SearchClause searchClause, java.lang.Class instanceClass)
searchClause - The matching criteria.instanceClass - Instance object class.