Package OntoUML

Examples of OntoUML.Container


        if (result == null) result = caseNamedElement(componentOf);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case OntoUMLPackage.CONTAINER: {
        Container container = (Container)theEObject;
        T result = caseContainer(container);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case OntoUMLPackage.DATATYPE: {
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)
              if (((MaterialAssociation) container.getInstanciarElement().get(i)).getAssociationEnd().get(j).getEndType() == element)
                materialassociationlist.add((MaterialAssociation) container.getInstanciarElement().get(i));
     
      if ((materialassociationlist.size() > 0) && (relator != null) && (container != null))
        for (int i = 0; i < container.getInstanciarElement().size(); ++i)
          if (container.getInstanciarElement().get(i) instanceof Derivation)
            for (int j = 0; j < ((Derivation) container.getInstanciarElement().get(i)).getTarget().size(); ++j)
              if (((Derivation) container.getInstanciarElement().get(i)).getTarget().get(j) instanceof Property)
                if (((Property) ((Derivation) container.getInstanciarElement().get(i)).getTarget().get(j)).getEndType() == relator)
                  derivationlist.add((Derivation) container.getInstanciarElement().get(i));       
       
      for (int i = 0; i < materialassociationlist.size(); ++i) {
        if (materialassociationlist.get(i).isIsAbstract()) {
          materialassociationlist.get(i).setIsAbstract(false);
          materialassociationlist.get(i).setIsAbstract(true);
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)
              if (((MaterialAssociation) container.getInstanciarElement().get(i)).getAssociationEnd().get(j).getEndType() == element)
                materialassociationlist.add((MaterialAssociation) container.getInstanciarElement().get(i));
     
      if ((materialassociationlist.size() > 0) && (relator != null) && (container != null))
        for (int i = 0; i < container.getInstanciarElement().size(); ++i)
          if (container.getInstanciarElement().get(i) instanceof Derivation)
            for (int j = 0; j < ((Derivation) container.getInstanciarElement().get(i)).getTarget().size(); ++j)
              if (((Derivation) container.getInstanciarElement().get(i)).getTarget().get(j) instanceof Property)
                if (((Property) ((Derivation) container.getInstanciarElement().get(i)).getTarget().get(j)).getEndType() == relator)
                  derivationlist.add((Derivation) container.getInstanciarElement().get(i));       
       
      for (int i = 0; i < materialassociationlist.size(); ++i) {
        if (materialassociationlist.get(i).isIsAbstract()) {
          materialassociationlist.get(i).setIsAbstract(false);
          materialassociationlist.get(i).setIsAbstract(true);
View Full Code Here

TOP

Related Classes of OntoUML.Container

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.