|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjsky.catalog.CatalogFactory
public class CatalogFactory
Used to manage access to a known list of catalogs. Catalogs may be registered by name and later searched for by name.
| Constructor Summary | |
|---|---|
CatalogFactory()
|
|
| Method Summary | |
|---|---|
static Catalog |
getCatalogByName(java.lang.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 java.util.List |
getCatalogsByType(java.lang.String type)
This method returns a list of Catalog objects that have the given type, in the order in which they were registered. |
static java.util.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CatalogFactory()
| Method Detail |
|---|
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(java.lang.String catalogName)
catalogName - The name of a registered catalog
public static java.util.List getCatalogsByType(java.lang.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 java.util.Iterator iterator()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||