Re: Java Class Generation

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Feb 26 2002 - 22:05:43 EST

  • Next message: Andrus Adamchik: "Cayene Modeler Problem"

    Andrus Adamchik wrote:

    > I already have ClassGenerator implemented. There will be one more class
    > - MapClassGenerator that will use ClassGenerator to walk through a map
    > and create Java classes for each ObjEntity. This one will need hooks to
    > Misha's GUI, so that for each Java class being generated, a user can
    > specify location and also policy like "overwrite", etc.

    Misha,

    I just checked in MapClassGenerator. It should be subclassed in the GUI
    for class generation procedure. After that usage should look like this:

    MapClassGenerator gen = new MyClassGenerator(dataMap);
    if(classPairsWasSelected)
      gen.generateClassPairs();
    else
      gen.generateSingleClasses();

    MapClassGenerator is abstract and haven't been tested, so expect
    surprises :-). I'll keep working on templates.

    -- 
    ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
    - Andrei (a.k.a. Andrus) Adamchik
    http://objectstyle.org
    email: andrus at objectstyle dot org
    



    This archive was generated by hypermail 2.0.0 : Tue Feb 26 2002 - 22:17:27 EST