public class CatalogFactory extends Object
Constructor and Description |
---|
CatalogFactory() |
Modifier and Type | Method and Description |
---|---|
static Catalog |
getCatalogByName(String catalogName)
This method returns a Catalog object that can be used to query
the given catalog, or null if no such object was found.
|
static List |
getCatalogsByType(String type)
This method returns a list of Catalog objects that have the given type,
in the order in which they were registered.
|
static Iterator |
iterator()
Returns an Iterator to visit each registered catalog in sorted order.
|
static void |
registerCatalog(Catalog catalog,
boolean overwrite)
Register the given catalog.
|
static void |
unregisterCatalog(Catalog catalog)
Unregister the given catalog, removing it from the list of known
catalogs.
|
public static void registerCatalog(Catalog catalog, boolean overwrite)
catalog
- An object to use to query the catalog.overwrite
- if true, the given catalog object replaces any
previously defined catalog with the same name,
otherwise only the first catalog registered with a
given name is actually registered.public static Catalog getCatalogByName(String catalogName)
catalogName
- The name of a registered catalogpublic static List getCatalogsByType(String type)
type
- The catalog type (as returned by Catalog.getType()
)public static void unregisterCatalog(Catalog catalog)
catalog
- The catalog to be removed from the list.public static Iterator iterator()
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.