package edu.dynamic.dynamiz.parser;

import java.util.List;

/**
 * This is a class Object which stores the information of the parsed 
 * command line given by the user.
 * 
 * Represents a list of arguments parsed against an option argument.
 * 
 * Also represents a list of commands parsed (?! if it is necessary)
 * 
 * This allows querying of a boolean hasOption(String opt), 
 *  and retrieving value of the option getOptionValue(String opt)
 *  
 * @author nhan
 *
 */
public class CommandLine {

}

@@ -54,16 +54,59 @@
 .List;%0A%0A
+import edu.dynamic.dynamiz.logic.Command;%0A%0A
 /**%0A * T
@@ -124,15 +124,8 @@
 ass 
-Object 
 whic
@@ -531,11 +531,1223 @@
 dLine %7B%0A
+%09private Command command;%0A%09private Options options;%0A%09private String param;%0A%09%0A%09public CommandLine() %7B%0A%09%09this.command = null;%0A%09%09this.options = null;%0A%09%09this.param = null;%0A%09%7D%0A%09%0A%09public CommandLine(Command command, Options options, String param) %7B%0A%09%09this.command = command;%0A%09%09this.options = options;%0A%09%09this.param = param;%0A%09%7D%0A%0A%09/*%0A%09 * ========================================================================%0A%09 * Getters & Setters%0A%09 * ========================================================================%0A%09 */%0A%09public Command getCommand() %7B%0A%09%09return command;%0A%09%7D%0A%0A%09public void setCommand(Command command) %7B%0A%09%09this.command = command;%0A%09%7D%0A%0A%09public Options getOptions() %7B%0A%09%09return options;%0A%09%7D%0A%0A%09public void setOptions(Options options) %7B%0A%09%09this.options = options;%0A%09%7D%0A%0A%09public String getParam() %7B%0A%09%09return param;%0A%09%7D%0A%0A%09public void setParam(String param) %7B%0A%09%09this.param = param;%0A%09%7D%0A%09/*%0A%09 * ========================================================================%0A%09 * End of Getters & Setters%0A%09 * ========================================================================%0A%09 * %0A%09 */%0A%09%0A%09public String getCommandType() %7B%0A%09%09return command.getType();%0A%09%7D%0A%09%0A%09public int getNumberOfOptions() %7B%0A%09%09return options.getNumOfOptions();%0A%09%7D%0A%09%0A%09
 %0A%7D%0A

Set up basic operation for CommandLine