edu.pdx.starview.apps
Class CommandLineArgs

java.lang.Object
  extended byedu.pdx.starview.apps.CommandLineArgs

public class CommandLineArgs
extends java.lang.Object

This is a helper class for parsing "--XXXX YYYY" style command line arguements.

Author:
Dave Camarillo

Constructor Summary
CommandLineArgs(java.lang.String[] args)
          This will itterate thru the arguements and split out the key/value pairs of the command line opts.
 
Method Summary
 java.lang.Double getDouble(java.lang.String keyName)
           
 java.lang.Integer getInteger(java.lang.String keyName)
           
 java.lang.String getString(java.lang.String keyName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineArgs

public CommandLineArgs(java.lang.String[] args)
This will itterate thru the arguements and split out the key/value pairs of the command line opts.

Parameters:
args - The arguements that came in from the command line.
Method Detail

getDouble

public java.lang.Double getDouble(java.lang.String keyName)
Parameters:
keyName - The name of the arguement from the command line.
Returns:
A parsed Double object if the value can be parsed, null if it does not exist or can't be parsed.

getInteger

public java.lang.Integer getInteger(java.lang.String keyName)
Parameters:
keyName - The name of the arguement from the command line.
Returns:
A parsed Integer object if the value can be parsed, null if it does not exist or can't be parsed.

getString

public java.lang.String getString(java.lang.String keyName)
Parameters:
keyName - The name of the arguement from the command line.
Returns:
The value as a string object from the command line, null if the arguement didn't exist.