@@ -0,0 +1,1780 @@
+//@@author A0163559U%0Apackage seedu.task.logic.commands;%0A%0Aimport java.io.File;%0A%0Aimport seedu.task.commons.exceptions.IllegalValueException;%0Aimport seedu.task.logic.commands.exceptions.CommandException;%0A%0A/**%0A * Saves all tasks in the specified directory.%0A */%0Apublic class SaveCommand extends Command %7B%0A%0A    public static final String COMMAND_WORD = %22save%22;%0A%0A    public static final String MESSAGE_USAGE = COMMAND_WORD + %22: Saves all tasks in specified directory. %22%0A            + %22Parameters: SAVE_DIRECTORY%5Cn%22%0A            + %22Example: %22 + COMMAND_WORD%0A            + %22 /Users/username/Documents/TaskManager/taskmanger.xml%22;%0A%0A    public static final String MESSAGE_SUCCESS = %22Tasks saved in directory: %251$s%22;%0A    //    public static final String MESSAGE_DUPLICATE_TASK = %22This task already exists in the task manager%22;%0A%0A    private final File toSave;%0A    /**%0A     * Creates an SaveCommand using raw values.%0A     *%0A     * @throws IllegalValueException if any of the raw values are invalid%0A     */%0A    public SaveCommand(String fileAsString) throws IllegalValueException %7B%0A        this.toSave = new File(fileAsString);%0A        if (!isValidSaveLocation(toSave)) %7B%0A            throw new IllegalValueException(%22Save location invalid.%22);%0A        %7D%0A    %7D%0A%0A    private boolean isValidSaveLocation(File file) %7B%0A        return false;%0A    %7D%0A%0A    @Override%0A    public CommandResult execute() throws CommandException %7B%0A        assert model != null;%0A        //        try %7B%0A        //            model.addTask(toAdd);%0A        //            return new CommandResult(String.format(MESSAGE_SUCCESS, toAdd));%0A        //        %7D catch (UniqueTaskList.DuplicateTaskException e) %7B%0A        //            throw new CommandException(MESSAGE_DUPLICATE_TASK);%0A        //        %7D%0A        return null;%0A    %7D%0A%0A%7D%0A

create SaveCommand.java