|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.catalog.Catalog<I,SimpleItemGroup<I>,SimpleCatalog<I>> edu.nrao.sss.catalog.SimpleCatalog<I>
public class SimpleCatalog<I extends CatalogItem<I>>
A simple catalog of items and groups of items.
The groups of this catalog are of type
SimpleItemGroup<I>
.
Use this class as you would any collections class. E.g.:
SimpleCatalog<Widget> myCatalog = new SimpleCatalog<Widget>(); myCatalog.add(widgetA); ...Use this catalog when you have no need for specialized behavior for your catalog or for your item group objects.
CVS Info:
$Revision: 161 $ |
$Date: 2006-12-15 11:48:34 -0700 (Fri, 15 Dec 2006) $ |
$Author: btruitt $ |
Constructor Summary | |
---|---|
SimpleCatalog()
Creates a new catalog with a default name. |
|
SimpleCatalog(String nameOfCatalog)
Creates a new catalog with the given name. |
Method Summary | |
---|---|
SimpleItemGroup<I> |
createGroup()
Returns a group of the same type of items used by this catalog. |
protected SimpleItemGroup<I> |
createMainGroup()
Creates and returns a new group to use as the holder of items for this catalog. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleCatalog()
public SimpleCatalog(String nameOfCatalog)
nameOfCatalog
- the name of this catalog. If this value is
null, this catalog will be given a
default name.Method Detail |
---|
protected SimpleItemGroup<I> createMainGroup()
Catalog
createMainGroup
in class Catalog<I extends CatalogItem<I>,SimpleItemGroup<I extends CatalogItem<I>>,SimpleCatalog<I extends CatalogItem<I>>>
public SimpleItemGroup<I> createGroup()
Catalog
createGroup
in class Catalog<I extends CatalogItem<I>,SimpleItemGroup<I extends CatalogItem<I>>,SimpleCatalog<I extends CatalogItem<I>>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |