com.symbian.et.test.cmdline.genericcmds
Class AnyGenericOperation

java.lang.Object
  extended bycom.symbian.et.test.cmdline.genericcmds.AnyGenericOperation
All Implemented Interfaces:
CmdOperational
Direct Known Subclasses:
HelpOperation, VersionOperation

public abstract class AnyGenericOperation
extends java.lang.Object
implements CmdOperational

basic command that prints the tool name with its version and its copyright as well as the command name

Author:
EngineeringTools

Constructor Summary
AnyGenericOperation()
           
 
Method Summary
 java.lang.Object run(CmdLine aCmd)
          executes command
protected abstract  java.lang.Object runSpecial(CmdLine aCmd)
          implements specific behavior in the subclass (Template Method design pattern)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnyGenericOperation

public AnyGenericOperation()
Method Detail

run

public java.lang.Object run(CmdLine aCmd)
                     throws CmdLineException
Description copied from interface: CmdOperational
executes command

Specified by:
run in interface CmdOperational
Parameters:
aCmd - command syntax
Returns:
any type of object the implementation of this interface needed to return
Throws:
CmdLineException - if the command couldn't be processed

runSpecial

protected abstract java.lang.Object runSpecial(CmdLine aCmd)
                                        throws CmdLineException
implements specific behavior in the subclass (Template Method design pattern)

Parameters:
aCmd - command line
Returns:
any type of object the subclass needs to return in its implementation
Throws:
CmdParsingFailureException - if the command line is not parsed correctly
CmdNotInitializedException - if the command line was not parsed correctly
CmdLineException