|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ikrs.util.AbstractCommandFactory<Command> ikrs.util.DefaultCommandFactory
public class DefaultCommandFactory
Constructor Summary | |
---|---|
DefaultCommandFactory()
Create a new DefaultCommandFactory with an empty set of supported commands. |
Method Summary | |
---|---|
protected void |
addSupportedCommand(Command c)
|
java.util.Set<Command> |
getSupportedCommands()
Get a set of all supported commands. |
Command |
make(java.lang.String name,
BasicType[] params)
Make a new Command with the given name and params. |
Methods inherited from class ikrs.util.AbstractCommandFactory |
---|
getParentFactory, make, make, parse, setParentFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ikrs.util.CommandFactory |
---|
getParentFactory, make, parse, setParentFactory |
Constructor Detail |
---|
public DefaultCommandFactory()
Method Detail |
---|
protected void addSupportedCommand(Command c)
public Command make(java.lang.String name, BasicType[] params) throws UnknownCommandException, CommandStringIncompleteException
make
in interface CommandFactory<Command>
make
in class AbstractCommandFactory<Command>
name
- The command's name.params
- The command's params - in BasicType representation.
UnknownCommandException
CommandStringIncompleteException
public java.util.Set<Command> getSupportedCommands()
getSupportedCommands
in interface CommandFactory<Command>
getSupportedCommands
in class AbstractCommandFactory<Command>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |