1 package com.loribel.commons.abstraction; 2 3 import org.w3c.dom.*; 4 5 /*** 6 * representation of a command. 7 * 8 * @author Grégory Borelli 9 */ 10 public interface GB_Command 11 { 12 13 /*** 14 * Return the id of the command. 15 * 16 * @return int 17 */ 18 int getId(); 19 20 /*** 21 * Return the name of the command. 22 * 23 * @return String 24 */ 25 String getName(); 26 27 /*** 28 * Return the parameters of the command. 29 * 30 * @return Node 31 */ 32 Node getParameters(); 33 34 /*** 35 * Execute a command on a object. 36 * 37 * @param a_object Object - the Object on witch we execute command 38 * 39 * @return Object 40 */ 41 Object execute( 42 Object a_object); 43 44 }