commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1008235 [37/39] - in /websites/production/commons/content/proper/commons-cli: ./ apidocs/ apidocs/org/apache/commons/cli/ apidocs/org/apache/commons/cli/class-use/ apidocs/src-html/org/apache/commons/cli/ css/ images/ images/svg/ jacoco-ag...
Date Mon, 13 Mar 2017 09:49:55 GMT
Modified: websites/production/commons/content/proper/commons-cli/xref/org/apache/commons/cli/Option.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/xref/org/apache/commons/cli/Option.html (original)
+++ websites/production/commons/content/proper/commons-cli/xref/org/apache/commons/cli/Option.html Mon Mar 13 09:49:52 2017
@@ -1,6 +1,6 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
+<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
 <title>Option xref</title>
 <link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
 </head>
@@ -45,7 +45,7 @@
 <a class="jxr_linenumber" name="L37" href="#L37">37</a>  <em class="jxr_javadoccomment"> * @see org.apache.commons.cli.Options</em>
 <a class="jxr_linenumber" name="L38" href="#L38">38</a>  <em class="jxr_javadoccomment"> * @see org.apache.commons.cli.CommandLine</em>
 <a class="jxr_linenumber" name="L39" href="#L39">39</a>  <em class="jxr_javadoccomment"> *</em>
-<a class="jxr_linenumber" name="L40" href="#L40">40</a>  <em class="jxr_javadoccomment"> * @version $Id: Option.java 1677406 2015-05-03 14:27:31Z britter $</em>
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>  <em class="jxr_javadoccomment"> * @version $Id: Option.java 1756753 2016-08-18 10:18:43Z britter $</em>
 <a class="jxr_linenumber" name="L41" href="#L41">41</a>  <em class="jxr_javadoccomment"> */</em>
 <a class="jxr_linenumber" name="L42" href="#L42">42</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/cli/Option.html">Option</a> <strong class="jxr_keyword">implements</strong> Cloneable, Serializable
 <a class="jxr_linenumber" name="L43" href="#L43">43</a>  {
@@ -423,597 +423,606 @@
 <a class="jxr_linenumber" name="L415" href="#L415">415</a> 
 <a class="jxr_linenumber" name="L416" href="#L416">416</a>     <em class="jxr_javadoccomment">/** </em>
 <a class="jxr_linenumber" name="L417" href="#L417">417</a> <em class="jxr_javadoccomment">     * Returns the number of argument values this Option can take.</em>
-<a class="jxr_linenumber" name="L418" href="#L418">418</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L419" href="#L419">419</a> <em class="jxr_javadoccomment">     * @return num the number of argument values</em>
-<a class="jxr_linenumber" name="L420" href="#L420">420</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L421" href="#L421">421</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> getArgs()
-<a class="jxr_linenumber" name="L422" href="#L422">422</a>     {
-<a class="jxr_linenumber" name="L423" href="#L423">423</a>         <strong class="jxr_keyword">return</strong> numberOfArgs;
-<a class="jxr_linenumber" name="L424" href="#L424">424</a>     }
-<a class="jxr_linenumber" name="L425" href="#L425">425</a> 
-<a class="jxr_linenumber" name="L426" href="#L426">426</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L427" href="#L427">427</a> <em class="jxr_javadoccomment">     * Adds the specified value to this Option.</em>
-<a class="jxr_linenumber" name="L428" href="#L428">428</a> <em class="jxr_javadoccomment">     * </em>
-<a class="jxr_linenumber" name="L429" href="#L429">429</a> <em class="jxr_javadoccomment">     * @param value is a/the value of this Option</em>
-<a class="jxr_linenumber" name="L430" href="#L430">430</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L431" href="#L431">431</a>     <strong class="jxr_keyword">void</strong> addValueForProcessing(String value)
-<a class="jxr_linenumber" name="L432" href="#L432">432</a>     {
-<a class="jxr_linenumber" name="L433" href="#L433">433</a>         <strong class="jxr_keyword">if</strong> (numberOfArgs == UNINITIALIZED)
-<a class="jxr_linenumber" name="L434" href="#L434">434</a>         {
-<a class="jxr_linenumber" name="L435" href="#L435">435</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> RuntimeException(<span class="jxr_string">"NO_ARGS_ALLOWED"</span>);
-<a class="jxr_linenumber" name="L436" href="#L436">436</a>         }
-<a class="jxr_linenumber" name="L437" href="#L437">437</a>         processValue(value);
-<a class="jxr_linenumber" name="L438" href="#L438">438</a>     }
-<a class="jxr_linenumber" name="L439" href="#L439">439</a> 
-<a class="jxr_linenumber" name="L440" href="#L440">440</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L441" href="#L441">441</a> <em class="jxr_javadoccomment">     * Processes the value.  If this Option has a value separator</em>
-<a class="jxr_linenumber" name="L442" href="#L442">442</a> <em class="jxr_javadoccomment">     * the value will have to be parsed into individual tokens.  When</em>
-<a class="jxr_linenumber" name="L443" href="#L443">443</a> <em class="jxr_javadoccomment">     * n-1 tokens have been processed and there are more value separators</em>
-<a class="jxr_linenumber" name="L444" href="#L444">444</a> <em class="jxr_javadoccomment">     * in the value, parsing is ceased and the remaining characters are</em>
-<a class="jxr_linenumber" name="L445" href="#L445">445</a> <em class="jxr_javadoccomment">     * added as a single token.</em>
-<a class="jxr_linenumber" name="L446" href="#L446">446</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L447" href="#L447">447</a> <em class="jxr_javadoccomment">     * @param value The String to be processed.</em>
-<a class="jxr_linenumber" name="L448" href="#L448">448</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L449" href="#L449">449</a> <em class="jxr_javadoccomment">     * @since 1.0.1</em>
-<a class="jxr_linenumber" name="L450" href="#L450">450</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L451" href="#L451">451</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> processValue(String value)
-<a class="jxr_linenumber" name="L452" href="#L452">452</a>     {
-<a class="jxr_linenumber" name="L453" href="#L453">453</a>         <em class="jxr_comment">// this Option has a separator character</em>
-<a class="jxr_linenumber" name="L454" href="#L454">454</a>         <strong class="jxr_keyword">if</strong> (hasValueSeparator())
-<a class="jxr_linenumber" name="L455" href="#L455">455</a>         {
-<a class="jxr_linenumber" name="L456" href="#L456">456</a>             <em class="jxr_comment">// get the separator character</em>
-<a class="jxr_linenumber" name="L457" href="#L457">457</a>             <strong class="jxr_keyword">char</strong> sep = getValueSeparator();
-<a class="jxr_linenumber" name="L458" href="#L458">458</a> 
-<a class="jxr_linenumber" name="L459" href="#L459">459</a>             <em class="jxr_comment">// store the index for the value separator</em>
-<a class="jxr_linenumber" name="L460" href="#L460">460</a>             <strong class="jxr_keyword">int</strong> index = value.indexOf(sep);
-<a class="jxr_linenumber" name="L461" href="#L461">461</a> 
-<a class="jxr_linenumber" name="L462" href="#L462">462</a>             <em class="jxr_comment">// while there are more value separators</em>
-<a class="jxr_linenumber" name="L463" href="#L463">463</a>             <strong class="jxr_keyword">while</strong> (index != -1)
-<a class="jxr_linenumber" name="L464" href="#L464">464</a>             {
-<a class="jxr_linenumber" name="L465" href="#L465">465</a>                 <em class="jxr_comment">// next value to be added </em>
-<a class="jxr_linenumber" name="L466" href="#L466">466</a>                 <strong class="jxr_keyword">if</strong> (values.size() == numberOfArgs - 1)
-<a class="jxr_linenumber" name="L467" href="#L467">467</a>                 {
-<a class="jxr_linenumber" name="L468" href="#L468">468</a>                     <strong class="jxr_keyword">break</strong>;
-<a class="jxr_linenumber" name="L469" href="#L469">469</a>                 }
+<a class="jxr_linenumber" name="L418" href="#L418">418</a> <em class="jxr_javadoccomment">     * </em>
+<a class="jxr_linenumber" name="L419" href="#L419">419</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L420" href="#L420">420</a> <em class="jxr_javadoccomment">     * A value equal to the constant {@link #UNINITIALIZED} (= -1) indicates</em>
+<a class="jxr_linenumber" name="L421" href="#L421">421</a> <em class="jxr_javadoccomment">     * the number of arguments has not been specified.</em>
+<a class="jxr_linenumber" name="L422" href="#L422">422</a> <em class="jxr_javadoccomment">     * A value equal to the constant {@link #UNLIMITED_VALUES} (= -2) indicates</em>
+<a class="jxr_linenumber" name="L423" href="#L423">423</a> <em class="jxr_javadoccomment">     * that this options takes an unlimited amount of values.</em>
+<a class="jxr_linenumber" name="L424" href="#L424">424</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="L425" href="#L425">425</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L426" href="#L426">426</a> <em class="jxr_javadoccomment">     * @return num the number of argument values</em>
+<a class="jxr_linenumber" name="L427" href="#L427">427</a> <em class="jxr_javadoccomment">     * @see #UNINITIALIZED</em>
+<a class="jxr_linenumber" name="L428" href="#L428">428</a> <em class="jxr_javadoccomment">     * @see #UNLIMITED_VALUES</em>
+<a class="jxr_linenumber" name="L429" href="#L429">429</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L430" href="#L430">430</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> getArgs()
+<a class="jxr_linenumber" name="L431" href="#L431">431</a>     {
+<a class="jxr_linenumber" name="L432" href="#L432">432</a>         <strong class="jxr_keyword">return</strong> numberOfArgs;
+<a class="jxr_linenumber" name="L433" href="#L433">433</a>     }
+<a class="jxr_linenumber" name="L434" href="#L434">434</a> 
+<a class="jxr_linenumber" name="L435" href="#L435">435</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L436" href="#L436">436</a> <em class="jxr_javadoccomment">     * Adds the specified value to this Option.</em>
+<a class="jxr_linenumber" name="L437" href="#L437">437</a> <em class="jxr_javadoccomment">     * </em>
+<a class="jxr_linenumber" name="L438" href="#L438">438</a> <em class="jxr_javadoccomment">     * @param value is a/the value of this Option</em>
+<a class="jxr_linenumber" name="L439" href="#L439">439</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L440" href="#L440">440</a>     <strong class="jxr_keyword">void</strong> addValueForProcessing(String value)
+<a class="jxr_linenumber" name="L441" href="#L441">441</a>     {
+<a class="jxr_linenumber" name="L442" href="#L442">442</a>         <strong class="jxr_keyword">if</strong> (numberOfArgs == UNINITIALIZED)
+<a class="jxr_linenumber" name="L443" href="#L443">443</a>         {
+<a class="jxr_linenumber" name="L444" href="#L444">444</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> RuntimeException(<span class="jxr_string">"NO_ARGS_ALLOWED"</span>);
+<a class="jxr_linenumber" name="L445" href="#L445">445</a>         }
+<a class="jxr_linenumber" name="L446" href="#L446">446</a>         processValue(value);
+<a class="jxr_linenumber" name="L447" href="#L447">447</a>     }
+<a class="jxr_linenumber" name="L448" href="#L448">448</a> 
+<a class="jxr_linenumber" name="L449" href="#L449">449</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L450" href="#L450">450</a> <em class="jxr_javadoccomment">     * Processes the value.  If this Option has a value separator</em>
+<a class="jxr_linenumber" name="L451" href="#L451">451</a> <em class="jxr_javadoccomment">     * the value will have to be parsed into individual tokens.  When</em>
+<a class="jxr_linenumber" name="L452" href="#L452">452</a> <em class="jxr_javadoccomment">     * n-1 tokens have been processed and there are more value separators</em>
+<a class="jxr_linenumber" name="L453" href="#L453">453</a> <em class="jxr_javadoccomment">     * in the value, parsing is ceased and the remaining characters are</em>
+<a class="jxr_linenumber" name="L454" href="#L454">454</a> <em class="jxr_javadoccomment">     * added as a single token.</em>
+<a class="jxr_linenumber" name="L455" href="#L455">455</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L456" href="#L456">456</a> <em class="jxr_javadoccomment">     * @param value The String to be processed.</em>
+<a class="jxr_linenumber" name="L457" href="#L457">457</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L458" href="#L458">458</a> <em class="jxr_javadoccomment">     * @since 1.0.1</em>
+<a class="jxr_linenumber" name="L459" href="#L459">459</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L460" href="#L460">460</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> processValue(String value)
+<a class="jxr_linenumber" name="L461" href="#L461">461</a>     {
+<a class="jxr_linenumber" name="L462" href="#L462">462</a>         <em class="jxr_comment">// this Option has a separator character</em>
+<a class="jxr_linenumber" name="L463" href="#L463">463</a>         <strong class="jxr_keyword">if</strong> (hasValueSeparator())
+<a class="jxr_linenumber" name="L464" href="#L464">464</a>         {
+<a class="jxr_linenumber" name="L465" href="#L465">465</a>             <em class="jxr_comment">// get the separator character</em>
+<a class="jxr_linenumber" name="L466" href="#L466">466</a>             <strong class="jxr_keyword">char</strong> sep = getValueSeparator();
+<a class="jxr_linenumber" name="L467" href="#L467">467</a> 
+<a class="jxr_linenumber" name="L468" href="#L468">468</a>             <em class="jxr_comment">// store the index for the value separator</em>
+<a class="jxr_linenumber" name="L469" href="#L469">469</a>             <strong class="jxr_keyword">int</strong> index = value.indexOf(sep);
 <a class="jxr_linenumber" name="L470" href="#L470">470</a> 
-<a class="jxr_linenumber" name="L471" href="#L471">471</a>                 <em class="jxr_comment">// store</em>
-<a class="jxr_linenumber" name="L472" href="#L472">472</a>                 add(value.substring(0, index));
-<a class="jxr_linenumber" name="L473" href="#L473">473</a> 
-<a class="jxr_linenumber" name="L474" href="#L474">474</a>                 <em class="jxr_comment">// parse</em>
-<a class="jxr_linenumber" name="L475" href="#L475">475</a>                 value = value.substring(index + 1);
-<a class="jxr_linenumber" name="L476" href="#L476">476</a> 
-<a class="jxr_linenumber" name="L477" href="#L477">477</a>                 <em class="jxr_comment">// get new index</em>
-<a class="jxr_linenumber" name="L478" href="#L478">478</a>                 index = value.indexOf(sep);
-<a class="jxr_linenumber" name="L479" href="#L479">479</a>             }
-<a class="jxr_linenumber" name="L480" href="#L480">480</a>         }
-<a class="jxr_linenumber" name="L481" href="#L481">481</a> 
-<a class="jxr_linenumber" name="L482" href="#L482">482</a>         <em class="jxr_comment">// store the actual value or the last value that has been parsed</em>
-<a class="jxr_linenumber" name="L483" href="#L483">483</a>         add(value);
-<a class="jxr_linenumber" name="L484" href="#L484">484</a>     }
+<a class="jxr_linenumber" name="L471" href="#L471">471</a>             <em class="jxr_comment">// while there are more value separators</em>
+<a class="jxr_linenumber" name="L472" href="#L472">472</a>             <strong class="jxr_keyword">while</strong> (index != -1)
+<a class="jxr_linenumber" name="L473" href="#L473">473</a>             {
+<a class="jxr_linenumber" name="L474" href="#L474">474</a>                 <em class="jxr_comment">// next value to be added </em>
+<a class="jxr_linenumber" name="L475" href="#L475">475</a>                 <strong class="jxr_keyword">if</strong> (values.size() == numberOfArgs - 1)
+<a class="jxr_linenumber" name="L476" href="#L476">476</a>                 {
+<a class="jxr_linenumber" name="L477" href="#L477">477</a>                     <strong class="jxr_keyword">break</strong>;
+<a class="jxr_linenumber" name="L478" href="#L478">478</a>                 }
+<a class="jxr_linenumber" name="L479" href="#L479">479</a> 
+<a class="jxr_linenumber" name="L480" href="#L480">480</a>                 <em class="jxr_comment">// store</em>
+<a class="jxr_linenumber" name="L481" href="#L481">481</a>                 add(value.substring(0, index));
+<a class="jxr_linenumber" name="L482" href="#L482">482</a> 
+<a class="jxr_linenumber" name="L483" href="#L483">483</a>                 <em class="jxr_comment">// parse</em>
+<a class="jxr_linenumber" name="L484" href="#L484">484</a>                 value = value.substring(index + 1);
 <a class="jxr_linenumber" name="L485" href="#L485">485</a> 
-<a class="jxr_linenumber" name="L486" href="#L486">486</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L487" href="#L487">487</a> <em class="jxr_javadoccomment">     * Add the value to this Option.  If the number of arguments</em>
-<a class="jxr_linenumber" name="L488" href="#L488">488</a> <em class="jxr_javadoccomment">     * is greater than zero and there is enough space in the list then</em>
-<a class="jxr_linenumber" name="L489" href="#L489">489</a> <em class="jxr_javadoccomment">     * add the value.  Otherwise, throw a runtime exception.</em>
-<a class="jxr_linenumber" name="L490" href="#L490">490</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L491" href="#L491">491</a> <em class="jxr_javadoccomment">     * @param value The value to be added to this Option</em>
-<a class="jxr_linenumber" name="L492" href="#L492">492</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L493" href="#L493">493</a> <em class="jxr_javadoccomment">     * @since 1.0.1</em>
-<a class="jxr_linenumber" name="L494" href="#L494">494</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L495" href="#L495">495</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> add(String value)
-<a class="jxr_linenumber" name="L496" href="#L496">496</a>     {
-<a class="jxr_linenumber" name="L497" href="#L497">497</a>         <strong class="jxr_keyword">if</strong> (!acceptsArg())
-<a class="jxr_linenumber" name="L498" href="#L498">498</a>         {
-<a class="jxr_linenumber" name="L499" href="#L499">499</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> RuntimeException(<span class="jxr_string">"Cannot add value, list full."</span>);
-<a class="jxr_linenumber" name="L500" href="#L500">500</a>         }
-<a class="jxr_linenumber" name="L501" href="#L501">501</a> 
-<a class="jxr_linenumber" name="L502" href="#L502">502</a>         <em class="jxr_comment">// store value</em>
-<a class="jxr_linenumber" name="L503" href="#L503">503</a>         values.add(value);
-<a class="jxr_linenumber" name="L504" href="#L504">504</a>     }
-<a class="jxr_linenumber" name="L505" href="#L505">505</a> 
-<a class="jxr_linenumber" name="L506" href="#L506">506</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L507" href="#L507">507</a> <em class="jxr_javadoccomment">     * Returns the specified value of this Option or </em>
-<a class="jxr_linenumber" name="L508" href="#L508">508</a> <em class="jxr_javadoccomment">     * &lt;code&gt;null&lt;/code&gt; if there is no value.</em>
-<a class="jxr_linenumber" name="L509" href="#L509">509</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L510" href="#L510">510</a> <em class="jxr_javadoccomment">     * @return the value/first value of this Option or </em>
-<a class="jxr_linenumber" name="L511" href="#L511">511</a> <em class="jxr_javadoccomment">     * &lt;code&gt;null&lt;/code&gt; if there is no value.</em>
-<a class="jxr_linenumber" name="L512" href="#L512">512</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L513" href="#L513">513</a>     <strong class="jxr_keyword">public</strong> String getValue()
-<a class="jxr_linenumber" name="L514" href="#L514">514</a>     {
-<a class="jxr_linenumber" name="L515" href="#L515">515</a>         <strong class="jxr_keyword">return</strong> hasNoValues() ? <strong class="jxr_keyword">null</strong> : values.get(0);
-<a class="jxr_linenumber" name="L516" href="#L516">516</a>     }
-<a class="jxr_linenumber" name="L517" href="#L517">517</a> 
-<a class="jxr_linenumber" name="L518" href="#L518">518</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L519" href="#L519">519</a> <em class="jxr_javadoccomment">     * Returns the specified value of this Option or </em>
+<a class="jxr_linenumber" name="L486" href="#L486">486</a>                 <em class="jxr_comment">// get new index</em>
+<a class="jxr_linenumber" name="L487" href="#L487">487</a>                 index = value.indexOf(sep);
+<a class="jxr_linenumber" name="L488" href="#L488">488</a>             }
+<a class="jxr_linenumber" name="L489" href="#L489">489</a>         }
+<a class="jxr_linenumber" name="L490" href="#L490">490</a> 
+<a class="jxr_linenumber" name="L491" href="#L491">491</a>         <em class="jxr_comment">// store the actual value or the last value that has been parsed</em>
+<a class="jxr_linenumber" name="L492" href="#L492">492</a>         add(value);
+<a class="jxr_linenumber" name="L493" href="#L493">493</a>     }
+<a class="jxr_linenumber" name="L494" href="#L494">494</a> 
+<a class="jxr_linenumber" name="L495" href="#L495">495</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L496" href="#L496">496</a> <em class="jxr_javadoccomment">     * Add the value to this Option.  If the number of arguments</em>
+<a class="jxr_linenumber" name="L497" href="#L497">497</a> <em class="jxr_javadoccomment">     * is greater than zero and there is enough space in the list then</em>
+<a class="jxr_linenumber" name="L498" href="#L498">498</a> <em class="jxr_javadoccomment">     * add the value.  Otherwise, throw a runtime exception.</em>
+<a class="jxr_linenumber" name="L499" href="#L499">499</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L500" href="#L500">500</a> <em class="jxr_javadoccomment">     * @param value The value to be added to this Option</em>
+<a class="jxr_linenumber" name="L501" href="#L501">501</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L502" href="#L502">502</a> <em class="jxr_javadoccomment">     * @since 1.0.1</em>
+<a class="jxr_linenumber" name="L503" href="#L503">503</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L504" href="#L504">504</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> add(String value)
+<a class="jxr_linenumber" name="L505" href="#L505">505</a>     {
+<a class="jxr_linenumber" name="L506" href="#L506">506</a>         <strong class="jxr_keyword">if</strong> (!acceptsArg())
+<a class="jxr_linenumber" name="L507" href="#L507">507</a>         {
+<a class="jxr_linenumber" name="L508" href="#L508">508</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> RuntimeException(<span class="jxr_string">"Cannot add value, list full."</span>);
+<a class="jxr_linenumber" name="L509" href="#L509">509</a>         }
+<a class="jxr_linenumber" name="L510" href="#L510">510</a> 
+<a class="jxr_linenumber" name="L511" href="#L511">511</a>         <em class="jxr_comment">// store value</em>
+<a class="jxr_linenumber" name="L512" href="#L512">512</a>         values.add(value);
+<a class="jxr_linenumber" name="L513" href="#L513">513</a>     }
+<a class="jxr_linenumber" name="L514" href="#L514">514</a> 
+<a class="jxr_linenumber" name="L515" href="#L515">515</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L516" href="#L516">516</a> <em class="jxr_javadoccomment">     * Returns the specified value of this Option or </em>
+<a class="jxr_linenumber" name="L517" href="#L517">517</a> <em class="jxr_javadoccomment">     * &lt;code&gt;null&lt;/code&gt; if there is no value.</em>
+<a class="jxr_linenumber" name="L518" href="#L518">518</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L519" href="#L519">519</a> <em class="jxr_javadoccomment">     * @return the value/first value of this Option or </em>
 <a class="jxr_linenumber" name="L520" href="#L520">520</a> <em class="jxr_javadoccomment">     * &lt;code&gt;null&lt;/code&gt; if there is no value.</em>
-<a class="jxr_linenumber" name="L521" href="#L521">521</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L522" href="#L522">522</a> <em class="jxr_javadoccomment">     * @param index The index of the value to be returned.</em>
-<a class="jxr_linenumber" name="L523" href="#L523">523</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L524" href="#L524">524</a> <em class="jxr_javadoccomment">     * @return the specified value of this Option or </em>
-<a class="jxr_linenumber" name="L525" href="#L525">525</a> <em class="jxr_javadoccomment">     * &lt;code&gt;null&lt;/code&gt; if there is no value.</em>
-<a class="jxr_linenumber" name="L526" href="#L526">526</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L527" href="#L527">527</a> <em class="jxr_javadoccomment">     * @throws IndexOutOfBoundsException if index is less than 1</em>
-<a class="jxr_linenumber" name="L528" href="#L528">528</a> <em class="jxr_javadoccomment">     * or greater than the number of the values for this Option.</em>
-<a class="jxr_linenumber" name="L529" href="#L529">529</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L530" href="#L530">530</a>     <strong class="jxr_keyword">public</strong> String getValue(<strong class="jxr_keyword">int</strong> index) <strong class="jxr_keyword">throws</strong> IndexOutOfBoundsException
-<a class="jxr_linenumber" name="L531" href="#L531">531</a>     {
-<a class="jxr_linenumber" name="L532" href="#L532">532</a>         <strong class="jxr_keyword">return</strong> hasNoValues() ? <strong class="jxr_keyword">null</strong> : values.get(index);
-<a class="jxr_linenumber" name="L533" href="#L533">533</a>     }
-<a class="jxr_linenumber" name="L534" href="#L534">534</a> 
-<a class="jxr_linenumber" name="L535" href="#L535">535</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L536" href="#L536">536</a> <em class="jxr_javadoccomment">     * Returns the value/first value of this Option or the </em>
-<a class="jxr_linenumber" name="L537" href="#L537">537</a> <em class="jxr_javadoccomment">     * &lt;code&gt;defaultValue&lt;/code&gt; if there is no value.</em>
-<a class="jxr_linenumber" name="L538" href="#L538">538</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L539" href="#L539">539</a> <em class="jxr_javadoccomment">     * @param defaultValue The value to be returned if there</em>
-<a class="jxr_linenumber" name="L540" href="#L540">540</a> <em class="jxr_javadoccomment">     * is no value.</em>
-<a class="jxr_linenumber" name="L541" href="#L541">541</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L542" href="#L542">542</a> <em class="jxr_javadoccomment">     * @return the value/first value of this Option or the </em>
-<a class="jxr_linenumber" name="L543" href="#L543">543</a> <em class="jxr_javadoccomment">     * &lt;code&gt;defaultValue&lt;/code&gt; if there are no values.</em>
-<a class="jxr_linenumber" name="L544" href="#L544">544</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L545" href="#L545">545</a>     <strong class="jxr_keyword">public</strong> String getValue(String defaultValue)
-<a class="jxr_linenumber" name="L546" href="#L546">546</a>     {
-<a class="jxr_linenumber" name="L547" href="#L547">547</a>         String value = getValue();
-<a class="jxr_linenumber" name="L548" href="#L548">548</a> 
-<a class="jxr_linenumber" name="L549" href="#L549">549</a>         <strong class="jxr_keyword">return</strong> (value != <strong class="jxr_keyword">null</strong>) ? value : defaultValue;
-<a class="jxr_linenumber" name="L550" href="#L550">550</a>     }
-<a class="jxr_linenumber" name="L551" href="#L551">551</a> 
-<a class="jxr_linenumber" name="L552" href="#L552">552</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L553" href="#L553">553</a> <em class="jxr_javadoccomment">     * Return the values of this Option as a String array </em>
-<a class="jxr_linenumber" name="L554" href="#L554">554</a> <em class="jxr_javadoccomment">     * or null if there are no values</em>
-<a class="jxr_linenumber" name="L555" href="#L555">555</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L556" href="#L556">556</a> <em class="jxr_javadoccomment">     * @return the values of this Option as a String array </em>
-<a class="jxr_linenumber" name="L557" href="#L557">557</a> <em class="jxr_javadoccomment">     * or null if there are no values</em>
-<a class="jxr_linenumber" name="L558" href="#L558">558</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L559" href="#L559">559</a>     <strong class="jxr_keyword">public</strong> String[] getValues()
-<a class="jxr_linenumber" name="L560" href="#L560">560</a>     {
-<a class="jxr_linenumber" name="L561" href="#L561">561</a>         <strong class="jxr_keyword">return</strong> hasNoValues() ? <strong class="jxr_keyword">null</strong> : values.toArray(<strong class="jxr_keyword">new</strong> String[values.size()]);
-<a class="jxr_linenumber" name="L562" href="#L562">562</a>     }
-<a class="jxr_linenumber" name="L563" href="#L563">563</a> 
-<a class="jxr_linenumber" name="L564" href="#L564">564</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L565" href="#L565">565</a> <em class="jxr_javadoccomment">     * @return the values of this Option as a List</em>
+<a class="jxr_linenumber" name="L521" href="#L521">521</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L522" href="#L522">522</a>     <strong class="jxr_keyword">public</strong> String getValue()
+<a class="jxr_linenumber" name="L523" href="#L523">523</a>     {
+<a class="jxr_linenumber" name="L524" href="#L524">524</a>         <strong class="jxr_keyword">return</strong> hasNoValues() ? <strong class="jxr_keyword">null</strong> : values.get(0);
+<a class="jxr_linenumber" name="L525" href="#L525">525</a>     }
+<a class="jxr_linenumber" name="L526" href="#L526">526</a> 
+<a class="jxr_linenumber" name="L527" href="#L527">527</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L528" href="#L528">528</a> <em class="jxr_javadoccomment">     * Returns the specified value of this Option or </em>
+<a class="jxr_linenumber" name="L529" href="#L529">529</a> <em class="jxr_javadoccomment">     * &lt;code&gt;null&lt;/code&gt; if there is no value.</em>
+<a class="jxr_linenumber" name="L530" href="#L530">530</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L531" href="#L531">531</a> <em class="jxr_javadoccomment">     * @param index The index of the value to be returned.</em>
+<a class="jxr_linenumber" name="L532" href="#L532">532</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L533" href="#L533">533</a> <em class="jxr_javadoccomment">     * @return the specified value of this Option or </em>
+<a class="jxr_linenumber" name="L534" href="#L534">534</a> <em class="jxr_javadoccomment">     * &lt;code&gt;null&lt;/code&gt; if there is no value.</em>
+<a class="jxr_linenumber" name="L535" href="#L535">535</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L536" href="#L536">536</a> <em class="jxr_javadoccomment">     * @throws IndexOutOfBoundsException if index is less than 1</em>
+<a class="jxr_linenumber" name="L537" href="#L537">537</a> <em class="jxr_javadoccomment">     * or greater than the number of the values for this Option.</em>
+<a class="jxr_linenumber" name="L538" href="#L538">538</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L539" href="#L539">539</a>     <strong class="jxr_keyword">public</strong> String getValue(<strong class="jxr_keyword">int</strong> index) <strong class="jxr_keyword">throws</strong> IndexOutOfBoundsException
+<a class="jxr_linenumber" name="L540" href="#L540">540</a>     {
+<a class="jxr_linenumber" name="L541" href="#L541">541</a>         <strong class="jxr_keyword">return</strong> hasNoValues() ? <strong class="jxr_keyword">null</strong> : values.get(index);
+<a class="jxr_linenumber" name="L542" href="#L542">542</a>     }
+<a class="jxr_linenumber" name="L543" href="#L543">543</a> 
+<a class="jxr_linenumber" name="L544" href="#L544">544</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L545" href="#L545">545</a> <em class="jxr_javadoccomment">     * Returns the value/first value of this Option or the </em>
+<a class="jxr_linenumber" name="L546" href="#L546">546</a> <em class="jxr_javadoccomment">     * &lt;code&gt;defaultValue&lt;/code&gt; if there is no value.</em>
+<a class="jxr_linenumber" name="L547" href="#L547">547</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L548" href="#L548">548</a> <em class="jxr_javadoccomment">     * @param defaultValue The value to be returned if there</em>
+<a class="jxr_linenumber" name="L549" href="#L549">549</a> <em class="jxr_javadoccomment">     * is no value.</em>
+<a class="jxr_linenumber" name="L550" href="#L550">550</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L551" href="#L551">551</a> <em class="jxr_javadoccomment">     * @return the value/first value of this Option or the </em>
+<a class="jxr_linenumber" name="L552" href="#L552">552</a> <em class="jxr_javadoccomment">     * &lt;code&gt;defaultValue&lt;/code&gt; if there are no values.</em>
+<a class="jxr_linenumber" name="L553" href="#L553">553</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L554" href="#L554">554</a>     <strong class="jxr_keyword">public</strong> String getValue(String defaultValue)
+<a class="jxr_linenumber" name="L555" href="#L555">555</a>     {
+<a class="jxr_linenumber" name="L556" href="#L556">556</a>         String value = getValue();
+<a class="jxr_linenumber" name="L557" href="#L557">557</a> 
+<a class="jxr_linenumber" name="L558" href="#L558">558</a>         <strong class="jxr_keyword">return</strong> (value != <strong class="jxr_keyword">null</strong>) ? value : defaultValue;
+<a class="jxr_linenumber" name="L559" href="#L559">559</a>     }
+<a class="jxr_linenumber" name="L560" href="#L560">560</a> 
+<a class="jxr_linenumber" name="L561" href="#L561">561</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L562" href="#L562">562</a> <em class="jxr_javadoccomment">     * Return the values of this Option as a String array </em>
+<a class="jxr_linenumber" name="L563" href="#L563">563</a> <em class="jxr_javadoccomment">     * or null if there are no values</em>
+<a class="jxr_linenumber" name="L564" href="#L564">564</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L565" href="#L565">565</a> <em class="jxr_javadoccomment">     * @return the values of this Option as a String array </em>
 <a class="jxr_linenumber" name="L566" href="#L566">566</a> <em class="jxr_javadoccomment">     * or null if there are no values</em>
 <a class="jxr_linenumber" name="L567" href="#L567">567</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L568" href="#L568">568</a>     <strong class="jxr_keyword">public</strong> List&lt;String&gt; getValuesList()
+<a class="jxr_linenumber" name="L568" href="#L568">568</a>     <strong class="jxr_keyword">public</strong> String[] getValues()
 <a class="jxr_linenumber" name="L569" href="#L569">569</a>     {
-<a class="jxr_linenumber" name="L570" href="#L570">570</a>         <strong class="jxr_keyword">return</strong> values;
+<a class="jxr_linenumber" name="L570" href="#L570">570</a>         <strong class="jxr_keyword">return</strong> hasNoValues() ? <strong class="jxr_keyword">null</strong> : values.toArray(<strong class="jxr_keyword">new</strong> String[values.size()]);
 <a class="jxr_linenumber" name="L571" href="#L571">571</a>     }
 <a class="jxr_linenumber" name="L572" href="#L572">572</a> 
-<a class="jxr_linenumber" name="L573" href="#L573">573</a>     <em class="jxr_javadoccomment">/** </em>
-<a class="jxr_linenumber" name="L574" href="#L574">574</a> <em class="jxr_javadoccomment">     * Dump state, suitable for debugging.</em>
-<a class="jxr_linenumber" name="L575" href="#L575">575</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L576" href="#L576">576</a> <em class="jxr_javadoccomment">     * @return Stringified form of this object</em>
-<a class="jxr_linenumber" name="L577" href="#L577">577</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L578" href="#L578">578</a>     @Override
-<a class="jxr_linenumber" name="L579" href="#L579">579</a>     <strong class="jxr_keyword">public</strong> String toString()
-<a class="jxr_linenumber" name="L580" href="#L580">580</a>     {
-<a class="jxr_linenumber" name="L581" href="#L581">581</a>         StringBuilder buf = <strong class="jxr_keyword">new</strong> StringBuilder().append(<span class="jxr_string">"[ option: "</span>);
-<a class="jxr_linenumber" name="L582" href="#L582">582</a> 
-<a class="jxr_linenumber" name="L583" href="#L583">583</a>         buf.append(opt);
-<a class="jxr_linenumber" name="L584" href="#L584">584</a> 
-<a class="jxr_linenumber" name="L585" href="#L585">585</a>         <strong class="jxr_keyword">if</strong> (longOpt != <strong class="jxr_keyword">null</strong>)
-<a class="jxr_linenumber" name="L586" href="#L586">586</a>         {
-<a class="jxr_linenumber" name="L587" href="#L587">587</a>             buf.append(<span class="jxr_string">" "</span>).append(longOpt);
-<a class="jxr_linenumber" name="L588" href="#L588">588</a>         }
-<a class="jxr_linenumber" name="L589" href="#L589">589</a> 
-<a class="jxr_linenumber" name="L590" href="#L590">590</a>         buf.append(<span class="jxr_string">" "</span>);
+<a class="jxr_linenumber" name="L573" href="#L573">573</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L574" href="#L574">574</a> <em class="jxr_javadoccomment">     * @return the values of this Option as a List</em>
+<a class="jxr_linenumber" name="L575" href="#L575">575</a> <em class="jxr_javadoccomment">     * or null if there are no values</em>
+<a class="jxr_linenumber" name="L576" href="#L576">576</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L577" href="#L577">577</a>     <strong class="jxr_keyword">public</strong> List&lt;String&gt; getValuesList()
+<a class="jxr_linenumber" name="L578" href="#L578">578</a>     {
+<a class="jxr_linenumber" name="L579" href="#L579">579</a>         <strong class="jxr_keyword">return</strong> values;
+<a class="jxr_linenumber" name="L580" href="#L580">580</a>     }
+<a class="jxr_linenumber" name="L581" href="#L581">581</a> 
+<a class="jxr_linenumber" name="L582" href="#L582">582</a>     <em class="jxr_javadoccomment">/** </em>
+<a class="jxr_linenumber" name="L583" href="#L583">583</a> <em class="jxr_javadoccomment">     * Dump state, suitable for debugging.</em>
+<a class="jxr_linenumber" name="L584" href="#L584">584</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L585" href="#L585">585</a> <em class="jxr_javadoccomment">     * @return Stringified form of this object</em>
+<a class="jxr_linenumber" name="L586" href="#L586">586</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L587" href="#L587">587</a>     @Override
+<a class="jxr_linenumber" name="L588" href="#L588">588</a>     <strong class="jxr_keyword">public</strong> String toString()
+<a class="jxr_linenumber" name="L589" href="#L589">589</a>     {
+<a class="jxr_linenumber" name="L590" href="#L590">590</a>         StringBuilder buf = <strong class="jxr_keyword">new</strong> StringBuilder().append(<span class="jxr_string">"[ option: "</span>);
 <a class="jxr_linenumber" name="L591" href="#L591">591</a> 
-<a class="jxr_linenumber" name="L592" href="#L592">592</a>         <strong class="jxr_keyword">if</strong> (hasArgs())
-<a class="jxr_linenumber" name="L593" href="#L593">593</a>         {
-<a class="jxr_linenumber" name="L594" href="#L594">594</a>             buf.append(<span class="jxr_string">"[ARG...]"</span>);
-<a class="jxr_linenumber" name="L595" href="#L595">595</a>         }
-<a class="jxr_linenumber" name="L596" href="#L596">596</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (hasArg())
-<a class="jxr_linenumber" name="L597" href="#L597">597</a>         {
-<a class="jxr_linenumber" name="L598" href="#L598">598</a>             buf.append(<span class="jxr_string">" [ARG]"</span>);
-<a class="jxr_linenumber" name="L599" href="#L599">599</a>         }
+<a class="jxr_linenumber" name="L592" href="#L592">592</a>         buf.append(opt);
+<a class="jxr_linenumber" name="L593" href="#L593">593</a> 
+<a class="jxr_linenumber" name="L594" href="#L594">594</a>         <strong class="jxr_keyword">if</strong> (longOpt != <strong class="jxr_keyword">null</strong>)
+<a class="jxr_linenumber" name="L595" href="#L595">595</a>         {
+<a class="jxr_linenumber" name="L596" href="#L596">596</a>             buf.append(<span class="jxr_string">" "</span>).append(longOpt);
+<a class="jxr_linenumber" name="L597" href="#L597">597</a>         }
+<a class="jxr_linenumber" name="L598" href="#L598">598</a> 
+<a class="jxr_linenumber" name="L599" href="#L599">599</a>         buf.append(<span class="jxr_string">" "</span>);
 <a class="jxr_linenumber" name="L600" href="#L600">600</a> 
-<a class="jxr_linenumber" name="L601" href="#L601">601</a>         buf.append(<span class="jxr_string">" :: "</span>).append(description);
-<a class="jxr_linenumber" name="L602" href="#L602">602</a> 
-<a class="jxr_linenumber" name="L603" href="#L603">603</a>         <strong class="jxr_keyword">if</strong> (type != <strong class="jxr_keyword">null</strong>)
-<a class="jxr_linenumber" name="L604" href="#L604">604</a>         {
-<a class="jxr_linenumber" name="L605" href="#L605">605</a>             buf.append(<span class="jxr_string">" :: "</span>).append(type);
-<a class="jxr_linenumber" name="L606" href="#L606">606</a>         }
-<a class="jxr_linenumber" name="L607" href="#L607">607</a> 
-<a class="jxr_linenumber" name="L608" href="#L608">608</a>         buf.append(<span class="jxr_string">" ]"</span>);
+<a class="jxr_linenumber" name="L601" href="#L601">601</a>         <strong class="jxr_keyword">if</strong> (hasArgs())
+<a class="jxr_linenumber" name="L602" href="#L602">602</a>         {
+<a class="jxr_linenumber" name="L603" href="#L603">603</a>             buf.append(<span class="jxr_string">"[ARG...]"</span>);
+<a class="jxr_linenumber" name="L604" href="#L604">604</a>         }
+<a class="jxr_linenumber" name="L605" href="#L605">605</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (hasArg())
+<a class="jxr_linenumber" name="L606" href="#L606">606</a>         {
+<a class="jxr_linenumber" name="L607" href="#L607">607</a>             buf.append(<span class="jxr_string">" [ARG]"</span>);
+<a class="jxr_linenumber" name="L608" href="#L608">608</a>         }
 <a class="jxr_linenumber" name="L609" href="#L609">609</a> 
-<a class="jxr_linenumber" name="L610" href="#L610">610</a>         <strong class="jxr_keyword">return</strong> buf.toString();
-<a class="jxr_linenumber" name="L611" href="#L611">611</a>     }
-<a class="jxr_linenumber" name="L612" href="#L612">612</a> 
-<a class="jxr_linenumber" name="L613" href="#L613">613</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L614" href="#L614">614</a> <em class="jxr_javadoccomment">     * Returns whether this Option has any values.</em>
-<a class="jxr_linenumber" name="L615" href="#L615">615</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L616" href="#L616">616</a> <em class="jxr_javadoccomment">     * @return whether this Option has any values.</em>
-<a class="jxr_linenumber" name="L617" href="#L617">617</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L618" href="#L618">618</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> hasNoValues()
-<a class="jxr_linenumber" name="L619" href="#L619">619</a>     {
-<a class="jxr_linenumber" name="L620" href="#L620">620</a>         <strong class="jxr_keyword">return</strong> values.isEmpty();
-<a class="jxr_linenumber" name="L621" href="#L621">621</a>     }
-<a class="jxr_linenumber" name="L622" href="#L622">622</a> 
-<a class="jxr_linenumber" name="L623" href="#L623">623</a>     @Override
-<a class="jxr_linenumber" name="L624" href="#L624">624</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> equals(Object o)
-<a class="jxr_linenumber" name="L625" href="#L625">625</a>     {
-<a class="jxr_linenumber" name="L626" href="#L626">626</a>         <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong> == o)
-<a class="jxr_linenumber" name="L627" href="#L627">627</a>         {
-<a class="jxr_linenumber" name="L628" href="#L628">628</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="L629" href="#L629">629</a>         }
-<a class="jxr_linenumber" name="L630" href="#L630">630</a>         <strong class="jxr_keyword">if</strong> (o == <strong class="jxr_keyword">null</strong> || getClass() != o.getClass())
-<a class="jxr_linenumber" name="L631" href="#L631">631</a>         {
-<a class="jxr_linenumber" name="L632" href="#L632">632</a>             <strong class="jxr_keyword">return</strong> false;
-<a class="jxr_linenumber" name="L633" href="#L633">633</a>         }
-<a class="jxr_linenumber" name="L634" href="#L634">634</a> 
-<a class="jxr_linenumber" name="L635" href="#L635">635</a>         <a href="../../../../org/apache/commons/cli/Option.html">Option</a> option = (Option) o;
-<a class="jxr_linenumber" name="L636" href="#L636">636</a> 
-<a class="jxr_linenumber" name="L637" href="#L637">637</a> 
-<a class="jxr_linenumber" name="L638" href="#L638">638</a>         <strong class="jxr_keyword">if</strong> (opt != <strong class="jxr_keyword">null</strong> ? !opt.equals(option.opt) : option.opt != <strong class="jxr_keyword">null</strong>)
-<a class="jxr_linenumber" name="L639" href="#L639">639</a>         {
-<a class="jxr_linenumber" name="L640" href="#L640">640</a>             <strong class="jxr_keyword">return</strong> false;
-<a class="jxr_linenumber" name="L641" href="#L641">641</a>         }
-<a class="jxr_linenumber" name="L642" href="#L642">642</a>         <strong class="jxr_keyword">if</strong> (longOpt != <strong class="jxr_keyword">null</strong> ? !longOpt.equals(option.longOpt) : option.longOpt != <strong class="jxr_keyword">null</strong>)
-<a class="jxr_linenumber" name="L643" href="#L643">643</a>         {
-<a class="jxr_linenumber" name="L644" href="#L644">644</a>             <strong class="jxr_keyword">return</strong> false;
-<a class="jxr_linenumber" name="L645" href="#L645">645</a>         }
+<a class="jxr_linenumber" name="L610" href="#L610">610</a>         buf.append(<span class="jxr_string">" :: "</span>).append(description);
+<a class="jxr_linenumber" name="L611" href="#L611">611</a> 
+<a class="jxr_linenumber" name="L612" href="#L612">612</a>         <strong class="jxr_keyword">if</strong> (type != <strong class="jxr_keyword">null</strong>)
+<a class="jxr_linenumber" name="L613" href="#L613">613</a>         {
+<a class="jxr_linenumber" name="L614" href="#L614">614</a>             buf.append(<span class="jxr_string">" :: "</span>).append(type);
+<a class="jxr_linenumber" name="L615" href="#L615">615</a>         }
+<a class="jxr_linenumber" name="L616" href="#L616">616</a> 
+<a class="jxr_linenumber" name="L617" href="#L617">617</a>         buf.append(<span class="jxr_string">" ]"</span>);
+<a class="jxr_linenumber" name="L618" href="#L618">618</a> 
+<a class="jxr_linenumber" name="L619" href="#L619">619</a>         <strong class="jxr_keyword">return</strong> buf.toString();
+<a class="jxr_linenumber" name="L620" href="#L620">620</a>     }
+<a class="jxr_linenumber" name="L621" href="#L621">621</a> 
+<a class="jxr_linenumber" name="L622" href="#L622">622</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L623" href="#L623">623</a> <em class="jxr_javadoccomment">     * Returns whether this Option has any values.</em>
+<a class="jxr_linenumber" name="L624" href="#L624">624</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L625" href="#L625">625</a> <em class="jxr_javadoccomment">     * @return whether this Option has any values.</em>
+<a class="jxr_linenumber" name="L626" href="#L626">626</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L627" href="#L627">627</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> hasNoValues()
+<a class="jxr_linenumber" name="L628" href="#L628">628</a>     {
+<a class="jxr_linenumber" name="L629" href="#L629">629</a>         <strong class="jxr_keyword">return</strong> values.isEmpty();
+<a class="jxr_linenumber" name="L630" href="#L630">630</a>     }
+<a class="jxr_linenumber" name="L631" href="#L631">631</a> 
+<a class="jxr_linenumber" name="L632" href="#L632">632</a>     @Override
+<a class="jxr_linenumber" name="L633" href="#L633">633</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> equals(Object o)
+<a class="jxr_linenumber" name="L634" href="#L634">634</a>     {
+<a class="jxr_linenumber" name="L635" href="#L635">635</a>         <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong> == o)
+<a class="jxr_linenumber" name="L636" href="#L636">636</a>         {
+<a class="jxr_linenumber" name="L637" href="#L637">637</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="L638" href="#L638">638</a>         }
+<a class="jxr_linenumber" name="L639" href="#L639">639</a>         <strong class="jxr_keyword">if</strong> (o == <strong class="jxr_keyword">null</strong> || getClass() != o.getClass())
+<a class="jxr_linenumber" name="L640" href="#L640">640</a>         {
+<a class="jxr_linenumber" name="L641" href="#L641">641</a>             <strong class="jxr_keyword">return</strong> false;
+<a class="jxr_linenumber" name="L642" href="#L642">642</a>         }
+<a class="jxr_linenumber" name="L643" href="#L643">643</a> 
+<a class="jxr_linenumber" name="L644" href="#L644">644</a>         <a href="../../../../org/apache/commons/cli/Option.html">Option</a> option = (Option) o;
+<a class="jxr_linenumber" name="L645" href="#L645">645</a> 
 <a class="jxr_linenumber" name="L646" href="#L646">646</a> 
-<a class="jxr_linenumber" name="L647" href="#L647">647</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="L648" href="#L648">648</a>     }
-<a class="jxr_linenumber" name="L649" href="#L649">649</a> 
-<a class="jxr_linenumber" name="L650" href="#L650">650</a>     @Override
-<a class="jxr_linenumber" name="L651" href="#L651">651</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> hashCode()
-<a class="jxr_linenumber" name="L652" href="#L652">652</a>     {
-<a class="jxr_linenumber" name="L653" href="#L653">653</a>         <strong class="jxr_keyword">int</strong> result;
-<a class="jxr_linenumber" name="L654" href="#L654">654</a>         result = opt != <strong class="jxr_keyword">null</strong> ? opt.hashCode() : 0;
-<a class="jxr_linenumber" name="L655" href="#L655">655</a>         result = 31 * result + (longOpt != <strong class="jxr_keyword">null</strong> ? longOpt.hashCode() : 0);
-<a class="jxr_linenumber" name="L656" href="#L656">656</a>         <strong class="jxr_keyword">return</strong> result;
+<a class="jxr_linenumber" name="L647" href="#L647">647</a>         <strong class="jxr_keyword">if</strong> (opt != <strong class="jxr_keyword">null</strong> ? !opt.equals(option.opt) : option.opt != <strong class="jxr_keyword">null</strong>)
+<a class="jxr_linenumber" name="L648" href="#L648">648</a>         {
+<a class="jxr_linenumber" name="L649" href="#L649">649</a>             <strong class="jxr_keyword">return</strong> false;
+<a class="jxr_linenumber" name="L650" href="#L650">650</a>         }
+<a class="jxr_linenumber" name="L651" href="#L651">651</a>         <strong class="jxr_keyword">if</strong> (longOpt != <strong class="jxr_keyword">null</strong> ? !longOpt.equals(option.longOpt) : option.longOpt != <strong class="jxr_keyword">null</strong>)
+<a class="jxr_linenumber" name="L652" href="#L652">652</a>         {
+<a class="jxr_linenumber" name="L653" href="#L653">653</a>             <strong class="jxr_keyword">return</strong> false;
+<a class="jxr_linenumber" name="L654" href="#L654">654</a>         }
+<a class="jxr_linenumber" name="L655" href="#L655">655</a> 
+<a class="jxr_linenumber" name="L656" href="#L656">656</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
 <a class="jxr_linenumber" name="L657" href="#L657">657</a>     }
 <a class="jxr_linenumber" name="L658" href="#L658">658</a> 
-<a class="jxr_linenumber" name="L659" href="#L659">659</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L660" href="#L660">660</a> <em class="jxr_javadoccomment">     * A rather odd clone method - due to incorrect code in 1.0 it is public </em>
-<a class="jxr_linenumber" name="L661" href="#L661">661</a> <em class="jxr_javadoccomment">     * and in 1.1 rather than throwing a CloneNotSupportedException it throws </em>
-<a class="jxr_linenumber" name="L662" href="#L662">662</a> <em class="jxr_javadoccomment">     * a RuntimeException so as to maintain backwards compat at the API level. </em>
-<a class="jxr_linenumber" name="L663" href="#L663">663</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L664" href="#L664">664</a> <em class="jxr_javadoccomment">     * After calling this method, it is very likely you will want to call </em>
-<a class="jxr_linenumber" name="L665" href="#L665">665</a> <em class="jxr_javadoccomment">     * clearValues(). </em>
-<a class="jxr_linenumber" name="L666" href="#L666">666</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L667" href="#L667">667</a> <em class="jxr_javadoccomment">     * @return a clone of this Option instance</em>
-<a class="jxr_linenumber" name="L668" href="#L668">668</a> <em class="jxr_javadoccomment">     * @throws RuntimeException if a {@link CloneNotSupportedException} has been thrown</em>
-<a class="jxr_linenumber" name="L669" href="#L669">669</a> <em class="jxr_javadoccomment">     * by {@code super.clone()}</em>
-<a class="jxr_linenumber" name="L670" href="#L670">670</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L671" href="#L671">671</a>     @Override
-<a class="jxr_linenumber" name="L672" href="#L672">672</a>     <strong class="jxr_keyword">public</strong> Object clone()
-<a class="jxr_linenumber" name="L673" href="#L673">673</a>     {
-<a class="jxr_linenumber" name="L674" href="#L674">674</a>         <strong class="jxr_keyword">try</strong>
-<a class="jxr_linenumber" name="L675" href="#L675">675</a>         {
-<a class="jxr_linenumber" name="L676" href="#L676">676</a>             <a href="../../../../org/apache/commons/cli/Option.html">Option</a> option = (Option) <strong class="jxr_keyword">super</strong>.clone();
-<a class="jxr_linenumber" name="L677" href="#L677">677</a>             option.values = <strong class="jxr_keyword">new</strong> ArrayList&lt;String&gt;(values);
-<a class="jxr_linenumber" name="L678" href="#L678">678</a>             <strong class="jxr_keyword">return</strong> option;
-<a class="jxr_linenumber" name="L679" href="#L679">679</a>         }
-<a class="jxr_linenumber" name="L680" href="#L680">680</a>         <strong class="jxr_keyword">catch</strong> (CloneNotSupportedException cnse)
-<a class="jxr_linenumber" name="L681" href="#L681">681</a>         {
-<a class="jxr_linenumber" name="L682" href="#L682">682</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> RuntimeException(<span class="jxr_string">"A CloneNotSupportedException was thrown: "</span> + cnse.getMessage());
-<a class="jxr_linenumber" name="L683" href="#L683">683</a>         }
-<a class="jxr_linenumber" name="L684" href="#L684">684</a>     }
-<a class="jxr_linenumber" name="L685" href="#L685">685</a> 
-<a class="jxr_linenumber" name="L686" href="#L686">686</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L687" href="#L687">687</a> <em class="jxr_javadoccomment">     * Clear the Option values. After a parse is complete, these are left with</em>
-<a class="jxr_linenumber" name="L688" href="#L688">688</a> <em class="jxr_javadoccomment">     * data in them and they need clearing if another parse is done.</em>
-<a class="jxr_linenumber" name="L689" href="#L689">689</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L690" href="#L690">690</a> <em class="jxr_javadoccomment">     * See: &lt;a href="https://issues.apache.org/jira/browse/CLI-71"&gt;CLI-71&lt;/a&gt;</em>
-<a class="jxr_linenumber" name="L691" href="#L691">691</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L692" href="#L692">692</a>     <strong class="jxr_keyword">void</strong> clearValues()
-<a class="jxr_linenumber" name="L693" href="#L693">693</a>     {
-<a class="jxr_linenumber" name="L694" href="#L694">694</a>         values.clear();
-<a class="jxr_linenumber" name="L695" href="#L695">695</a>     }
-<a class="jxr_linenumber" name="L696" href="#L696">696</a> 
-<a class="jxr_linenumber" name="L697" href="#L697">697</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L698" href="#L698">698</a> <em class="jxr_javadoccomment">     * This method is not intended to be used. It was a piece of internal </em>
-<a class="jxr_linenumber" name="L699" href="#L699">699</a> <em class="jxr_javadoccomment">     * API that was made public in 1.0. It currently throws an UnsupportedOperationException.</em>
-<a class="jxr_linenumber" name="L700" href="#L700">700</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L701" href="#L701">701</a> <em class="jxr_javadoccomment">     * @param value the value to add</em>
-<a class="jxr_linenumber" name="L702" href="#L702">702</a> <em class="jxr_javadoccomment">     * @return always throws an {@link UnsupportedOperationException}</em>
-<a class="jxr_linenumber" name="L703" href="#L703">703</a> <em class="jxr_javadoccomment">     * @throws UnsupportedOperationException always</em>
-<a class="jxr_linenumber" name="L704" href="#L704">704</a> <em class="jxr_javadoccomment">     * @deprecated</em>
-<a class="jxr_linenumber" name="L705" href="#L705">705</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L706" href="#L706">706</a>     @Deprecated
-<a class="jxr_linenumber" name="L707" href="#L707">707</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> addValue(String value)
-<a class="jxr_linenumber" name="L708" href="#L708">708</a>     {
-<a class="jxr_linenumber" name="L709" href="#L709">709</a>         <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> UnsupportedOperationException(<span class="jxr_string">"The addValue method is not intended for client use. "</span>
-<a class="jxr_linenumber" name="L710" href="#L710">710</a>                 + <span class="jxr_string">"Subclasses should use the addValueForProcessing method instead. "</span>);
-<a class="jxr_linenumber" name="L711" href="#L711">711</a>     }
-<a class="jxr_linenumber" name="L712" href="#L712">712</a> 
-<a class="jxr_linenumber" name="L713" href="#L713">713</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L714" href="#L714">714</a> <em class="jxr_javadoccomment">     * Tells if the option can accept more arguments.</em>
-<a class="jxr_linenumber" name="L715" href="#L715">715</a> <em class="jxr_javadoccomment">     * </em>
-<a class="jxr_linenumber" name="L716" href="#L716">716</a> <em class="jxr_javadoccomment">     * @return false if the maximum number of arguments is reached</em>
-<a class="jxr_linenumber" name="L717" href="#L717">717</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
-<a class="jxr_linenumber" name="L718" href="#L718">718</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L719" href="#L719">719</a>     <strong class="jxr_keyword">boolean</strong> acceptsArg()
-<a class="jxr_linenumber" name="L720" href="#L720">720</a>     {
-<a class="jxr_linenumber" name="L721" href="#L721">721</a>         <strong class="jxr_keyword">return</strong> (hasArg() || hasArgs() || hasOptionalArg()) &amp;&amp; (numberOfArgs &lt;= 0 || values.size() &lt; numberOfArgs);
-<a class="jxr_linenumber" name="L722" href="#L722">722</a>     }
-<a class="jxr_linenumber" name="L723" href="#L723">723</a> 
-<a class="jxr_linenumber" name="L724" href="#L724">724</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L725" href="#L725">725</a> <em class="jxr_javadoccomment">     * Tells if the option requires more arguments to be valid.</em>
-<a class="jxr_linenumber" name="L726" href="#L726">726</a> <em class="jxr_javadoccomment">     * </em>
-<a class="jxr_linenumber" name="L727" href="#L727">727</a> <em class="jxr_javadoccomment">     * @return false if the option doesn't require more arguments</em>
-<a class="jxr_linenumber" name="L728" href="#L728">728</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
-<a class="jxr_linenumber" name="L729" href="#L729">729</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L730" href="#L730">730</a>     <strong class="jxr_keyword">boolean</strong> requiresArg()
-<a class="jxr_linenumber" name="L731" href="#L731">731</a>     {
-<a class="jxr_linenumber" name="L732" href="#L732">732</a>         <strong class="jxr_keyword">if</strong> (optionalArg)
-<a class="jxr_linenumber" name="L733" href="#L733">733</a>         {
-<a class="jxr_linenumber" name="L734" href="#L734">734</a>             <strong class="jxr_keyword">return</strong> false;
-<a class="jxr_linenumber" name="L735" href="#L735">735</a>         }
-<a class="jxr_linenumber" name="L736" href="#L736">736</a>         <strong class="jxr_keyword">if</strong> (numberOfArgs == UNLIMITED_VALUES)
-<a class="jxr_linenumber" name="L737" href="#L737">737</a>         {
-<a class="jxr_linenumber" name="L738" href="#L738">738</a>             <strong class="jxr_keyword">return</strong> values.isEmpty();
-<a class="jxr_linenumber" name="L739" href="#L739">739</a>         }
-<a class="jxr_linenumber" name="L740" href="#L740">740</a>         <strong class="jxr_keyword">return</strong> acceptsArg();
-<a class="jxr_linenumber" name="L741" href="#L741">741</a>     }
-<a class="jxr_linenumber" name="L742" href="#L742">742</a>     
-<a class="jxr_linenumber" name="L743" href="#L743">743</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L744" href="#L744">744</a> <em class="jxr_javadoccomment">     * Returns a {@link Builder} to create an {@link Option} using descriptive</em>
-<a class="jxr_linenumber" name="L745" href="#L745">745</a> <em class="jxr_javadoccomment">     * methods.  </em>
-<a class="jxr_linenumber" name="L746" href="#L746">746</a> <em class="jxr_javadoccomment">     * </em>
-<a class="jxr_linenumber" name="L747" href="#L747">747</a> <em class="jxr_javadoccomment">     * @return a new {@link Builder} instance</em>
-<a class="jxr_linenumber" name="L748" href="#L748">748</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
-<a class="jxr_linenumber" name="L749" href="#L749">749</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L750" href="#L750">750</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> builder()
-<a class="jxr_linenumber" name="L751" href="#L751">751</a>     {
-<a class="jxr_linenumber" name="L752" href="#L752">752</a>         <strong class="jxr_keyword">return</strong> builder(<strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="L753" href="#L753">753</a>     }
-<a class="jxr_linenumber" name="L754" href="#L754">754</a>     
-<a class="jxr_linenumber" name="L755" href="#L755">755</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L756" href="#L756">756</a> <em class="jxr_javadoccomment">     * Returns a {@link Builder} to create an {@link Option} using descriptive</em>
-<a class="jxr_linenumber" name="L757" href="#L757">757</a> <em class="jxr_javadoccomment">     * methods.  </em>
-<a class="jxr_linenumber" name="L758" href="#L758">758</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L759" href="#L759">759</a> <em class="jxr_javadoccomment">     * @param opt short representation of the option</em>
-<a class="jxr_linenumber" name="L760" href="#L760">760</a> <em class="jxr_javadoccomment">     * @return a new {@link Builder} instance</em>
-<a class="jxr_linenumber" name="L761" href="#L761">761</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if there are any non valid Option characters in {@code opt}</em>
-<a class="jxr_linenumber" name="L762" href="#L762">762</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
-<a class="jxr_linenumber" name="L763" href="#L763">763</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L764" href="#L764">764</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> builder(<strong class="jxr_keyword">final</strong> String opt)
-<a class="jxr_linenumber" name="L765" href="#L765">765</a>     {
-<a class="jxr_linenumber" name="L766" href="#L766">766</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a>(opt);
-<a class="jxr_linenumber" name="L767" href="#L767">767</a>     }
-<a class="jxr_linenumber" name="L768" href="#L768">768</a>     
-<a class="jxr_linenumber" name="L769" href="#L769">769</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L770" href="#L770">770</a> <em class="jxr_javadoccomment">     * A nested builder class to create &lt;code&gt;Option&lt;/code&gt; instances</em>
-<a class="jxr_linenumber" name="L771" href="#L771">771</a> <em class="jxr_javadoccomment">     * using descriptive methods.</em>
-<a class="jxr_linenumber" name="L772" href="#L772">772</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L773" href="#L773">773</a> <em class="jxr_javadoccomment">     * Example usage:</em>
-<a class="jxr_linenumber" name="L774" href="#L774">774</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
-<a class="jxr_linenumber" name="L775" href="#L775">775</a> <em class="jxr_javadoccomment">     * Option option = Option.builder("a")</em>
-<a class="jxr_linenumber" name="L776" href="#L776">776</a> <em class="jxr_javadoccomment">     *     .required(true)</em>
-<a class="jxr_linenumber" name="L777" href="#L777">777</a> <em class="jxr_javadoccomment">     *     .longOpt("arg-name")</em>
-<a class="jxr_linenumber" name="L778" href="#L778">778</a> <em class="jxr_javadoccomment">     *     .build();</em>
-<a class="jxr_linenumber" name="L779" href="#L779">779</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
-<a class="jxr_linenumber" name="L780" href="#L780">780</a> <em class="jxr_javadoccomment">     * </em>
-<a class="jxr_linenumber" name="L781" href="#L781">781</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
-<a class="jxr_linenumber" name="L782" href="#L782">782</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L783" href="#L783">783</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> 
-<a class="jxr_linenumber" name="L784" href="#L784">784</a>     {
-<a class="jxr_linenumber" name="L785" href="#L785">785</a>         <em class="jxr_javadoccomment">/** the name of the option */</em>
-<a class="jxr_linenumber" name="L786" href="#L786">786</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String opt;
-<a class="jxr_linenumber" name="L787" href="#L787">787</a> 
-<a class="jxr_linenumber" name="L788" href="#L788">788</a>         <em class="jxr_javadoccomment">/** description of the option */</em>
-<a class="jxr_linenumber" name="L789" href="#L789">789</a>         <strong class="jxr_keyword">private</strong> String description;
-<a class="jxr_linenumber" name="L790" href="#L790">790</a> 
-<a class="jxr_linenumber" name="L791" href="#L791">791</a>         <em class="jxr_javadoccomment">/** the long representation of the option */</em>
-<a class="jxr_linenumber" name="L792" href="#L792">792</a>         <strong class="jxr_keyword">private</strong> String longOpt;
-<a class="jxr_linenumber" name="L793" href="#L793">793</a> 
-<a class="jxr_linenumber" name="L794" href="#L794">794</a>         <em class="jxr_javadoccomment">/** the name of the argument for this option */</em>
-<a class="jxr_linenumber" name="L795" href="#L795">795</a>         <strong class="jxr_keyword">private</strong> String argName;
+<a class="jxr_linenumber" name="L659" href="#L659">659</a>     @Override
+<a class="jxr_linenumber" name="L660" href="#L660">660</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> hashCode()
+<a class="jxr_linenumber" name="L661" href="#L661">661</a>     {
+<a class="jxr_linenumber" name="L662" href="#L662">662</a>         <strong class="jxr_keyword">int</strong> result;
+<a class="jxr_linenumber" name="L663" href="#L663">663</a>         result = opt != <strong class="jxr_keyword">null</strong> ? opt.hashCode() : 0;
+<a class="jxr_linenumber" name="L664" href="#L664">664</a>         result = 31 * result + (longOpt != <strong class="jxr_keyword">null</strong> ? longOpt.hashCode() : 0);
+<a class="jxr_linenumber" name="L665" href="#L665">665</a>         <strong class="jxr_keyword">return</strong> result;
+<a class="jxr_linenumber" name="L666" href="#L666">666</a>     }
+<a class="jxr_linenumber" name="L667" href="#L667">667</a> 
+<a class="jxr_linenumber" name="L668" href="#L668">668</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L669" href="#L669">669</a> <em class="jxr_javadoccomment">     * A rather odd clone method - due to incorrect code in 1.0 it is public </em>
+<a class="jxr_linenumber" name="L670" href="#L670">670</a> <em class="jxr_javadoccomment">     * and in 1.1 rather than throwing a CloneNotSupportedException it throws </em>
+<a class="jxr_linenumber" name="L671" href="#L671">671</a> <em class="jxr_javadoccomment">     * a RuntimeException so as to maintain backwards compat at the API level. </em>
+<a class="jxr_linenumber" name="L672" href="#L672">672</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L673" href="#L673">673</a> <em class="jxr_javadoccomment">     * After calling this method, it is very likely you will want to call </em>
+<a class="jxr_linenumber" name="L674" href="#L674">674</a> <em class="jxr_javadoccomment">     * clearValues(). </em>
+<a class="jxr_linenumber" name="L675" href="#L675">675</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L676" href="#L676">676</a> <em class="jxr_javadoccomment">     * @return a clone of this Option instance</em>
+<a class="jxr_linenumber" name="L677" href="#L677">677</a> <em class="jxr_javadoccomment">     * @throws RuntimeException if a {@link CloneNotSupportedException} has been thrown</em>
+<a class="jxr_linenumber" name="L678" href="#L678">678</a> <em class="jxr_javadoccomment">     * by {@code super.clone()}</em>
+<a class="jxr_linenumber" name="L679" href="#L679">679</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L680" href="#L680">680</a>     @Override
+<a class="jxr_linenumber" name="L681" href="#L681">681</a>     <strong class="jxr_keyword">public</strong> Object clone()
+<a class="jxr_linenumber" name="L682" href="#L682">682</a>     {
+<a class="jxr_linenumber" name="L683" href="#L683">683</a>         <strong class="jxr_keyword">try</strong>
+<a class="jxr_linenumber" name="L684" href="#L684">684</a>         {
+<a class="jxr_linenumber" name="L685" href="#L685">685</a>             <a href="../../../../org/apache/commons/cli/Option.html">Option</a> option = (Option) <strong class="jxr_keyword">super</strong>.clone();
+<a class="jxr_linenumber" name="L686" href="#L686">686</a>             option.values = <strong class="jxr_keyword">new</strong> ArrayList&lt;String&gt;(values);
+<a class="jxr_linenumber" name="L687" href="#L687">687</a>             <strong class="jxr_keyword">return</strong> option;
+<a class="jxr_linenumber" name="L688" href="#L688">688</a>         }
+<a class="jxr_linenumber" name="L689" href="#L689">689</a>         <strong class="jxr_keyword">catch</strong> (CloneNotSupportedException cnse)
+<a class="jxr_linenumber" name="L690" href="#L690">690</a>         {
+<a class="jxr_linenumber" name="L691" href="#L691">691</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> RuntimeException(<span class="jxr_string">"A CloneNotSupportedException was thrown: "</span> + cnse.getMessage());
+<a class="jxr_linenumber" name="L692" href="#L692">692</a>         }
+<a class="jxr_linenumber" name="L693" href="#L693">693</a>     }
+<a class="jxr_linenumber" name="L694" href="#L694">694</a> 
+<a class="jxr_linenumber" name="L695" href="#L695">695</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L696" href="#L696">696</a> <em class="jxr_javadoccomment">     * Clear the Option values. After a parse is complete, these are left with</em>
+<a class="jxr_linenumber" name="L697" href="#L697">697</a> <em class="jxr_javadoccomment">     * data in them and they need clearing if another parse is done.</em>
+<a class="jxr_linenumber" name="L698" href="#L698">698</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L699" href="#L699">699</a> <em class="jxr_javadoccomment">     * See: &lt;a href="https://issues.apache.org/jira/browse/CLI-71"&gt;CLI-71&lt;/a&gt;</em>
+<a class="jxr_linenumber" name="L700" href="#L700">700</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L701" href="#L701">701</a>     <strong class="jxr_keyword">void</strong> clearValues()
+<a class="jxr_linenumber" name="L702" href="#L702">702</a>     {
+<a class="jxr_linenumber" name="L703" href="#L703">703</a>         values.clear();
+<a class="jxr_linenumber" name="L704" href="#L704">704</a>     }
+<a class="jxr_linenumber" name="L705" href="#L705">705</a> 
+<a class="jxr_linenumber" name="L706" href="#L706">706</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L707" href="#L707">707</a> <em class="jxr_javadoccomment">     * This method is not intended to be used. It was a piece of internal </em>
+<a class="jxr_linenumber" name="L708" href="#L708">708</a> <em class="jxr_javadoccomment">     * API that was made public in 1.0. It currently throws an UnsupportedOperationException.</em>
+<a class="jxr_linenumber" name="L709" href="#L709">709</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L710" href="#L710">710</a> <em class="jxr_javadoccomment">     * @param value the value to add</em>
+<a class="jxr_linenumber" name="L711" href="#L711">711</a> <em class="jxr_javadoccomment">     * @return always throws an {@link UnsupportedOperationException}</em>
+<a class="jxr_linenumber" name="L712" href="#L712">712</a> <em class="jxr_javadoccomment">     * @throws UnsupportedOperationException always</em>
+<a class="jxr_linenumber" name="L713" href="#L713">713</a> <em class="jxr_javadoccomment">     * @deprecated</em>
+<a class="jxr_linenumber" name="L714" href="#L714">714</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L715" href="#L715">715</a>     @Deprecated
+<a class="jxr_linenumber" name="L716" href="#L716">716</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> addValue(String value)
+<a class="jxr_linenumber" name="L717" href="#L717">717</a>     {
+<a class="jxr_linenumber" name="L718" href="#L718">718</a>         <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> UnsupportedOperationException(<span class="jxr_string">"The addValue method is not intended for client use. "</span>
+<a class="jxr_linenumber" name="L719" href="#L719">719</a>                 + <span class="jxr_string">"Subclasses should use the addValueForProcessing method instead. "</span>);
+<a class="jxr_linenumber" name="L720" href="#L720">720</a>     }
+<a class="jxr_linenumber" name="L721" href="#L721">721</a> 
+<a class="jxr_linenumber" name="L722" href="#L722">722</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L723" href="#L723">723</a> <em class="jxr_javadoccomment">     * Tells if the option can accept more arguments.</em>
+<a class="jxr_linenumber" name="L724" href="#L724">724</a> <em class="jxr_javadoccomment">     * </em>
+<a class="jxr_linenumber" name="L725" href="#L725">725</a> <em class="jxr_javadoccomment">     * @return false if the maximum number of arguments is reached</em>
+<a class="jxr_linenumber" name="L726" href="#L726">726</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
+<a class="jxr_linenumber" name="L727" href="#L727">727</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L728" href="#L728">728</a>     <strong class="jxr_keyword">boolean</strong> acceptsArg()
+<a class="jxr_linenumber" name="L729" href="#L729">729</a>     {
+<a class="jxr_linenumber" name="L730" href="#L730">730</a>         <strong class="jxr_keyword">return</strong> (hasArg() || hasArgs() || hasOptionalArg()) &amp;&amp; (numberOfArgs &lt;= 0 || values.size() &lt; numberOfArgs);
+<a class="jxr_linenumber" name="L731" href="#L731">731</a>     }
+<a class="jxr_linenumber" name="L732" href="#L732">732</a> 
+<a class="jxr_linenumber" name="L733" href="#L733">733</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L734" href="#L734">734</a> <em class="jxr_javadoccomment">     * Tells if the option requires more arguments to be valid.</em>
+<a class="jxr_linenumber" name="L735" href="#L735">735</a> <em class="jxr_javadoccomment">     * </em>
+<a class="jxr_linenumber" name="L736" href="#L736">736</a> <em class="jxr_javadoccomment">     * @return false if the option doesn't require more arguments</em>
+<a class="jxr_linenumber" name="L737" href="#L737">737</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
+<a class="jxr_linenumber" name="L738" href="#L738">738</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L739" href="#L739">739</a>     <strong class="jxr_keyword">boolean</strong> requiresArg()
+<a class="jxr_linenumber" name="L740" href="#L740">740</a>     {
+<a class="jxr_linenumber" name="L741" href="#L741">741</a>         <strong class="jxr_keyword">if</strong> (optionalArg)
+<a class="jxr_linenumber" name="L742" href="#L742">742</a>         {
+<a class="jxr_linenumber" name="L743" href="#L743">743</a>             <strong class="jxr_keyword">return</strong> false;
+<a class="jxr_linenumber" name="L744" href="#L744">744</a>         }
+<a class="jxr_linenumber" name="L745" href="#L745">745</a>         <strong class="jxr_keyword">if</strong> (numberOfArgs == UNLIMITED_VALUES)
+<a class="jxr_linenumber" name="L746" href="#L746">746</a>         {
+<a class="jxr_linenumber" name="L747" href="#L747">747</a>             <strong class="jxr_keyword">return</strong> values.isEmpty();
+<a class="jxr_linenumber" name="L748" href="#L748">748</a>         }
+<a class="jxr_linenumber" name="L749" href="#L749">749</a>         <strong class="jxr_keyword">return</strong> acceptsArg();
+<a class="jxr_linenumber" name="L750" href="#L750">750</a>     }
+<a class="jxr_linenumber" name="L751" href="#L751">751</a>     
+<a class="jxr_linenumber" name="L752" href="#L752">752</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L753" href="#L753">753</a> <em class="jxr_javadoccomment">     * Returns a {@link Builder} to create an {@link Option} using descriptive</em>
+<a class="jxr_linenumber" name="L754" href="#L754">754</a> <em class="jxr_javadoccomment">     * methods.  </em>
+<a class="jxr_linenumber" name="L755" href="#L755">755</a> <em class="jxr_javadoccomment">     * </em>
+<a class="jxr_linenumber" name="L756" href="#L756">756</a> <em class="jxr_javadoccomment">     * @return a new {@link Builder} instance</em>
+<a class="jxr_linenumber" name="L757" href="#L757">757</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
+<a class="jxr_linenumber" name="L758" href="#L758">758</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L759" href="#L759">759</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> builder()
+<a class="jxr_linenumber" name="L760" href="#L760">760</a>     {
+<a class="jxr_linenumber" name="L761" href="#L761">761</a>         <strong class="jxr_keyword">return</strong> builder(<strong class="jxr_keyword">null</strong>);
+<a class="jxr_linenumber" name="L762" href="#L762">762</a>     }
+<a class="jxr_linenumber" name="L763" href="#L763">763</a>     
+<a class="jxr_linenumber" name="L764" href="#L764">764</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L765" href="#L765">765</a> <em class="jxr_javadoccomment">     * Returns a {@link Builder} to create an {@link Option} using descriptive</em>
+<a class="jxr_linenumber" name="L766" href="#L766">766</a> <em class="jxr_javadoccomment">     * methods.  </em>
+<a class="jxr_linenumber" name="L767" href="#L767">767</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L768" href="#L768">768</a> <em class="jxr_javadoccomment">     * @param opt short representation of the option</em>
+<a class="jxr_linenumber" name="L769" href="#L769">769</a> <em class="jxr_javadoccomment">     * @return a new {@link Builder} instance</em>
+<a class="jxr_linenumber" name="L770" href="#L770">770</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if there are any non valid Option characters in {@code opt}</em>
+<a class="jxr_linenumber" name="L771" href="#L771">771</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
+<a class="jxr_linenumber" name="L772" href="#L772">772</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L773" href="#L773">773</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> builder(<strong class="jxr_keyword">final</strong> String opt)
+<a class="jxr_linenumber" name="L774" href="#L774">774</a>     {
+<a class="jxr_linenumber" name="L775" href="#L775">775</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a>(opt);
+<a class="jxr_linenumber" name="L776" href="#L776">776</a>     }
+<a class="jxr_linenumber" name="L777" href="#L777">777</a>     
+<a class="jxr_linenumber" name="L778" href="#L778">778</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L779" href="#L779">779</a> <em class="jxr_javadoccomment">     * A nested builder class to create &lt;code&gt;Option&lt;/code&gt; instances</em>
+<a class="jxr_linenumber" name="L780" href="#L780">780</a> <em class="jxr_javadoccomment">     * using descriptive methods.</em>
+<a class="jxr_linenumber" name="L781" href="#L781">781</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L782" href="#L782">782</a> <em class="jxr_javadoccomment">     * Example usage:</em>
+<a class="jxr_linenumber" name="L783" href="#L783">783</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
+<a class="jxr_linenumber" name="L784" href="#L784">784</a> <em class="jxr_javadoccomment">     * Option option = Option.builder("a")</em>
+<a class="jxr_linenumber" name="L785" href="#L785">785</a> <em class="jxr_javadoccomment">     *     .required(true)</em>
+<a class="jxr_linenumber" name="L786" href="#L786">786</a> <em class="jxr_javadoccomment">     *     .longOpt("arg-name")</em>
+<a class="jxr_linenumber" name="L787" href="#L787">787</a> <em class="jxr_javadoccomment">     *     .build();</em>
+<a class="jxr_linenumber" name="L788" href="#L788">788</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
+<a class="jxr_linenumber" name="L789" href="#L789">789</a> <em class="jxr_javadoccomment">     * </em>
+<a class="jxr_linenumber" name="L790" href="#L790">790</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
+<a class="jxr_linenumber" name="L791" href="#L791">791</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L792" href="#L792">792</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> 
+<a class="jxr_linenumber" name="L793" href="#L793">793</a>     {
+<a class="jxr_linenumber" name="L794" href="#L794">794</a>         <em class="jxr_javadoccomment">/** the name of the option */</em>
+<a class="jxr_linenumber" name="L795" href="#L795">795</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String opt;
 <a class="jxr_linenumber" name="L796" href="#L796">796</a> 
-<a class="jxr_linenumber" name="L797" href="#L797">797</a>         <em class="jxr_javadoccomment">/** specifies whether this option is required to be present */</em>
-<a class="jxr_linenumber" name="L798" href="#L798">798</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> required;
+<a class="jxr_linenumber" name="L797" href="#L797">797</a>         <em class="jxr_javadoccomment">/** description of the option */</em>
+<a class="jxr_linenumber" name="L798" href="#L798">798</a>         <strong class="jxr_keyword">private</strong> String description;
 <a class="jxr_linenumber" name="L799" href="#L799">799</a> 
-<a class="jxr_linenumber" name="L800" href="#L800">800</a>         <em class="jxr_javadoccomment">/** specifies whether the argument value of this Option is optional */</em>
-<a class="jxr_linenumber" name="L801" href="#L801">801</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> optionalArg;
+<a class="jxr_linenumber" name="L800" href="#L800">800</a>         <em class="jxr_javadoccomment">/** the long representation of the option */</em>
+<a class="jxr_linenumber" name="L801" href="#L801">801</a>         <strong class="jxr_keyword">private</strong> String longOpt;

[... 424 lines stripped ...]


Mime
View raw message