+ @param prefix The string of prefix\r
+ */\r
+ public ToolArg(String prefix) {\r
+ this.prefix = prefix;\r
+ }\r
+\r
+ /**\r
+ Constructor which will initialize both the prefix and value of this argument\r
+ \r
+ @param prefix The prefix of this argument\r
+ @param value The value of this argument\r
+ */\r
+ public ToolArg(String prefix, String value) {\r
+ setArg(prefix, value);\r
+ }\r
+\r
+ /**\r
+ Set the prefix and value of this argument\r
+\r
+ @param prefix The prefix of this argument\r
+ @param value The value of this argument \r
+ */\r
+ public void setArg(String prefix, String value) {\r
+ this.prefix = prefix;\r
+ super.setName(value);\r
+ }\r
+\r
+ /**\r
+ Set the prefix of this argument\r
+\r
+ @param prefix The prefix of this argument\r
+ */\r
+ public void setPrefix(String prefix) {\r
+ this.prefix = prefix;\r
+ }\r
+\r
+ /**\r
+ Get the prefix of this argument\r
+\r
+ @return String The prefix of this argument\r
+ */\r
+ public String getPrefix() {\r
+ return this.prefix.trim();\r
+ }\r
+\r
+ /**\r
+ Set the value of this argument\r
+\r
+ @param value The value of this argument\r
+ */\r
+ public void setValue(String value) {\r
+ super.setName(value);\r
+ }\r
+\r
+ /**\r
+ Add a value for this argument\r
+\r
+ @param value The value of this argument\r
+ */\r
+ public void insValue(String value) {\r
+ super.insName(value);\r
+ }\r
+\r
+ /**\r
+ Get the value list of this argument, separated by space\r
+\r
+ @return String The value list\r
+ */\r
+ public String getValue() {\r
+ return super.toString(" ").trim();\r
+ }\r
+\r
+ /**\r
+ Set the argument as a whole\r
+\r
+ @param line The argument string line\r
+ */\r