public class ECoreConversionUtils extends Object
Constructor and Description |
---|
ECoreConversionUtils() |
Modifier and Type | Method and Description |
---|---|
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)
|
static org.eclipse.emf.ecore.EReference |
fieldToEReference(Field field,
Map<String,org.eclipse.emf.ecore.EClass> classes)
|
static org.eclipse.emf.ecore.EPackage |
mappingModelToEPackage(Edimap mapModel)
|
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)
|
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
|
public static org.eclipse.emf.ecore.EClass segmentToEClass(Segment segment)
Segment
to EClass
segment
- public static org.eclipse.emf.ecore.EPackage mappingModelToEPackage(Edimap mapModel)
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)
grp
- refClass
- public static org.eclipse.emf.ecore.EAttribute fieldToEAttribute(Field field)
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 itfield
- 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
- Copyright © 2020. All rights reserved.