adaptj.util.OptionParser
Class OptionParser

java.lang.Object
  |
  +--adaptj.util.OptionParser.OptionParser

public class OptionParser
extends java.lang.Object


Constructor Summary
OptionParser(java.lang.String programCommand)
           
OptionParser(java.lang.String programCommand, java.lang.String header)
           
OptionParser(java.lang.String programCommand, java.lang.String header, java.lang.String footer)
           
 
Method Summary
 void addOption(Option option, int optionID)
           
 void aggregateNonOptions(boolean value)
           
 void combineShortSwitches(boolean value)
           
 void displayAsTable(boolean value)
           
 void equalIsSeparator(boolean value)
           
 Strings getHelpStrings()
           
 java.lang.String getUsageString(java.lang.String nonOptions)
           
 void interpretDoubleDash(boolean value)
           
 ParsedObject parse(java.lang.String[] args)
           
 void printHelp(java.io.PrintStream stream)
           
 void printHelp(java.io.PrintStream stream, java.lang.String nonOptions)
           
 void printHelp(java.io.PrintWriter writer)
           
 void printHelp(java.io.PrintWriter writer, java.lang.String nonOptions)
           
 void printUsage(java.io.PrintStream stream, java.lang.String nonOptions)
           
 void printUsage(java.io.PrintWriter writer, java.lang.String nonOptions)
           
 void returnDoubleDash(boolean value)
           
 void shortOptionNoSpace(boolean value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionParser

public OptionParser(java.lang.String programCommand)

OptionParser

public OptionParser(java.lang.String programCommand,
                    java.lang.String header)

OptionParser

public OptionParser(java.lang.String programCommand,
                    java.lang.String header,
                    java.lang.String footer)
Method Detail

addOption

public void addOption(Option option,
                      int optionID)

combineShortSwitches

public void combineShortSwitches(boolean value)

interpretDoubleDash

public void interpretDoubleDash(boolean value)

returnDoubleDash

public void returnDoubleDash(boolean value)

equalIsSeparator

public void equalIsSeparator(boolean value)

aggregateNonOptions

public void aggregateNonOptions(boolean value)

shortOptionNoSpace

public void shortOptionNoSpace(boolean value)

displayAsTable

public void displayAsTable(boolean value)

parse

public ParsedObject parse(java.lang.String[] args)
                   throws OptionProcessingException
OptionProcessingException

printHelp

public void printHelp(java.io.PrintStream stream)

printHelp

public void printHelp(java.io.PrintWriter writer)

printHelp

public void printHelp(java.io.PrintStream stream,
                      java.lang.String nonOptions)

printHelp

public void printHelp(java.io.PrintWriter writer,
                      java.lang.String nonOptions)

getHelpStrings

public Strings getHelpStrings()

printUsage

public void printUsage(java.io.PrintStream stream,
                       java.lang.String nonOptions)

printUsage

public void printUsage(java.io.PrintWriter writer,
                       java.lang.String nonOptions)

getUsageString

public java.lang.String getUsageString(java.lang.String nonOptions)