nat
Class GetOptNat

java.lang.Object
  extended by nat.GetOptNat

public class GetOptNat
extends java.lang.Object

Get nats command line attribute ensuring consistency by throwing a GetOptNatException when it's incorrect.

Author:
Vivien

Field Summary
 java.util.ArrayList<java.lang.String> configFiles
          filename of the configuration file passed in the command line
 java.util.ArrayList<java.lang.String> fromFiles
          List of filenames to be transcribed as passed in the command line
 java.lang.Boolean quiet
          no verbosity asked in the command line
 boolean reverseTranscription
          true if asked for reverse transcription
 java.util.ArrayList<java.lang.String> toFiles
          List of filenames of transcription results passed in the command line
 boolean useTheGui
          true if the command line asks for the gui
 
Constructor Summary
GetOptNat(java.lang.String[] argv)
          Constructor Builds the GetOptNat object corresponding to the command line, if valid
 
Method Summary
 java.lang.String getConfigFile()
          get config file in command line with -c option
static java.lang.String getUsage()
          get command line usage text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

useTheGui

public boolean useTheGui
true if the command line asks for the gui


reverseTranscription

public boolean reverseTranscription
true if asked for reverse transcription


fromFiles

public java.util.ArrayList<java.lang.String> fromFiles
List of filenames to be transcribed as passed in the command line


toFiles

public java.util.ArrayList<java.lang.String> toFiles
List of filenames of transcription results passed in the command line


configFiles

public java.util.ArrayList<java.lang.String> configFiles
filename of the configuration file passed in the command line


quiet

public java.lang.Boolean quiet
no verbosity asked in the command line

Constructor Detail

GetOptNat

public GetOptNat(java.lang.String[] argv)
          throws GetOptNatException
Constructor Builds the GetOptNat object corresponding to the command line, if valid

Parameters:
argv - list of command line argument values
Throws:
GetOptNatException - , if the command line is not valid
Method Detail

getConfigFile

public java.lang.String getConfigFile()
                               throws GetOptNatException
get config file in command line with -c option

Returns:
command line configuration filename
Throws:
GetOptNatException - if no config file in configFiles

getUsage

public static java.lang.String getUsage()
get command line usage text

Returns:
command line usage string