com.veromodo.tempo
Class CommandLineOptions

java.lang.Object
  extended by com.veromodo.tempo.CommandLineOptions
All Implemented Interfaces:
OptionMap

public class CommandLineOptions
extends java.lang.Object


Constructor Summary
CommandLineOptions(java.lang.String[] args)
           
 
Method Summary
 void addFile(java.lang.String fileName)
           
 void addOption(java.lang.String option)
           
 void addPluginURL(java.net.URL url)
           
 void addPrintStream(java.lang.String option, java.io.PrintStream value)
           
 void addUsage(java.util.Collection<java.lang.String> opts)
           
 void addValue(java.lang.String option, java.lang.String value)
           
 boolean getBooleanFor(java.lang.String key)
          true if the argument key was present in the command-line
 java.util.Vector<java.lang.String> getFiles()
           
 int getIntFor(java.lang.String key)
          the value given in the command-line arguments for key
 java.util.Vector<java.net.URL> getPluginURLs()
           
 java.io.PrintStream getPrintStreamFor(java.lang.String key)
           
 java.lang.String getStringFor(java.lang.String key)
           
 java.lang.String getUsage()
           
 boolean hasPluginURL()
           
 boolean hasValueFor(java.lang.String key)
           
 void setSearchPath(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineOptions

public CommandLineOptions(java.lang.String[] args)
Method Detail

getUsage

public java.lang.String getUsage()
Specified by:
getUsage in interface OptionMap

addPluginURL

public void addPluginURL(java.net.URL url)

getPluginURLs

public java.util.Vector<java.net.URL> getPluginURLs()
Specified by:
getPluginURLs in interface OptionMap

hasPluginURL

public boolean hasPluginURL()
Specified by:
hasPluginURL in interface OptionMap

addFile

public void addFile(java.lang.String fileName)
Specified by:
addFile in interface OptionMap

addOption

public void addOption(java.lang.String option)
Specified by:
addOption in interface OptionMap

addValue

public void addValue(java.lang.String option,
                     java.lang.String value)
Specified by:
addValue in interface OptionMap

addPrintStream

public void addPrintStream(java.lang.String option,
                           java.io.PrintStream value)
Specified by:
addPrintStream in interface OptionMap

setSearchPath

public void setSearchPath(java.lang.String path)

addUsage

public void addUsage(java.util.Collection<java.lang.String> opts)
Specified by:
addUsage in interface OptionMap

getBooleanFor

public boolean getBooleanFor(java.lang.String key)
Description copied from interface: OptionMap
true if the argument key was present in the command-line

Specified by:
getBooleanFor in interface OptionMap

getFiles

public java.util.Vector<java.lang.String> getFiles()
Specified by:
getFiles in interface OptionMap

getIntFor

public int getIntFor(java.lang.String key)
Description copied from interface: OptionMap
the value given in the command-line arguments for key

Specified by:
getIntFor in interface OptionMap

getPrintStreamFor

public java.io.PrintStream getPrintStreamFor(java.lang.String key)
Specified by:
getPrintStreamFor in interface OptionMap

getStringFor

public java.lang.String getStringFor(java.lang.String key)
Specified by:
getStringFor in interface OptionMap

hasValueFor

public boolean hasValueFor(java.lang.String key)
Specified by:
hasValueFor in interface OptionMap