Examples of EReference


Examples of org.eclipse.emf.ecore.EReference

    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");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.