ca.uhn.hl7v2.conf.classes.generator.builders
Class CommandParser

java.lang.Object
  extended by ca.uhn.hl7v2.conf.classes.generator.builders.CommandParser

public class CommandParser
extends java.lang.Object

This class parses the command line argument for the command line tool ConfGen.java

Author:
James AgnewPaul BrohmanMitch DelachevrotiereShawn DyckCory Metcalf

Constructor Summary
CommandParser()
          creates a new vector to store the command line arguments into
 
Method Summary
 java.lang.String getDest()
          returns the location where the genrated files are going to be stored into
 boolean getErrFlag()
          returns true if the error flag is set or false if it is not
 java.lang.String getError()
          returns the error type if there is an error in the command line arguments
 boolean getHelpFlag()
          returns true if the help flag is set or false if it is not
 java.lang.String getPackage()
          returns the pakage name to use for the generated source
 java.lang.String getSource()
          returns the location of the XML profile
 boolean getTestFlag()
          returns true if the test flag is set or false if it is not
 boolean getVerbFlag()
          returns true if the verbose flag is set or false if it is not
 void parse(java.lang.String[] args)
          this method parses the command line for the ConfGen.java command line tool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandParser

public CommandParser()
creates a new vector to store the command line arguments into

Method Detail

getDest

public java.lang.String getDest()
returns the location where the genrated files are going to be stored into

Returns:
the location where the genrated files are going to be stored into

getErrFlag

public boolean getErrFlag()
returns true if the error flag is set or false if it is not

Returns:
true if the error flag is set or false if it is not

getError

public java.lang.String getError()
returns the error type if there is an error in the command line arguments

Returns:
the error type if there is an error in the command line arguments

getHelpFlag

public boolean getHelpFlag()
returns true if the help flag is set or false if it is not

Returns:
true if the help flag is set or false if it is not

getPackage

public java.lang.String getPackage()
returns the pakage name to use for the generated source

Returns:
the pakage name to use for the generated source

getSource

public java.lang.String getSource()
returns the location of the XML profile

Returns:
the location of the XML profile

getTestFlag

public boolean getTestFlag()
returns true if the test flag is set or false if it is not

Returns:
true if the test flag is set or false if it is not

getVerbFlag

public boolean getVerbFlag()
returns true if the verbose flag is set or false if it is not

Returns:
true if the verbose flag is set or false if it is not

parse

public void parse(java.lang.String[] args)
this method parses the command line for the ConfGen.java command line tool

Parameters:
args[] - the commnad line arguments