/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
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <!--NewPage-->
- <HTML>
- <HEAD>
- <!-- Generated by javadoc (build 1.4.2_08) on Thu Aug 03 20:30:44 EDT 2006 -->
- <TITLE>
- UnflaggedOption (JSAP: the Java Simple Argument Parser)
- </TITLE>
- <META NAME="keywords" CONTENT="com.martiansoftware.jsap.UnflaggedOption class">
- <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
- <SCRIPT type="text/javascript">
- function windowTitle()
- {
- parent.document.title="UnflaggedOption (JSAP: the Java Simple Argument Parser)";
- }
- </SCRIPT>
- </HEAD>
- <BODY BGCOLOR="white" onload="windowTitle();">
- <!-- ========= START OF TOP NAVBAR ======= -->
- <A NAME="navbar_top"><!-- --></A>
- <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
- <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
- <TR>
- <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
- <A NAME="navbar_top_firstrow"><!-- --></A>
- <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
- <TR ALIGN="center" VALIGN="top">
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
- <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
- </TR>
- </TABLE>
- </TD>
- <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
- </EM>
- </TD>
- </TR>
- <TR>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../com/martiansoftware/jsap/TestUsageString.html" title="class in com.martiansoftware.jsap"><B>PREV CLASS</B></A>
- NEXT CLASS</FONT></TD>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>
- <A HREF="UnflaggedOption.html" target="_top"><B>NO FRAMES</B></A>
- <SCRIPT type="text/javascript">
- <!--
- if(window==top) {
- document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
- }
- //-->
- </SCRIPT>
- <NOSCRIPT>
- <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
- </NOSCRIPT>
- </FONT></TD>
- </TR>
- <TR>
- <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
- <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
- </TR>
- </TABLE>
- <A NAME="skip-navbar_top"></A>
- <!-- ========= END OF TOP NAVBAR ========= -->
- <HR>
- <!-- ======== START OF CLASS DATA ======== -->
- <H2>
- <FONT SIZE="-1">
- com.martiansoftware.jsap</FONT>
- <BR>
- Class UnflaggedOption</H2>
- <PRE>
- <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>
- <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>
- <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>
- <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>com.martiansoftware.jsap.UnflaggedOption</B>
- </PRE>
- <HR>
- <DL>
- <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>
- <P>
- An option whose meaning is derived from its <i>position in the argument
- list</i> rather than a flag
- that precedes it. UnflaggedOptions allow the parsing of command lines
- without flags, such as
- "compressfiles destinationFile file1 file2 file3 file4 ...", where
- "destinationFile" is the name of the
- file to create, and file1 through file 4 (and beyond) are the names of the
- files to compress. The JSAP
- that supports this command line has only two options defined: the first
- accepts a single destination file,
- and the second is "greedy," consuming the remaining unflagged options.
- <P>
- <P>
- <DL>
- <DT><B>Author:</B></DT>
- <DD><a href="http://www.martiansoftware.com/contact.html">Marty Lamb</a></DD>
- <DT><B>See Also:</B><DD><A HREF="../../../com/martiansoftware/jsap/FlaggedOption.html" title="class in com.martiansoftware.jsap"><CODE>FlaggedOption</CODE></A>,
- <A HREF="../../../com/martiansoftware/jsap/Option.html" title="class in com.martiansoftware.jsap"><CODE>Option</CODE></A></DL>
- <HR>
- <P>
- <!-- ======== NESTED CLASS SUMMARY ======== -->
- <!-- =========== FIELD SUMMARY =========== -->
- <!-- ======== CONSTRUCTOR SUMMARY ======== -->
- <A NAME="constructor_summary"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TD COLSPAN=2><FONT SIZE="+2">
- <B>Constructor Summary</B></FONT></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <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> id)</CODE>
- <BR>
- Creates a new UnflaggedOption with the specified unique ID.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <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> id,
- <A HREF="../../../com/martiansoftware/jsap/StringParser.html" title="class in com.martiansoftware.jsap">StringParser</A> stringParser,
- boolean required,
- <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> help)</CODE>
- <BR>
- A shortcut constructor that creates a new non-greedy UnflaggedOption with no default value
- and configures its most commonly used settings.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <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> id,
- <A HREF="../../../com/martiansoftware/jsap/StringParser.html" title="class in com.martiansoftware.jsap">StringParser</A> stringParser,
- <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> defaultValue,
- boolean required,
- boolean greedy)</CODE>
- <BR>
- A shortcut constructor that creates a new UnflaggedOption and configures
- its most commonly used settings.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <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> id,
- <A HREF="../../../com/martiansoftware/jsap/StringParser.html" title="class in com.martiansoftware.jsap">StringParser</A> stringParser,
- <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> defaultValue,
- boolean required,
- boolean greedy,
- <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> help)</CODE>
- <BR>
- A shortcut constructor that creates a new UnflaggedOption and configures
- its most commonly used settings.</TD>
- </TR>
- </TABLE>
-
- <!-- ========== METHOD SUMMARY =========== -->
- <A NAME="method_summary"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TD COLSPAN=2><FONT SIZE="+2">
- <B>Method Summary</B></FONT></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> <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>
- <TD><CODE><B><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#getSyntax()">getSyntax</A></B>()</CODE>
- <BR>
- Returns syntax instructions for this FlaggedOption.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> boolean</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#isGreedy()">isGreedy</A></B>()</CODE>
- <BR>
- Returns a boolean indicating whether this UnflaggedOption is greedy.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> <A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A></CODE></FONT></TD>
- <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> defaultValue)</CODE>
- <BR>
- Sets a default value for this parameter.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> <A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A></CODE></FONT></TD>
- <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>[] defaultValues)</CODE>
- <BR>
- Sets one or more default values for this parameter.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> <A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A></CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#setGreedy(boolean)">setGreedy</A></B>(boolean greedy)</CODE>
- <BR>
- Sets whether this UnflaggedOption is greedy.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> <A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A></CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#setList(boolean)">setList</A></B>(boolean isList)</CODE>
- <BR>
- Sets whether this UnflaggedOption is a list.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> <A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A></CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#setListSeparator(char)">setListSeparator</A></B>(char listSeparator)</CODE>
- <BR>
- Sets the list separator character for this UnflaggedOption.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> <A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A></CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html#setRequired(boolean)">setRequired</A></B>(boolean required)</CODE>
- <BR>
- Sets whether this UnflaggedOption is required.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> <A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A></CODE></FONT></TD>
- <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> stringParser)</CODE>
- <BR>
- Sets the StringParser to which this UnflaggedOption's parse() method
- should delegate.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> <A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A></CODE></FONT></TD>
- <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> usageName)</CODE>
- <BR>
- Sets the name that will be displayed when getUsage() is called</TD>
- </TR>
- </TABLE>
- <A NAME="methods_inherited_from_class_com.martiansoftware.jsap.Option"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
- <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>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <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>
- </TR>
- </TABLE>
- <A NAME="methods_inherited_from_class_com.martiansoftware.jsap.Parameter"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
- <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>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <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>
- </TR>
- </TABLE>
- <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
- <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>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <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>
- </TR>
- </TABLE>
-
- <P>
- <!-- ============ FIELD DETAIL =========== -->
- <!-- ========= CONSTRUCTOR DETAIL ======== -->
- <A NAME="constructor_detail"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TD COLSPAN=1><FONT SIZE="+2">
- <B>Constructor Detail</B></FONT></TD>
- </TR>
- </TABLE>
- <A NAME="UnflaggedOption(java.lang.String)"><!-- --></A><H3>
- UnflaggedOption</H3>
- <PRE>
- 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> id)</PRE>
- <DL>
- <DD>Creates a new UnflaggedOption with the specified unique ID.
- <P>
- <DT><B>Parameters:</B><DD><CODE>id</CODE> - the unique ID for this UnflaggedOption.</DL>
- <HR>
- <A NAME="UnflaggedOption(java.lang.String, com.martiansoftware.jsap.StringParser, java.lang.String, boolean, boolean, java.lang.String)"><!-- --></A><H3>
- UnflaggedOption</H3>
- <PRE>
- 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> id,
- <A HREF="../../../com/martiansoftware/jsap/StringParser.html" title="class in com.martiansoftware.jsap">StringParser</A> stringParser,
- <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> defaultValue,
- boolean required,
- boolean greedy,
- <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> help)</PRE>
- <DL>
- <DD>A shortcut constructor that creates a new UnflaggedOption and configures
- its most commonly used settings.
- <P>
- <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
- 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>
- <HR>
- <A NAME="UnflaggedOption(java.lang.String, com.martiansoftware.jsap.StringParser, java.lang.String, boolean, boolean)"><!-- --></A><H3>
- UnflaggedOption</H3>
- <PRE>
- 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> id,
- <A HREF="../../../com/martiansoftware/jsap/StringParser.html" title="class in com.martiansoftware.jsap">StringParser</A> stringParser,
- <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> defaultValue,
- boolean required,
- boolean greedy)</PRE>
- <DL>
- <DD>A shortcut constructor that creates a new UnflaggedOption and configures
- its most commonly used settings.
- <P>
- <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
- null).<DD><CODE>required</CODE> - if true, this UnflaggedOption is required.<DD><CODE>greedy</CODE> - if true, this UnflaggedOption is greedy.</DL>
- <HR>
- <A NAME="UnflaggedOption(java.lang.String, com.martiansoftware.jsap.StringParser, boolean, java.lang.String)"><!-- --></A><H3>
- UnflaggedOption</H3>
- <PRE>
- 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> id,
- <A HREF="../../../com/martiansoftware/jsap/StringParser.html" title="class in com.martiansoftware.jsap">StringParser</A> stringParser,
- boolean required,
- <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> help)</PRE>
- <DL>
- <DD>A shortcut constructor that creates a new non-greedy UnflaggedOption with no default value
- and configures its most commonly used settings.
- <P>
- <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>
- <!-- ============ METHOD DETAIL ========== -->
- <A NAME="method_detail"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TD COLSPAN=1><FONT SIZE="+2">
- <B>Method Detail</B></FONT></TD>
- </TR>
- </TABLE>
- <A NAME="setGreedy(boolean)"><!-- --></A><H3>
- setGreedy</H3>
- <PRE>
- public <A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A> <B>setGreedy</B>(boolean greedy)</PRE>
- <DL>
- <DD>Sets whether this UnflaggedOption is greedy. A greedy UnflaggedOption
- consumes all the remaining
- UnflaggedOptions from the argument list. As a result, only one greedy
- UnflaggedOption may be registered with
- a JSAP, and it must be the last UnflaggedOption registered.
- <P>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>greedy</CODE> - if true, this UnflaggedOption will be greedy.
- <DT><B>Returns:</B><DD>the modified UnflaggedOption</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="setUsageName(java.lang.String)"><!-- --></A><H3>
- setUsageName</H3>
- <PRE>
- 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> usageName)</PRE>
- <DL>
- <DD>Sets the name that will be displayed when getUsage() is called
- <P>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>usageName</CODE> - the name to use, or null if the id should be used (default)
- <DT><B>Returns:</B><DD>the modified UnflaggedOption</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="isGreedy()"><!-- --></A><H3>
- isGreedy</H3>
- <PRE>
- public boolean <B>isGreedy</B>()</PRE>
- <DL>
- <DD>Returns a boolean indicating whether this UnflaggedOption is greedy.
- <P>
- <DD><DL>
- <DT><B>Returns:</B><DD>a boolean indicating whether this UnflaggedOption is greedy.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getSyntax()"><!-- --></A><H3>
- getSyntax</H3>
- <PRE>
- 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>
- <DL>
- <DD>Returns syntax instructions for this FlaggedOption.
- <P>
- <DD><DL>
- <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>
- </DD>
- <DD><DL>
- <DT><B>Returns:</B><DD>syntax instructions for this FlaggedOption based upon its current
- configuration.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="setList(boolean)"><!-- --></A><H3>
- setList</H3>
- <PRE>
- public <A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A> <B>setList</B>(boolean isList)</PRE>
- <DL>
- <DD>Sets whether this UnflaggedOption is a list. Default behavior is
- JSAP.NOT_LIST.
- <P>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>isList</CODE> - if true, this Option is a list.
- <DT><B>Returns:</B><DD>the modified UnflaggedOption</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="setListSeparator(char)"><!-- --></A><H3>
- setListSeparator</H3>
- <PRE>
- public <A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A> <B>setListSeparator</B>(char listSeparator)</PRE>
- <DL>
- <DD>Sets the list separator character for this UnflaggedOption. The default
- list separator is JSAP.DEFAULT_LISTSEPARATOR.
- <P>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>listSeparator</CODE> - the list separator for this Option.
- <DT><B>Returns:</B><DD>the modified UnflaggedOption</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="setRequired(boolean)"><!-- --></A><H3>
- setRequired</H3>
- <PRE>
- public <A HREF="../../../com/martiansoftware/jsap/UnflaggedOption.html" title="class in com.martiansoftware.jsap">UnflaggedOption</A> <B>setRequired</B>(boolean required)</PRE>
- <DL>
- <DD>Sets whether this UnflaggedOption is required. Default is
- JSAP.NOT_REQUIRED.
- <P>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>required</CODE> - if true, this Option will be required.
- <DT><B>Returns:</B><DD>the modified UnflaggedOption</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="setStringParser(com.martiansoftware.jsap.StringParser)"><!-- --></A><H3>
- setStringParser</H3>
- <PRE>
- 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> stringParser)</PRE>
- <DL>
- <DD>Sets the StringParser to which this UnflaggedOption's parse() method
- should delegate.
- <P>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>stringParser</CODE> - the StringParser to which this Option's parse()
- method should delegate.
- <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>
- </DD>
- </DL>
- <HR>
- <A NAME="setDefault(java.lang.String)"><!-- --></A><H3>
- setDefault</H3>
- <PRE>
- 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> defaultValue)</PRE>
- <DL>
- <DD>Sets a default value for this parameter. The default is specified
- as a String, and is parsed as a single value specified on the
- command line. In other words, default values for "list"
- parameters or parameters allowing multiple declarations should be
- set using setDefault(String[]), as JSAP
- would otherwise treat the entire list of values as a single value.
- <P>
- <DD><DL>
- <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>
- </DD>
- </DL>
- <HR>
- <A NAME="setDefault(java.lang.String[])"><!-- --></A><H3>
- setDefault</H3>
- <PRE>
- 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>[] defaultValues)</PRE>
- <DL>
- <DD>Sets one or more default values for this parameter. This method
- should be used whenever a parameter has more than one default
- value.
- <P>
- <DD><DL>
- <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>
- </DD>
- </DL>
- <!-- ========= END OF CLASS DATA ========= -->
- <HR>
- <!-- ======= START OF BOTTOM NAVBAR ====== -->
- <A NAME="navbar_bottom"><!-- --></A>
- <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
- <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
- <TR>
- <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
- <A NAME="navbar_bottom_firstrow"><!-- --></A>
- <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
- <TR ALIGN="center" VALIGN="top">
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
- <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
- </TR>
- </TABLE>
- </TD>
- <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
- </EM>
- </TD>
- </TR>
- <TR>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../com/martiansoftware/jsap/TestUsageString.html" title="class in com.martiansoftware.jsap"><B>PREV CLASS</B></A>
- NEXT CLASS</FONT></TD>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>
- <A HREF="UnflaggedOption.html" target="_top"><B>NO FRAMES</B></A>
- <SCRIPT type="text/javascript">
- <!--
- if(window==top) {
- document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
- }
- //-->
- </SCRIPT>
- <NOSCRIPT>
- <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
- </NOSCRIPT>
- </FONT></TD>
- </TR>
- <TR>
- <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
- <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
- </TR>
- </TABLE>
- <A NAME="skip-navbar_bottom"></A>
- <!-- ======== END OF BOTTOM NAVBAR ======= -->
- <HR>
- Copyright © 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>
- </BODY>
- </HTML>