|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.milyn.ect.ecore.ECoreConversionUtils
public class ECoreConversionUtils
Utility class that convert EDI model to ECore model elements
| Constructor Summary | |
|---|---|
ECoreConversionUtils()
|
|
| Method Summary | |
|---|---|
static org.eclipse.emf.ecore.EClass |
createDocumentRoot(org.eclipse.emf.ecore.EClass rootClass)
Creates a droot root class |
static org.eclipse.emf.ecore.EAttribute |
fieldToEAttribute(org.milyn.edisax.model.internal.Field field)
Converting a Field to EAttribute Works only for
Field where Field.getComponents() is empty |
static org.eclipse.emf.ecore.EReference |
fieldToEReference(org.milyn.edisax.model.internal.Field field,
Map<String,org.eclipse.emf.ecore.EClass> classes)
This method creates a new EReference to the Field that
contains multiple Component. |
static org.eclipse.emf.ecore.EPackage |
mappingModelToEPackage(org.milyn.edisax.model.internal.Edimap mapModel)
This method transforms Edimap to EPackage where classes
related to this Edimap will be stored |
static org.eclipse.emf.ecore.EClass |
segmentGroupToEClass(org.milyn.edisax.model.internal.SegmentGroup grp)
Converting SegmentGroup to EClass |
static org.eclipse.emf.ecore.EReference |
segmentGroupToEReference(org.milyn.edisax.model.internal.SegmentGroup grp,
org.eclipse.emf.ecore.EClass refClass)
Convert SegmentGroup into EReference to the given
EClass |
static org.eclipse.emf.ecore.EClass |
segmentToEClass(org.milyn.edisax.model.internal.Segment segment)
Converting Segment to EClass |
static org.eclipse.emf.ecore.EReference |
segmentToEReference(org.milyn.edisax.model.internal.Segment segment,
org.eclipse.emf.ecore.EClass refClass)
Converts Segment to EReference |
static String |
toJavaName(String name,
boolean className)
Convert tricky names to JavaNames with CamelCase etc |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ECoreConversionUtils()
| Method Detail |
|---|
public static org.eclipse.emf.ecore.EClass segmentToEClass(org.milyn.edisax.model.internal.Segment segment)
Segment to EClass
segment -
public static org.eclipse.emf.ecore.EPackage mappingModelToEPackage(org.milyn.edisax.model.internal.Edimap mapModel)
Edimap to EPackage where classes
related to this Edimap will be stored
mapModel -
public static org.eclipse.emf.ecore.EReference segmentToEReference(org.milyn.edisax.model.internal.Segment segment,
org.eclipse.emf.ecore.EClass refClass)
Segment to EReference
segment - refClass -
public static org.eclipse.emf.ecore.EClass segmentGroupToEClass(org.milyn.edisax.model.internal.SegmentGroup grp)
SegmentGroup to EClass
grp -
public static org.eclipse.emf.ecore.EReference segmentGroupToEReference(org.milyn.edisax.model.internal.SegmentGroup grp,
org.eclipse.emf.ecore.EClass refClass)
SegmentGroup into EReference to the given
EClass
grp - refClass -
public static org.eclipse.emf.ecore.EAttribute fieldToEAttribute(org.milyn.edisax.model.internal.Field field)
Field to EAttribute Works only for
Field where Field.getComponents() is empty
field -
public static org.eclipse.emf.ecore.EReference fieldToEReference(org.milyn.edisax.model.internal.Field field,
Map<String,org.eclipse.emf.ecore.EClass> classes)
EReference to the Field that
contains multiple Component.
For that purpose new EClass will be created and
EReference will refer to it
field - classes -
public static String toJavaName(String name,
boolean className)
name -
public static org.eclipse.emf.ecore.EClass createDocumentRoot(org.eclipse.emf.ecore.EClass rootClass)
rootClass -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||