Package OntoUML

Examples of OntoUML.Mediation


        if (result == null) result = caseNamedElement(materialAssociation);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case OntoUMLPackage.MEDIATION: {
        Mediation mediation = (Mediation)theEObject;
        T result = caseMediation(mediation);
        if (result == null) result = caseDependencyRelationship(mediation);
        if (result == null) result = caseDirectedBinaryRelationship(mediation);
        if (result == null) result = caseDirectedRelationship(mediation);
        if (result == null) result = caseRelationalClassifier(mediation);
View Full Code Here


      fFigureMediationNameLabelFigure = new WrappingLabel();
      fFigureMediationNameLabelFigure.setText("Name");

      this.add(fFigureMediationNameLabelFigure);

      Mediation m = (Mediation) ((View) mediationfeditpart.getModel())
          .getElement();
      if (!m.getSource().isEmpty())
        ((Property) m.getSource().get(0))
            .setContainer(m.getContainer());
      if (!m.getTarget().isEmpty())
        ((Property) m.getTarget().get(0))
            .setContainer(m.getContainer());
    }
View Full Code Here

          }
        }
      }
    }
   
    Mediation mediation = null;
    Container container = null;
    Relator relator = null;
    Element element = null;
    ArrayList<MaterialAssociation> materialassociationlist = new ArrayList<MaterialAssociation>();
    ArrayList<Derivation> derivationlist = new ArrayList<Derivation>();
   
    if (getSource() instanceof Mediation)
      mediation = (Mediation) getSource();
    else
      if (getTarget() instanceof Mediation)
        mediation = (Mediation) getTarget();
   
    if (mediation != null) {
     
      container = mediation.getContainer();
     
      if (mediation.getTarget().size() > 0)
        if (mediation.getSource().get(0) instanceof Property)
          relator = (Relator) ((Property) mediation.getSource().get(0)).getEndType();
         
      if (mediation.getTarget().size() > 0)
        if (mediation.getTarget().get(0) instanceof Property)
          element = ((Property) mediation.getTarget().get(0)).getEndType();
     
      if ((element != null) && (container != null))
        for (int i = 0; i < container.getInstanciarElement().size(); ++i)
          if (container.getInstanciarElement().get(i) instanceof MaterialAssociation)
            for (int j = 0; j < ((MaterialAssociation) container.getInstanciarElement().get(i)).getAssociationEnd().size(); ++j)
View Full Code Here

          }
        }
      }
    }
   
    Mediation mediation = null;
    Container container = null;
    Relator relator = null;
    Element element = null;
    ArrayList<MaterialAssociation> materialassociationlist = new ArrayList<MaterialAssociation>();
    ArrayList<Derivation> derivationlist = new ArrayList<Derivation>();
   
    if (getSource() instanceof Mediation)
      mediation = (Mediation) getSource();
    else
      if (getTarget() instanceof Mediation)
        mediation = (Mediation) getTarget();
   
    if (mediation != null) {
     
      container = mediation.getContainer();
     
      if (mediation.getTarget().size() > 0)
        if (mediation.getSource().get(0) instanceof Property)
          relator = (Relator) ((Property) mediation.getSource().get(0)).getEndType();
         
      if (mediation.getTarget().size() > 0)
        if (mediation.getTarget().get(0) instanceof Property)
          element = ((Property) mediation.getTarget().get(0)).getEndType();
     
      if ((element != null) && (container != null))
        for (int i = 0; i < container.getInstanciarElement().size(); ++i)
          if (container.getInstanciarElement().get(i) instanceof MaterialAssociation)
            for (int j = 0; j < ((MaterialAssociation) container.getInstanciarElement().get(i)).getAssociationEnd().size(); ++j)
View Full Code Here

TOP

Related Classes of OntoUML.Mediation

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.