PageRenderTime 179ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/JSAP/doc/javadoc/com/martiansoftware/jsap/UnflaggedOption.html

https://bitbucket.org/arkban/somersault
HTML | 591 lines | 506 code | 60 blank | 25 comment | 0 complexity | fbb9783b380ecf578fa157421eade6c8 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-3-Clause, Apache-2.0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.4.2_08) on Thu Aug 03 20:30:44 EDT 2006 -->
  6. <TITLE>
  7. UnflaggedOption (JSAP: the Java Simple Argument Parser)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="com.martiansoftware.jsap.UnflaggedOption class">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
  11. <SCRIPT type="text/javascript">
  12. function windowTitle()
  13. {
  14. parent.document.title="UnflaggedOption (JSAP: the Java Simple Argument Parser)";
  15. }
  16. </SCRIPT>
  17. </HEAD>
  18. <BODY BGCOLOR="white" onload="windowTitle();">
  19. <!-- ========= START OF TOP NAVBAR ======= -->
  20. <A NAME="navbar_top"><!-- --></A>
  21. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  22. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  23. <TR>
  24. <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  25. <A NAME="navbar_top_firstrow"><!-- --></A>
  26. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  27. <TR ALIGN="center" VALIGN="top">
  28. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  29. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  30. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  31. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  32. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  33. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  34. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  35. </TR>
  36. </TABLE>
  37. </TD>
  38. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  39. </EM>
  40. </TD>
  41. </TR>
  42. <TR>
  43. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  44. &nbsp;<A HREF="../../../com/martiansoftware/jsap/TestUsageString.html" title="class in com.martiansoftware.jsap"><B>PREV CLASS</B></A>&nbsp;
  45. &nbsp;NEXT CLASS</FONT></TD>
  46. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  47. <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
  48. &nbsp;<A HREF="UnflaggedOption.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  49. &nbsp;<SCRIPT type="text/javascript">
  50. <!--
  51. if(window==top) {
  52. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  53. }
  54. //-->
  55. </SCRIPT>
  56. <NOSCRIPT>
  57. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  58. </NOSCRIPT>
  59. </FONT></TD>
  60. </TR>
  61. <TR>
  62. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  63. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  64. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  65. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  66. </TR>
  67. </TABLE>
  68. <A NAME="skip-navbar_top"></A>
  69. <!-- ========= END OF TOP NAVBAR ========= -->
  70. <HR>
  71. <!-- ======== START OF CLASS DATA ======== -->
  72. <H2>
  73. <FONT SIZE="-1">
  74. com.martiansoftware.jsap</FONT>
  75. <BR>
  76. Class UnflaggedOption</H2>
  77. <PRE>
  78. <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
  79. <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../com/martiansoftware/jsap/Parameter.html" title="class in com.martiansoftware.jsap">com.martiansoftware.jsap.Parameter</A>
  80. <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../com/martiansoftware/jsap/Option.html" title="class in com.martiansoftware.jsap">com.martiansoftware.jsap.Option</A>
  81. <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>com.martiansoftware.jsap.UnflaggedOption</B>
  82. </PRE>
  83. <HR>
  84. <DL>
  85. <DT>public final class <B>UnflaggedOption</B><DT>extends <A HREF="../../../com/martiansoftware/jsap/Option.html" title="class in com.martiansoftware.jsap">Option</A></DL>
  86. <P>
  87. An option whose meaning is derived from its <i>position in the argument
  88. list</i> rather than a flag
  89. that precedes it. UnflaggedOptions allow the parsing of command lines
  90. without flags, such as
  91. "compressfiles destinationFile file1 file2 file3 file4 ...", where
  92. "destinationFile" is the name of the
  93. file to create, and file1 through file 4 (and beyond) are the names of the
  94. files to compress. The JSAP
  95. that supports this command line has only two options defined: the first
  96. accepts a single destination file,
  97. and the second is "greedy," consuming the remaining unflagged options.
  98. <P>
  99. <P>
  100. <DL>
  101. <DT><B>Author:</B></DT>
  102. <DD><a href="http://www.martiansoftware.com/contact.html">Marty Lamb</a></DD>
  103. <DT><B>See Also:</B><DD><A HREF="../../../com/martiansoftware/jsap/FlaggedOption.html" title="class in com.martiansoftware.jsap"><CODE>FlaggedOption</CODE></A>,
  104. <A HREF="../../../com/martiansoftware/jsap/Option.html" title="class in com.martiansoftware.jsap"><CODE>Option</CODE></A></DL>
  105. <HR>
  106. <P>
  107. <!-- ======== NESTED CLASS SUMMARY ======== -->
  108. <!-- =========== FIELD SUMMARY =========== -->
  109. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  110. <A NAME="constructor_summary"><!-- --></A>
  111. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  112. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  113. <TD COLSPAN=2><FONT SIZE="+2">
  114. <B>Constructor Summary</B></FONT></TD>
  115. </TR>
  116. <TR BGCOLOR="white" CLASS="TableRowColor">
  117. <TD><CODE><B><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#UnflaggedOption(java.lang.String)">UnflaggedOption</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;id)</CODE>
  118. <BR>
  119. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new UnflaggedOption with the specified unique ID.</TD>
  120. </TR>
  121. <TR BGCOLOR="white" CLASS="TableRowColor">
  122. <TD><CODE><B><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#UnflaggedOption(java.lang.String, com.martiansoftware.jsap.StringParser, boolean, java.lang.String)">UnflaggedOption</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;id,
  123. <A HREF="../../../com/martiansoftware/jsap/StringParser.html" title="class in com.martiansoftware.jsap">StringParser</A>&nbsp;stringParser,
  124. boolean&nbsp;required,
  125. <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;help)</CODE>
  126. <BR>
  127. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A shortcut constructor that creates a new non-greedy UnflaggedOption with no default value
  128. and configures its most commonly used settings.</TD>
  129. </TR>
  130. <TR BGCOLOR="white" CLASS="TableRowColor">
  131. <TD><CODE><B><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#UnflaggedOption(java.lang.String, com.martiansoftware.jsap.StringParser, java.lang.String, boolean, boolean)">UnflaggedOption</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;id,
  132. <A HREF="../../../com/martiansoftware/jsap/StringParser.html" title="class in com.martiansoftware.jsap">StringParser</A>&nbsp;stringParser,
  133. <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;defaultValue,
  134. boolean&nbsp;required,
  135. boolean&nbsp;greedy)</CODE>
  136. <BR>
  137. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A shortcut constructor that creates a new UnflaggedOption and configures
  138. its most commonly used settings.</TD>
  139. </TR>
  140. <TR BGCOLOR="white" CLASS="TableRowColor">
  141. <TD><CODE><B><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#UnflaggedOption(java.lang.String, com.martiansoftware.jsap.StringParser, java.lang.String, boolean, boolean, java.lang.String)">UnflaggedOption</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;id,
  142. <A HREF="../../../com/martiansoftware/jsap/StringParser.html" title="class in com.martiansoftware.jsap">StringParser</A>&nbsp;stringParser,
  143. <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;defaultValue,
  144. boolean&nbsp;required,
  145. boolean&nbsp;greedy,
  146. <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;help)</CODE>
  147. <BR>
  148. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A shortcut constructor that creates a new UnflaggedOption and configures
  149. its most commonly used settings.</TD>
  150. </TR>
  151. </TABLE>
  152. &nbsp;
  153. <!-- ========== METHOD SUMMARY =========== -->
  154. <A NAME="method_summary"><!-- --></A>
  155. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  156. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  157. <TD COLSPAN=2><FONT SIZE="+2">
  158. <B>Method Summary</B></FONT></TD>
  159. </TR>
  160. <TR BGCOLOR="white" CLASS="TableRowColor">
  161. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  162. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  163. <TD><CODE><B><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#getSyntax()">getSyntax</A></B>()</CODE>
  164. <BR>
  165. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns syntax instructions for this FlaggedOption.</TD>
  166. </TR>
  167. <TR BGCOLOR="white" CLASS="TableRowColor">
  168. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  169. <CODE>&nbsp;boolean</CODE></FONT></TD>
  170. <TD><CODE><B><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#isGreedy()">isGreedy</A></B>()</CODE>
  171. <BR>
  172. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a boolean indicating whether this UnflaggedOption is greedy.</TD>
  173. </TR>
  174. <TR BGCOLOR="white" CLASS="TableRowColor">
  175. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  176. <CODE>&nbsp;<A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A></CODE></FONT></TD>
  177. <TD><CODE><B><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#setDefault(java.lang.String)">setDefault</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;defaultValue)</CODE>
  178. <BR>
  179. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a default value for this parameter.</TD>
  180. </TR>
  181. <TR BGCOLOR="white" CLASS="TableRowColor">
  182. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  183. <CODE>&nbsp;<A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A></CODE></FONT></TD>
  184. <TD><CODE><B><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#setDefault(java.lang.String[])">setDefault</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]&nbsp;defaultValues)</CODE>
  185. <BR>
  186. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets one or more default values for this parameter.</TD>
  187. </TR>
  188. <TR BGCOLOR="white" CLASS="TableRowColor">
  189. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  190. <CODE>&nbsp;<A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A></CODE></FONT></TD>
  191. <TD><CODE><B><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#setGreedy(boolean)">setGreedy</A></B>(boolean&nbsp;greedy)</CODE>
  192. <BR>
  193. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets whether this UnflaggedOption is greedy.</TD>
  194. </TR>
  195. <TR BGCOLOR="white" CLASS="TableRowColor">
  196. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  197. <CODE>&nbsp;<A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A></CODE></FONT></TD>
  198. <TD><CODE><B><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#setList(boolean)">setList</A></B>(boolean&nbsp;isList)</CODE>
  199. <BR>
  200. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets whether this UnflaggedOption is a list.</TD>
  201. </TR>
  202. <TR BGCOLOR="white" CLASS="TableRowColor">
  203. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  204. <CODE>&nbsp;<A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A></CODE></FONT></TD>
  205. <TD><CODE><B><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#setListSeparator(char)">setListSeparator</A></B>(char&nbsp;listSeparator)</CODE>
  206. <BR>
  207. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the list separator character for this UnflaggedOption.</TD>
  208. </TR>
  209. <TR BGCOLOR="white" CLASS="TableRowColor">
  210. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  211. <CODE>&nbsp;<A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A></CODE></FONT></TD>
  212. <TD><CODE><B><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#setRequired(boolean)">setRequired</A></B>(boolean&nbsp;required)</CODE>
  213. <BR>
  214. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets whether this UnflaggedOption is required.</TD>
  215. </TR>
  216. <TR BGCOLOR="white" CLASS="TableRowColor">
  217. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  218. <CODE>&nbsp;<A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A></CODE></FONT></TD>
  219. <TD><CODE><B><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#setStringParser(com.martiansoftware.jsap.StringParser)">setStringParser</A></B>(<A HREF="../../../com/martiansoftware/jsap/StringParser.html" title="class in com.martiansoftware.jsap">StringParser</A>&nbsp;stringParser)</CODE>
  220. <BR>
  221. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the StringParser to which this UnflaggedOption's parse() method
  222. should delegate.</TD>
  223. </TR>
  224. <TR BGCOLOR="white" CLASS="TableRowColor">
  225. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  226. <CODE>&nbsp;<A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A></CODE></FONT></TD>
  227. <TD><CODE><B><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#setUsageName(java.lang.String)">setUsageName</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;usageName)</CODE>
  228. <BR>
  229. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the name that will be displayed when getUsage() is called</TD>
  230. </TR>
  231. </TABLE>
  232. &nbsp;<A NAME="methods_inherited_from_class_com.martiansoftware.jsap.Option"><!-- --></A>
  233. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  234. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  235. <TD><B>Methods inherited from class com.martiansoftware.jsap.<A HREF="../../../com/martiansoftware/jsap/Option.html" title="class in com.martiansoftware.jsap">Option</A></B></TD>
  236. </TR>
  237. <TR BGCOLOR="white" CLASS="TableRowColor">
  238. <TD><CODE><A HREF="../../../com/martiansoftware/jsap/Option.html#getListSeparator()">getListSeparator</A>, <A HREF="../../../com/martiansoftware/jsap/Option.html#getStringParser()">getStringParser</A>, <A HREF="../../../com/martiansoftware/jsap/Option.html#isList()">isList</A>, <A HREF="../../../com/martiansoftware/jsap/Option.html#required()">required</A></CODE></TD>
  239. </TR>
  240. </TABLE>
  241. &nbsp;<A NAME="methods_inherited_from_class_com.martiansoftware.jsap.Parameter"><!-- --></A>
  242. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  243. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  244. <TD><B>Methods inherited from class com.martiansoftware.jsap.<A HREF="../../../com/martiansoftware/jsap/Parameter.html" title="class in com.martiansoftware.jsap">Parameter</A></B></TD>
  245. </TR>
  246. <TR BGCOLOR="white" CLASS="TableRowColor">
  247. <TD><CODE><A HREF="../../../com/martiansoftware/jsap/Parameter.html#addDefault(java.lang.String)">addDefault</A>, <A HREF="../../../com/martiansoftware/jsap/Parameter.html#getDefault()">getDefault</A>, <A HREF="../../../com/martiansoftware/jsap/Parameter.html#getHelp()">getHelp</A>, <A HREF="../../../com/martiansoftware/jsap/Parameter.html#getID()">getID</A>, <A HREF="../../../com/martiansoftware/jsap/Parameter.html#getUsage()">getUsage</A>, <A HREF="../../../com/martiansoftware/jsap/Parameter.html#getUsageName()">getUsageName</A>, <A HREF="../../../com/martiansoftware/jsap/Parameter.html#setHelp(java.lang.String)">setHelp</A></CODE></TD>
  248. </TR>
  249. </TABLE>
  250. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  251. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  252. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  253. <TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD>
  254. </TR>
  255. <TR BGCOLOR="white" CLASS="TableRowColor">
  256. <TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
  257. </TR>
  258. </TABLE>
  259. &nbsp;
  260. <P>
  261. <!-- ============ FIELD DETAIL =========== -->
  262. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  263. <A NAME="constructor_detail"><!-- --></A>
  264. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  265. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  266. <TD COLSPAN=1><FONT SIZE="+2">
  267. <B>Constructor Detail</B></FONT></TD>
  268. </TR>
  269. </TABLE>
  270. <A NAME="UnflaggedOption(java.lang.String)"><!-- --></A><H3>
  271. UnflaggedOption</H3>
  272. <PRE>
  273. public <B>UnflaggedOption</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;id)</PRE>
  274. <DL>
  275. <DD>Creates a new UnflaggedOption with the specified unique ID.
  276. <P>
  277. <DT><B>Parameters:</B><DD><CODE>id</CODE> - the unique ID for this UnflaggedOption.</DL>
  278. <HR>
  279. <A NAME="UnflaggedOption(java.lang.String, com.martiansoftware.jsap.StringParser, java.lang.String, boolean, boolean, java.lang.String)"><!-- --></A><H3>
  280. UnflaggedOption</H3>
  281. <PRE>
  282. public <B>UnflaggedOption</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;id,
  283. <A HREF="../../../com/martiansoftware/jsap/StringParser.html" title="class in com.martiansoftware.jsap">StringParser</A>&nbsp;stringParser,
  284. <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;defaultValue,
  285. boolean&nbsp;required,
  286. boolean&nbsp;greedy,
  287. <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;help)</PRE>
  288. <DL>
  289. <DD>A shortcut constructor that creates a new UnflaggedOption and configures
  290. its most commonly used settings.
  291. <P>
  292. <DT><B>Parameters:</B><DD><CODE>id</CODE> - the unique ID for this UnflaggedOption<DD><CODE>stringParser</CODE> - the StringParser this UnflaggedOption should use.<DD><CODE>defaultValue</CODE> - the default value for this UnflaggedOption (may be
  293. null).<DD><CODE>required</CODE> - if true, this UnflaggedOption is required.<DD><CODE>greedy</CODE> - if true, this UnflaggedOption is greedy.<DD><CODE>help</CODE> - the help text for this option (may be set to <A HREF="../../../com/martiansoftware/jsap/JSAP.html#NO_HELP"><CODE>JSAP.NO_HELP</CODE></A> for none).</DL>
  294. <HR>
  295. <A NAME="UnflaggedOption(java.lang.String, com.martiansoftware.jsap.StringParser, java.lang.String, boolean, boolean)"><!-- --></A><H3>
  296. UnflaggedOption</H3>
  297. <PRE>
  298. public <B>UnflaggedOption</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;id,
  299. <A HREF="../../../com/martiansoftware/jsap/StringParser.html" title="class in com.martiansoftware.jsap">StringParser</A>&nbsp;stringParser,
  300. <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;defaultValue,
  301. boolean&nbsp;required,
  302. boolean&nbsp;greedy)</PRE>
  303. <DL>
  304. <DD>A shortcut constructor that creates a new UnflaggedOption and configures
  305. its most commonly used settings.
  306. <P>
  307. <DT><B>Parameters:</B><DD><CODE>id</CODE> - the unique ID for this UnflaggedOption<DD><CODE>stringParser</CODE> - the StringParser this UnflaggedOption should use.<DD><CODE>defaultValue</CODE> - the default value for this UnflaggedOption (may be
  308. null).<DD><CODE>required</CODE> - if true, this UnflaggedOption is required.<DD><CODE>greedy</CODE> - if true, this UnflaggedOption is greedy.</DL>
  309. <HR>
  310. <A NAME="UnflaggedOption(java.lang.String, com.martiansoftware.jsap.StringParser, boolean, java.lang.String)"><!-- --></A><H3>
  311. UnflaggedOption</H3>
  312. <PRE>
  313. public <B>UnflaggedOption</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;id,
  314. <A HREF="../../../com/martiansoftware/jsap/StringParser.html" title="class in com.martiansoftware.jsap">StringParser</A>&nbsp;stringParser,
  315. boolean&nbsp;required,
  316. <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;help)</PRE>
  317. <DL>
  318. <DD>A shortcut constructor that creates a new non-greedy UnflaggedOption with no default value
  319. and configures its most commonly used settings.
  320. <P>
  321. <DT><B>Parameters:</B><DD><CODE>id</CODE> - the unique ID for this UnflaggedOption<DD><CODE>stringParser</CODE> - the StringParser this UnflaggedOption should use.<DD><CODE>required</CODE> - if true, this UnflaggedOption is required.<DD><CODE>help</CODE> - the help text for this option (may be set to <A HREF="../../../com/martiansoftware/jsap/JSAP.html#NO_HELP"><CODE>JSAP.NO_HELP</CODE></A> for none).</DL>
  322. <!-- ============ METHOD DETAIL ========== -->
  323. <A NAME="method_detail"><!-- --></A>
  324. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  325. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  326. <TD COLSPAN=1><FONT SIZE="+2">
  327. <B>Method Detail</B></FONT></TD>
  328. </TR>
  329. </TABLE>
  330. <A NAME="setGreedy(boolean)"><!-- --></A><H3>
  331. setGreedy</H3>
  332. <PRE>
  333. public <A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A> <B>setGreedy</B>(boolean&nbsp;greedy)</PRE>
  334. <DL>
  335. <DD>Sets whether this UnflaggedOption is greedy. A greedy UnflaggedOption
  336. consumes all the remaining
  337. UnflaggedOptions from the argument list. As a result, only one greedy
  338. UnflaggedOption may be registered with
  339. a JSAP, and it must be the last UnflaggedOption registered.
  340. <P>
  341. <DD><DL>
  342. <DT><B>Parameters:</B><DD><CODE>greedy</CODE> - if true, this UnflaggedOption will be greedy.
  343. <DT><B>Returns:</B><DD>the modified UnflaggedOption</DL>
  344. </DD>
  345. </DL>
  346. <HR>
  347. <A NAME="setUsageName(java.lang.String)"><!-- --></A><H3>
  348. setUsageName</H3>
  349. <PRE>
  350. public <A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A> <B>setUsageName</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;usageName)</PRE>
  351. <DL>
  352. <DD>Sets the name that will be displayed when getUsage() is called
  353. <P>
  354. <DD><DL>
  355. <DT><B>Parameters:</B><DD><CODE>usageName</CODE> - the name to use, or null if the id should be used (default)
  356. <DT><B>Returns:</B><DD>the modified UnflaggedOption</DL>
  357. </DD>
  358. </DL>
  359. <HR>
  360. <A NAME="isGreedy()"><!-- --></A><H3>
  361. isGreedy</H3>
  362. <PRE>
  363. public boolean <B>isGreedy</B>()</PRE>
  364. <DL>
  365. <DD>Returns a boolean indicating whether this UnflaggedOption is greedy.
  366. <P>
  367. <DD><DL>
  368. <DT><B>Returns:</B><DD>a boolean indicating whether this UnflaggedOption is greedy.</DL>
  369. </DD>
  370. </DL>
  371. <HR>
  372. <A NAME="getSyntax()"><!-- --></A><H3>
  373. getSyntax</H3>
  374. <PRE>
  375. public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getSyntax</B>()</PRE>
  376. <DL>
  377. <DD>Returns syntax instructions for this FlaggedOption.
  378. <P>
  379. <DD><DL>
  380. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/martiansoftware/jsap/Parameter.html#getSyntax()">getSyntax</A></CODE> in class <CODE><A HREF="../../../com/martiansoftware/jsap/Parameter.html" title="class in com.martiansoftware.jsap">Parameter</A></CODE></DL>
  381. </DD>
  382. <DD><DL>
  383. <DT><B>Returns:</B><DD>syntax instructions for this FlaggedOption based upon its current
  384. configuration.</DL>
  385. </DD>
  386. </DL>
  387. <HR>
  388. <A NAME="setList(boolean)"><!-- --></A><H3>
  389. setList</H3>
  390. <PRE>
  391. public <A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A> <B>setList</B>(boolean&nbsp;isList)</PRE>
  392. <DL>
  393. <DD>Sets whether this UnflaggedOption is a list. Default behavior is
  394. JSAP.NOT_LIST.
  395. <P>
  396. <DD><DL>
  397. <DT><B>Parameters:</B><DD><CODE>isList</CODE> - if true, this Option is a list.
  398. <DT><B>Returns:</B><DD>the modified UnflaggedOption</DL>
  399. </DD>
  400. </DL>
  401. <HR>
  402. <A NAME="setListSeparator(char)"><!-- --></A><H3>
  403. setListSeparator</H3>
  404. <PRE>
  405. public <A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A> <B>setListSeparator</B>(char&nbsp;listSeparator)</PRE>
  406. <DL>
  407. <DD>Sets the list separator character for this UnflaggedOption. The default
  408. list separator is JSAP.DEFAULT_LISTSEPARATOR.
  409. <P>
  410. <DD><DL>
  411. <DT><B>Parameters:</B><DD><CODE>listSeparator</CODE> - the list separator for this Option.
  412. <DT><B>Returns:</B><DD>the modified UnflaggedOption</DL>
  413. </DD>
  414. </DL>
  415. <HR>
  416. <A NAME="setRequired(boolean)"><!-- --></A><H3>
  417. setRequired</H3>
  418. <PRE>
  419. public <A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A> <B>setRequired</B>(boolean&nbsp;required)</PRE>
  420. <DL>
  421. <DD>Sets whether this UnflaggedOption is required. Default is
  422. JSAP.NOT_REQUIRED.
  423. <P>
  424. <DD><DL>
  425. <DT><B>Parameters:</B><DD><CODE>required</CODE> - if true, this Option will be required.
  426. <DT><B>Returns:</B><DD>the modified UnflaggedOption</DL>
  427. </DD>
  428. </DL>
  429. <HR>
  430. <A NAME="setStringParser(com.martiansoftware.jsap.StringParser)"><!-- --></A><H3>
  431. setStringParser</H3>
  432. <PRE>
  433. public <A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A> <B>setStringParser</B>(<A HREF="../../../com/martiansoftware/jsap/StringParser.html" title="class in com.martiansoftware.jsap">StringParser</A>&nbsp;stringParser)</PRE>
  434. <DL>
  435. <DD>Sets the StringParser to which this UnflaggedOption's parse() method
  436. should delegate.
  437. <P>
  438. <DD><DL>
  439. <DT><B>Parameters:</B><DD><CODE>stringParser</CODE> - the StringParser to which this Option's parse()
  440. method should delegate.
  441. <DT><B>Returns:</B><DD>the modified UnflaggedOption<DT><B>See Also:</B><DD><A HREF="../../../com/martiansoftware/jsap/StringParser.html" title="class in com.martiansoftware.jsap"><CODE>StringParser</CODE></A></DL>
  442. </DD>
  443. </DL>
  444. <HR>
  445. <A NAME="setDefault(java.lang.String)"><!-- --></A><H3>
  446. setDefault</H3>
  447. <PRE>
  448. public <A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A> <B>setDefault</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;defaultValue)</PRE>
  449. <DL>
  450. <DD>Sets a default value for this parameter. The default is specified
  451. as a String, and is parsed as a single value specified on the
  452. command line. In other words, default values for "list"
  453. parameters or parameters allowing multiple declarations should be
  454. set using setDefault(String[]), as JSAP
  455. would otherwise treat the entire list of values as a single value.
  456. <P>
  457. <DD><DL>
  458. <DT><B>Parameters:</B><DD><CODE>defaultValue</CODE> - the default value for this parameter.<DT><B>See Also:</B><DD><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#setDefault(java.lang.String)"><CODE>setDefault(String)</CODE></A></DL>
  459. </DD>
  460. </DL>
  461. <HR>
  462. <A NAME="setDefault(java.lang.String[])"><!-- --></A><H3>
  463. setDefault</H3>
  464. <PRE>
  465. public <A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A> <B>setDefault</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]&nbsp;defaultValues)</PRE>
  466. <DL>
  467. <DD>Sets one or more default values for this parameter. This method
  468. should be used whenever a parameter has more than one default
  469. value.
  470. <P>
  471. <DD><DL>
  472. <DT><B>Parameters:</B><DD><CODE>defaultValues</CODE> - the default values for this parameter.<DT><B>See Also:</B><DD><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#setDefault(java.lang.String)"><CODE>setDefault(String)</CODE></A></DL>
  473. </DD>
  474. </DL>
  475. <!-- ========= END OF CLASS DATA ========= -->
  476. <HR>
  477. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  478. <A NAME="navbar_bottom"><!-- --></A>
  479. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  480. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  481. <TR>
  482. <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  483. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  484. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  485. <TR ALIGN="center" VALIGN="top">
  486. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  487. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  488. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  489. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  490. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  491. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  492. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  493. </TR>
  494. </TABLE>
  495. </TD>
  496. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  497. </EM>
  498. </TD>
  499. </TR>
  500. <TR>
  501. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  502. &nbsp;<A HREF="../../../com/martiansoftware/jsap/TestUsageString.html" title="class in com.martiansoftware.jsap"><B>PREV CLASS</B></A>&nbsp;
  503. &nbsp;NEXT CLASS</FONT></TD>
  504. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  505. <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
  506. &nbsp;<A HREF="UnflaggedOption.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  507. &nbsp;<SCRIPT type="text/javascript">
  508. <!--
  509. if(window==top) {
  510. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  511. }
  512. //-->
  513. </SCRIPT>
  514. <NOSCRIPT>
  515. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  516. </NOSCRIPT>
  517. </FONT></TD>
  518. </TR>
  519. <TR>
  520. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  521. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  522. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  523. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  524. </TR>
  525. </TABLE>
  526. <A NAME="skip-navbar_bottom"></A>
  527. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  528. <HR>
  529. Copyright &copy; 2002-2006, Martian Software, Inc.. All Rights Reserved.<br>For the latest version and documentation, please visit <a href='http://www.martiansoftware.com/jsap'>http://www.martiansoftware.com/jsap</a>
  530. </BODY>
  531. </HTML>