org.jfortune
Class getOpts

java.lang.Object
  extended byorg.jfortune.getOpts

public class getOpts
extends java.lang.Object

This class will analyse the args string array to check for all the options parsed.


Constructor Summary
getOpts(java.lang.String[] args)
          Constructor for getOpts.
 
Method Summary
 boolean getAllEqual()
          Tells us if we need to give each file the same probabillity.
 boolean getNoPrint()
          Tells us if we need to return all output instead of printing it on stdout.
 int getNumOpts()
          Returns the no. of command line options parsed.
 boolean getPrintFile()
          Tells us if we need to print the file name with the quote.
 boolean getPrintPrefs()
          Tells us if we need to print the probability for each file.
 boolean getPrintSyntax()
          Tells us if we need to print the Syntax for jfortune.
 boolean getPrintVersion()
          Tells us if we need to print the version information.
 java.util.ArrayList getRealArgs()
          Returns an arraylist of actual files we need to choose from for the quote.
 boolean getWait()
          Tells us if we need wait before ending the program.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

getOpts

public getOpts(java.lang.String[] args)
Constructor for getOpts.

Parameters:
args - This is the command line options parsed which are analysed by this data object.
Method Detail

getPrintFile

public boolean getPrintFile()
Tells us if we need to print the file name with the quote.

Returns:
boolean A True/False representing if we should print the file name.

getWait

public boolean getWait()
Tells us if we need wait before ending the program.

Returns:
boolean A True/False representing a wait period.

getPrintVersion

public boolean getPrintVersion()
Tells us if we need to print the version information.

Returns:
boolean A True/False representing if we should print version information.

getPrintSyntax

public boolean getPrintSyntax()
Tells us if we need to print the Syntax for jfortune.

Returns:
boolean A True/False representing if we should print version information.

getNumOpts

public int getNumOpts()
Returns the no. of command line options parsed.

Returns:
int An integer representing the no. of command line options parsed.

getPrintPrefs

public boolean getPrintPrefs()
Tells us if we need to print the probability for each file.

Returns:
boolean A True/False representing if we should print the probability for each file.

getAllEqual

public boolean getAllEqual()
Tells us if we need to give each file the same probabillity.

Returns:
boolean A True/False representing if we should give each file the same probability.

getRealArgs

public java.util.ArrayList getRealArgs()
Returns an arraylist of actual files we need to choose from for the quote.

Returns:
ArrayList An arraylist containing the file names to be searched for a quote.

getNoPrint

public boolean getNoPrint()
Tells us if we need to return all output instead of printing it on stdout.

Returns:
boolean A True/False representing if we should return output instead of printing it.