/* An instance of an implementing class represents a command by which ** a document (i.e., a thing represented by an instance of the Document ** class) is edited. */ public interface EditCommand { /* Applies this command to the specified document. */ void execute(Document doc); /* Undoes (i.e., reverses the effects of) this command within ** the specified document. */ void undo(Document doc); /* Returns a string identifying this kind of command. */ String getName(); }