CatalogBase
public interface Catalog
A Catalog
is a collection of named Command
s (or
Chain
s) that can be used to retrieve the set of commands that
should be performed based on a symbolic identifier. Use of catalogs
is optional, but convenient when there are multiple possible chains
that can be selected and executed based on environmental conditions.
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
CATALOG_KEY |
A default context attribute for storing a default
Catalog ,
provided as a convenience only. |
Modifier and Type | Method | Description |
---|---|---|
void |
addCommand(java.lang.String name,
Command command) |
|
Command |
getCommand(java.lang.String name) |
|
java.util.Iterator |
getNames() |
Return an
Iterator over the set of named commands
known to this Catalog . |
static final java.lang.String CATALOG_KEY
A default context attribute for storing a default Catalog
,
provided as a convenience only.
void addCommand(java.lang.String name, Command command)
Command getCommand(java.lang.String name)
java.util.Iterator getNames()
Return an Iterator
over the set of named commands
known to this Catalog
. If there are no known commands,
an empty Iterator is returned.