1 package net.sf.tomp.xtcl; 2 3 /*** 4 * The interface for a command - enables the command to be executed within a 5 * context. 6 * 7 * @author tomp 8 */ 9 public interface Command { 10 11 /*** 12 * Execute this command within Context c 13 * 14 * @param c Context in which the command is executed 15 * @return int errorCode (0 means OK) 16 */ 17 int execute(Context c) throws Exception; 18 } 19 20 /* 21 * The contents of this file are subject to the Mozilla Public License Version 22 * 1.1 (the "License"); you may not use this file except in compliance with the 23 * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ 24 * Software distributed under the License is distributed on an "AS IS" basis, 25 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 26 * the specific language governing rights and limitations under the License. The 27 * Original Code is: all this file. The Initial Developer of the Original Code 28 * is: Tomas Pitner, Masaryk University in Brno, Czech Republic. Contributor(s): 29 */