uk.ac.vamsas.test.simpleclient
Class CommandProcessor

java.lang.Object
  extended byuk.ac.vamsas.test.simpleclient.CommandProcessor

public class CommandProcessor
extends java.lang.Object


Constructor Summary
CommandProcessor()
           
 
Method Summary
 int addCommand(java.lang.String cmd, int argneed, java.lang.String complainString)
           
 void complainArgs(int argl, int argpos, java.util.Vector ca)
          Integer argl, Integer argpos, String cmd, Integer argneed, String msg in vector
 int getCommand(java.lang.String[] args, int argpos)
          find and verify a command
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandProcessor

public CommandProcessor()
Method Detail

addCommand

public int addCommand(java.lang.String cmd,
                      int argneed,
                      java.lang.String complainString)

complainArgs

public void complainArgs(int argl,
                         int argpos,
                         java.util.Vector ca)
Integer argl, Integer argpos, String cmd, Integer argneed, String msg in vector


getCommand

public int getCommand(java.lang.String[] args,
                      int argpos)
find and verify a command

Parameters:
args - argstring
argpos - position to check for command
Returns:
matching command or -1