/* An instance of this class represents a command by which a line ** of text within a document is deleted. ** ** Authors: Gemini, R. McCloskey, and ** Collaborated with: ... ** Known defects: ... */ public class DeleteCommand implements EditCommand { // instance variables // ------------------ // MISSING DECLARATIONS // constructor // ----------- /* Establishes this command as one that deletes from a document ** the line of text at the specified position. */ public DeleteCommand(int lineNum) { // STUB } // observers // --------- @Override public String getName() { return "DELETE"; } @Override /* Returns a string that indicates the position of the line ** of text to be deleted. If this command has been executed, ** it also indicates the contents of that line. */ public String toString() { return ""; // STUB } // operations // ---------- @Override /* Applies this command to the specified document. */ public void execute(Document doc) { // STUB } @Override /* Reverses the effects of this command within the specified document. */ public void undo(Document doc) { // STUB } }