ca.uhn.hl7v2.conf.classes.generator.genclasses
Class FileGenerator

java.lang.Object
  extended by ca.uhn.hl7v2.conf.classes.generator.genclasses.FileGenerator

public class FileGenerator
extends java.lang.Object

This class writes a GeneratedClass object to a file

Author:
James AgnewPaul BrohmanMitch DelachevrotiereShawn DyckCory Metcalf

Constructor Summary
FileGenerator(java.lang.String basePath)
          Initialize member variable setting the base file path
 
Method Summary
 java.lang.String getBasePath()
          This method returns the Base Path
 void storeFile(GeneratedClass gc, java.lang.String packageName, java.lang.String fileName)
          this method writes the GeneratedClass object to disk
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileGenerator

public FileGenerator(java.lang.String basePath)
Initialize member variable setting the base file path

Parameters:
basePath - representing base path location
Method Detail

getBasePath

public java.lang.String getBasePath()
This method returns the Base Path

Returns:
the Base Path

storeFile

public void storeFile(GeneratedClass gc,
                      java.lang.String packageName,
                      java.lang.String fileName)
               throws java.io.IOException
this method writes the GeneratedClass object to disk

Parameters:
gc - the object to be written to disk
packageName - representing the packageName
fileName - representing the file name
Throws:
java.io.IOException - if unable to create file