Examples of DirectedRelationship


Examples of OntoUML.DirectedRelationship

        if (result == null) result = caseNamedElement(directedBinaryRelationship);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case OntoUMLPackage.DIRECTED_RELATIONSHIP: {
        DirectedRelationship directedRelationship = (DirectedRelationship)theEObject;
        T result = caseDirectedRelationship(directedRelationship);
        if (result == null) result = caseRelationship(directedRelationship);
        if (result == null) result = caseElement(directedRelationship);
        if (result == null) result = defaultCase(theEObject);
        return result;
View Full Code Here

Examples of org.eclipse.uml2.DirectedRelationship

            dependencies,
            new Predicate()
            {
                public boolean evaluate(final Object object)
                {
                  DirectedRelationship relation = (DirectedRelationship) object;
                  if(isAUml14Dependency(relation))
                  {
                    // we only check first, see dependency facade for more detail.
                    return ModelElementFacadeLogicImpl.this.metaObject.equals(relation.getTargets().get(0));
                  }
                  return false;
                }
            });
        return dependencies;
View Full Code Here

Examples of org.eclipse.uml2.DirectedRelationship

            dependencies,
            new Predicate()
            {
                public boolean evaluate(final Object object)
                {
                  DirectedRelationship relation = (DirectedRelationship) object;
                  if(isAUml14Dependency(relation))
                  {
                    // we only check first, see dependency facade for more detail.
                    return ModelElementFacadeLogicImpl.this.metaObject.equals(relation.getSources().get(0));
                  }
                  return false;
                }
            });
        return dependencies;
View Full Code Here

Examples of org.eclipse.uml2.uml.DirectedRelationship

    if(getBase_NamedElement() != null) {
      // Find Allocate link
      Iterator<DirectedRelationship> itDep = getBase_NamedElement().getTargetDirectedRelationships().iterator();
      while(itDep.hasNext()) {
        DirectedRelationship currentDRelationship = itDep.next();
        currentAllocate = UMLUtil.getStereotypeApplication(currentDRelationship, Allocate.class);

        if(currentAllocate != null) {
          EList<Element> targets = currentAllocate.getBase_Abstraction().getSources();
          Iterator<Element> it = targets.iterator();
View Full Code Here

Examples of org.eclipse.uml2.uml.DirectedRelationship

      // Find Trace link
      EList<DirectedRelationship> relationships = getBase_NamedElement().getSourceDirectedRelationships();
      Iterator<DirectedRelationship> itDep = relationships.iterator();

      while(itDep.hasNext()) {
        DirectedRelationship currentDRelationship = itDep.next();
        currentTrace = UMLUtil.getStereotypeApplication(currentDRelationship, Trace.class);

        // Must be a Trace not a subtype (see bug #352563).
        if((currentTrace != null) && (currentTrace.eClass() == StandardPackage.eINSTANCE.getTrace())) {
          EList<NamedElement> clients = currentTrace.getBase_Abstraction().getSuppliers();
View Full Code Here

Examples of org.eclipse.uml2.uml.DirectedRelationship

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

      // Find DeriveReqt link
      while(itDep.hasNext()) {
        DirectedRelationship currentDirectedRelationship = itDep.next();
        currentDeriveReqt = UMLUtil.getStereotypeApplication(currentDirectedRelationship, DeriveReqt.class);

        if(currentDeriveReqt != null) {
          EList<NamedElement> clients = currentDeriveReqt.getBase_Abstraction().getClients();
          Iterator<NamedElement> it = clients.iterator();
View Full Code Here

Examples of org.eclipse.uml2.uml.DirectedRelationship

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

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

        if(currentDeriveReqt != null) {
          EList<NamedElement> suppliers = currentDeriveReqt.getBase_Abstraction().getSuppliers();
          Iterator<NamedElement> it = suppliers.iterator();
View Full Code Here

Examples of org.eclipse.uml2.uml.DirectedRelationship

    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());
        }
View Full Code Here

Examples of org.eclipse.uml2.uml.DirectedRelationship

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

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

        if(currentSatisfy != null) {
          satisfyBy.addAll(currentSatisfy.getBase_Abstraction().getClients());
        }
View Full Code Here

Examples of org.eclipse.uml2.uml.DirectedRelationship

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

      // Find Trace link
      while(itDep.hasNext()) {
        DirectedRelationship currentDR = itDep.next();
        currentTrace = UMLUtil.getStereotypeApplication(currentDR, Trace.class);

        // Must be a Trace not a subtype (see bug #352563).
        if((currentTrace != null) && (currentTrace.eClass() == StandardPackage.eINSTANCE.getTrace())) {
          EList<NamedElement> suppliers = currentTrace.getBase_Abstraction().getClients();
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.