|
||||||||||
| 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(Field field)
Converting a Field to EAttribute Works only for
Field where Field.getComponents() is empty |
static org.eclipse.emf.ecore.EReference |
fieldToEReference(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(Edimap mapModel)
This method transforms Edimap to EPackage where classes
related to this Edimap will be stored |
static org.eclipse.emf.ecore.EClass |
segmentGroupToEClass(SegmentGroup grp)
Converting SegmentGroup to EClass |
static org.eclipse.emf.ecore.EReference |
segmentGroupToEReference(SegmentGroup grp,
org.eclipse.emf.ecore.EClass refClass)
Convert SegmentGroup into EReference to the given
EClass |
static org.eclipse.emf.ecore.EClass |
segmentToEClass(Segment segment)
Converting Segment to EClass |
static org.eclipse.emf.ecore.EReference |
segmentToEReference(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(Segment segment)
Segment to EClass
segment -
public static org.eclipse.emf.ecore.EPackage mappingModelToEPackage(Edimap mapModel)
Edimap to EPackage where classes
related to this Edimap will be stored
mapModel -
public static org.eclipse.emf.ecore.EReference segmentToEReference(Segment segment,
org.eclipse.emf.ecore.EClass refClass)
Segment to EReference
segment - refClass -
public static org.eclipse.emf.ecore.EClass segmentGroupToEClass(SegmentGroup grp)
SegmentGroup to EClass
grp -
public static org.eclipse.emf.ecore.EReference segmentGroupToEReference(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(Field field)
Field to EAttribute Works only for
Field where Field.getComponents() is empty
field -
public static org.eclipse.emf.ecore.EReference fieldToEReference(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 | |||||||||