oArcName.setName("name");
oArcName.setEType(ecorePackage.getEString());
oArcClass.getEStructuralFeatures().add(oArcName);
// reference source of TCGArc
EReference oArcSource = ecoreFactory.createEReference();
oArcSource.setName("source");
oArcSource.setEType(oNodeClass);
oArcSource.setLowerBound(1);
oArcSource.setUpperBound(1);
// reference target of TCGArc
EReference oArcTarget = ecoreFactory.createEReference();
oArcTarget.setName("target");
oArcTarget.setEType(oNodeClass);
oArcTarget.setLowerBound(1);
oArcTarget.setUpperBound(1);
// create TestCaseGraph
EClass oTCGClass = ecoreFactory.createEClass();
oTCGClass.setName("TestCaseGraph");
// a test case graph refrences the root node
EReference oRootReference = ecoreFactory.createEReference();
oRootReference.setName("root");
oRootReference.setEType(oNodeClass);
oRootReference.setLowerBound(1);
oRootReference.setUpperBound(1);
// erstes Package, das node, arc und tcg enth�lt
EPackage graphPackage = ecoreFactory.createEPackage();
graphPackage.setName("graph");
graphPackage.setNsPrefix("graph");