|
org.openidex.util/3 3.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openidex.search.SearchGroup.Registry
public static final class SearchGroup.Registry
Registry which registers search group factories
(SearchGroup.Factory
) for search object types.
Initially, factories for search object types DataObject
and FileObject
are already registered
(DataObjectSearchGroup
and
FileObjectSearchGroup
).
Method Summary | |
---|---|
static SearchGroup |
createSearchGroup(Class searchObjectType)
Creates a SearchGroup for the specified search object
type. |
static boolean |
hasFactory(Class searchObjectType)
Tests whether there is a Factory registered for the
specified search object class type. |
static boolean |
registerSearchGroupFactory(Class searchObjectClass,
SearchGroup.Factory factory)
Registers a search group factory for a search object type ( Class ). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean registerSearchGroupFactory(Class searchObjectClass, SearchGroup.Factory factory)
Class
).
If a factory has already been registered for the specified
search object type, the old registration is kept (the registration
fails).
searchObjectClass
- search object type the factory is
to be registered forfactory
- factory to be registered
true
if the registration was successful,
false
if the registration failed
(i. e. if some factory has already been registered
for the specified search object type)public static SearchGroup createSearchGroup(Class searchObjectType)
SearchGroup
for the specified search object
type.
The search group is created using
the factory registered for
the specified search object type.
searchObjectType
- search object type to create
a search group for
null
if no factory has been registed
for the specified search object typeregisterSearchGroupFactory
public static boolean hasFactory(Class searchObjectType)
Factory
registered for the
specified search object class type.
searchObjectType
- search object type
true
if some factory has been registered
for the specified search object type,
false
otherwise
|
org.openidex.util/3 3.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |