org.milyn.ect.ecore
Class ECoreGenerator

java.lang.Object
  extended by org.milyn.ect.ecore.ECoreGenerator

public class ECoreGenerator
extends Object

This class is responsible for generating ECore model based on the UN EDI Model

Author:
zubairov

Field Summary
static String COMMON_PACKAGE_NAME
           
static ECoreGenerator INSTANCE
           
 
Constructor Summary
ECoreGenerator()
           
 
Method Summary
 Set<org.eclipse.emf.ecore.EPackage> generatePackages(org.milyn.edisax.interchange.EdiDirectory ediDirectory)
          This method will convert information available in EdiDirectory into the set of EPackage packages.
 org.eclipse.emf.ecore.EPackage generateSinglePackage(org.milyn.edisax.model.internal.Edimap mappingModel)
          Generate a single EPackage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final ECoreGenerator INSTANCE

COMMON_PACKAGE_NAME

public static final String COMMON_PACKAGE_NAME
See Also:
Constant Field Values
Constructor Detail

ECoreGenerator

public ECoreGenerator()
Method Detail

generatePackages

public Set<org.eclipse.emf.ecore.EPackage> generatePackages(org.milyn.edisax.interchange.EdiDirectory ediDirectory)
This method will convert information available in EdiDirectory into the set of EPackage packages. Set will contain one package with common definitions and one package per each Edimap that is using common classes

Parameters:
ediDirectory - The EdiDirectory.
Returns:
The EPackages.

generateSinglePackage

public org.eclipse.emf.ecore.EPackage generateSinglePackage(org.milyn.edisax.model.internal.Edimap mappingModel)
Generate a single EPackage. This method assumes that given Edimap model does not depend/import any other Edimap model

Parameters:
mappingModel -
Returns:


Copyright © 2018. All rights reserved.