Package org.eclipse.papyrus.sysml.requirements

Examples of org.eclipse.papyrus.sysml.requirements.Copy


    // The Requirement is the supplier of the Copy link between the master
    // Requirement and
    // current
    // This should return the TestCase verifying current Requirement
    Requirement master = null;
    Copy currentCopy = null;

    if(getBase_Class() != null) {
      Iterator<Dependency> itDep = getBase_Class().getClientDependencies().iterator();

      // Find Copy link
      while(itDep.hasNext()) {
        Dependency currentDep = itDep.next();
        currentCopy = UMLUtil.getStereotypeApplication(currentDep, Copy.class);

        if(currentCopy != null) {
          EList<NamedElement> suppliers = currentCopy.getBase_Abstraction().getSuppliers();
          Iterator<NamedElement> it = suppliers.iterator();
          while(it.hasNext() && (master == null)) {
            Requirement currentRequirement = UMLUtil.getStereotypeApplication(it.next(), Requirement.class);
            if(currentRequirement != null) {
              master = currentRequirement;
View Full Code Here

TOP

Related Classes of org.eclipse.papyrus.sysml.requirements.Copy

Copyright © 2018 www.massapicom. 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.