|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Field Summary | |
---|---|
static String |
CATALOG_KEY
A default context attribute for storing a default Catalog ,
provided as a convenience only. |
Method Summary | |
---|---|
void |
addCommand(String name,
Command command)
Add a new name and associated Command or Chain
to the set of named commands known to this Catalog ,
replacing any previous command for that name. |
Command |
getCommand(String name)
Return the Command or Chain associated with the
specified name, if any; otherwise, return null . |
Iterator |
getNames()
Return an Iterator over the set of named commands
known to this Catalog . |
Field Detail |
---|
static final String CATALOG_KEY
A default context attribute for storing a default Catalog
,
provided as a convenience only.
Method Detail |
---|
void addCommand(String name, Command command)
Add a new name and associated Command
or Chain
to the set of named commands known to this Catalog
,
replacing any previous command for that name.
name
- Name of the new commandcommand
- Command
or Chain
to be returned
for later lookups on this nameCommand getCommand(String name)
Return the Command
or Chain
associated with the
specified name, if any; otherwise, return null
.
name
- Name for which a Command
or Chain
should be retrieved
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |