public static final class SearchGroup.Registry extends Object
SearchGroup.Factory
) for search object types.
Initially, factories for search object types DataObject
and FileObject
are already registered
(DataObjectSearchGroup
and
FileObjectSearchGroup
).
Modifier and Type | Method and Description |
---|---|
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 ). |
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 registeredtrue
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 fornull
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 typetrue
if some factory has been registered
for the specified search object type,
false
otherwise