com.saelist.command
Class AbstractCommand
java.lang.Object
com.saelist.command.AbstractCommand
- All Implemented Interfaces:
- Command
- Direct Known Subclasses:
- FindFilesCommand, ReplaceCommand, SmtpCommand, TransformCommand
- public abstract class AbstractCommand
- extends java.lang.Object
- implements Command
Provides a basic implementation for Commands. It accepts a set of arguments
which is takes to be name=value pairs in the root of the configuration.
If name starting with @ will be taken to be the path to a file with
additional configuration. [[ The combinde configuration structure is
validated against the schema return be getSchema(). The basic implementation
of getSchema() assumes a schema file with the name [classname].schema.ls.txt.
Descendants can override that. ]]
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static Logger logger
config
protected Pair config
AbstractCommand
public AbstractCommand()
setArgs
public void setArgs(java.lang.String[] args)
- Specified by:
setArgs in interface Command
setArg
public void setArg(java.lang.String arg)
- Specified by:
setArg in interface Command
undo
public void undo()
- Specified by:
undo in interface Command
undoable
public boolean undoable()