org.autosemantix.merger
Class Merger

java.lang.Object
  extended byorg.autosemantix.merger.Merger

public class Merger
extends java.lang.Object

This class is responsible for merging the model with an existing Java implementation.

Version:
Created Aug 3, 2005
Author:
Shawn Simister

Constructor Summary
Merger(Project project)
           
 
Method Summary
 void merge(java.lang.String implDir)
          Merge the generated code of the model with the existing implementation.
 java.lang.String mergeFile(java.io.File implDir, java.lang.String generated, java.io.File targetFile, Model model, DeltaLog changes)
          Merge a class with a previous implementation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Merger

public Merger(Project project)
Method Detail

merge

public void merge(java.lang.String implDir)
Merge the generated code of the model with the existing implementation.

Parameters:
implDir - The directory containing the existing implementation.

mergeFile

public java.lang.String mergeFile(java.io.File implDir,
                                  java.lang.String generated,
                                  java.io.File targetFile,
                                  Model model,
                                  DeltaLog changes)
Merge a class with a previous implementation.

Parameters:
implDir - The directory containing the implementation.
generated - The generated source code for the class.
targetFile - The name of the generated class.
model - The ontology model.
changes - A list of changes to the ontology.