INRIA & FluxMedia

fr.fluxmedia.transmorpher.application
Class CommandLineArgument

java.lang.Object
  extended by fr.fluxmedia.transmorpher.application.CommandLineArgument

public final class CommandLineArgument
extends java.lang.Object

This is an utility class for the command line analysis

Since:
jdk 1.2
Author:
Laurent Tardif (laurent.tardif@inrialpes.fr)

Field Summary
(package private)  boolean compileMode
           
(package private)  int debug_mode
          True if the debug mode is activate
(package private)  boolean execMode
           
(package private)  java.lang.String iFilename
          The filename parameter
(package private)  boolean isOk
          True if the command line is syntaxicly correct
(package private)  Parameters parameters
          The parameters to be passed to the main process
(package private)  java.lang.String reloc
          The relocation directory
(package private)  boolean roundMode
           
(package private)  boolean testMode
           
(package private)  boolean threadMode
           
 
Constructor Summary
CommandLineArgument()
          The commandLine constructor
 
Method Summary
 void argsAnalyse(java.lang.String[] pArgs)
          Analyse the command line arguments
 boolean getCompileMode()
          Gets the compileMode attribute of the CommandLineArgument object
 int getDebugMode()
          Gets the debugMode attribute of the CommandLineArgument object
 boolean getExecMode()
          Gets the execMode attribute of the CommandLineArgument object
 java.lang.String getFilename()
          Get the filename
 Parameters getParameters()
          Gets the parameters attribute of the CommandLineArgument object
 java.lang.String getRelocation()
          Gets the relocation attribute of the CommandLineArgument object
 boolean getRoundMode()
          Get the filename
 boolean getTestMode()
          Gets the testMode attribute of the CommandLineArgument object
 boolean getThreadMode()
          Gets the threadMode attribute of the CommandLineArgument object
 boolean IsOk()
          return true if the command line is syntaxicly correct
static void printHelp()
          Prints help on the standard output.
static void printVersion()
          Prints version informations.
 void setBadCommandLineArgument()
          Set the isOk variable to false
 void setDebugMode(int mode)
          Set the debug mode
 void setFilename(java.lang.String pFilename)
          Set the filename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iFilename

java.lang.String iFilename
The filename parameter


reloc

java.lang.String reloc
The relocation directory


isOk

boolean isOk
True if the command line is syntaxicly correct


debug_mode

int debug_mode
True if the debug mode is activate


roundMode

boolean roundMode

execMode

boolean execMode

compileMode

boolean compileMode

testMode

boolean testMode

threadMode

boolean threadMode

parameters

Parameters parameters
The parameters to be passed to the main process

Constructor Detail

CommandLineArgument

public CommandLineArgument()
The commandLine constructor

Method Detail

setFilename

public final void setFilename(java.lang.String pFilename)
Set the filename

Parameters:
pFilename - The new filename value

getFilename

public final java.lang.String getFilename()
Get the filename

Returns:
The filename value

setDebugMode

public final void setDebugMode(int mode)
Set the debug mode

Parameters:
mode - The new debugMode value

getRoundMode

public final boolean getRoundMode()
Get the filename

Returns:
The roundMode value

getDebugMode

public final int getDebugMode()
Gets the debugMode attribute of the CommandLineArgument object

Returns:
The debugMode value

getCompileMode

public final boolean getCompileMode()
Gets the compileMode attribute of the CommandLineArgument object

Returns:
The compileMode value

getThreadMode

public final boolean getThreadMode()
Gets the threadMode attribute of the CommandLineArgument object

Returns:
The threadMode value

getExecMode

public final boolean getExecMode()
Gets the execMode attribute of the CommandLineArgument object

Returns:
The execMode value

getTestMode

public final boolean getTestMode()
Gets the testMode attribute of the CommandLineArgument object

Returns:
The testMode value

getRelocation

public final java.lang.String getRelocation()
Gets the relocation attribute of the CommandLineArgument object

Returns:
The relocation value

getParameters

public final Parameters getParameters()
Gets the parameters attribute of the CommandLineArgument object

Returns:
The parameters value

IsOk

public final boolean IsOk()
return true if the command line is syntaxicly correct

Returns:
true if is OK

setBadCommandLineArgument

public final void setBadCommandLineArgument()
Set the isOk variable to false


printHelp

public static final void printHelp()
Prints help on the standard output.


printVersion

public static final void printVersion()
Prints version informations.


argsAnalyse

public final void argsAnalyse(java.lang.String[] pArgs)
                       throws TMException
Analyse the command line arguments

Parameters:
pArgs - Description of the Parameter
Throws:
TMException

INRIA & FluxMedia

..no bottom yet...