Examples of Refine


Examples of org.eclipse.uml2.uml.profile.standard.Refine

   * @generated NOT
   */
  public EList<Requirement> getRefines() {
    // This should return the Requirement(s) refined by current element
    EList<Requirement> refines = new BasicEList<Requirement>();
    Refine currentRefine = null;

    if(getBase_NamedElement() != null) {
      // Find Refine link
      Iterator<Dependency> itDep = getBase_NamedElement().getClientDependencies().iterator();

      while(itDep.hasNext()) {
        Dependency currentDependency = itDep.next();
        currentRefine = UMLUtil.getStereotypeApplication(currentDependency, Refine.class);

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

Examples of org.eclipse.uml2.uml.profile.standard.Refine

   */
  public EList<NamedElement> getRefinedBy() {
    // This should return the NamedElement(s) that refine current
    // Requirement
    EList<NamedElement> refinedBy = new BasicEList<NamedElement>();
    Refine currentRefine = null;

    if(getBase_Class() != null) {
      Iterator<DirectedRelationship> itDep = getBase_Class().getTargetDirectedRelationships().iterator();

      // Find Refine link
      while(itDep.hasNext()) {
        DirectedRelationship currentDRelationship = itDep.next();
        currentRefine = UMLUtil.getStereotypeApplication(currentDRelationship, Refine.class);

        if(currentRefine != null) {
          refinedBy.addAll(currentRefine.getBase_Abstraction().getClients());
        }
      }
    }

    UnmodifiableEList<NamedElement> resultList = new UnmodifiableEList<NamedElement>(this, RequirementsPackage.eINSTANCE.getRequirement_RefinedBy(), refinedBy.size(), refinedBy.toArray());
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.