| Command.java |
package com.greenautomation.pkeytool;
import java.io.PrintStream;
import java.util.Map;
/**
* A command that can be run by a user of pkeytool.<p>
*
* Copyright 2003 Green Automation, Inc.<p>
*
* This file is part of pkeytool.<p>
*
* pkeytool is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.<p>
*
* pkeytool is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.<p>
*
* You should have received a copy of the GNU General Public License
* along with pkeytool; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* @author David Green <green@couchpotato.net>
* @version $Id: Command.java,v 1.1 2003/03/06 07:12:45 green Exp $
*/
public interface Command {
public void run(Map args) throws Exception;
public String getName();
public String[] getParamsWithArgs();
public String[] getParamsWithoutArgs();
public void printHelp(PrintStream s);
}