Esempio n. 1
0
 public static void  Main(System.String[] args)
 {
     /*GroupDef def = new GroupDef("ADT_FAKE", true, false);
      * def.addStructure(new SegmentDef("MSH", true, false));
      * def.addStructure(new SegmentDef("PID", false, false));
      * def.addStructure(new SegmentDef("PV1", false, true));
      * System.out.println(def.makeConstructor());
      * System.out.println(def.makeAccessor(0));
      * System.out.println(def.makeAccessor(1));
      * System.out.println(def.makeAccessor(2));
      */
     //UPGRADE_ISSUE: Method 'java.lang.System.setProperty' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javalangSystem'"
     //System_Renamed.setProperty("ca.on.uhn.hl7.database.url", "jdbc:odbc:hl7");
     // Moved to .config file.
     try
     {
         //UPGRADE_TODO: The differences in the format  of parameters for method 'java.lang.Class.forName'  may cause compilation errors.  "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1092'"
         System.Type.GetType("sun.jdbc.odbc.JdbcOdbcDriver");
         MessageGenerator.makeAll("c:/java/adapter/source/", "2.4");
     }
     catch (System.Exception e)
     {
         SupportClass.WriteStackTrace(e, Console.Error);
     }
 }
Esempio n. 2
0
 /// <summary> Generates source code for all data types, segments, groups, and messages.</summary>
 /// <param name="baseDirectory">the directory where source should be written
 /// </param>
 public static void  makeAll(System.String baseDirectory, System.String version)
 {
     try
     {
         DataTypeGenerator.makeAll(baseDirectory, version);
         SegmentGenerator.makeAll(baseDirectory, version);
         MessageGenerator.makeAll(baseDirectory, version);
     }
     catch (System.Exception e)
     {
         SupportClass.WriteStackTrace(e, Console.Error);
     }
 }