Package fr.tm.elibel.smartqvt.stdlibs.OclLib

Examples of fr.tm.elibel.smartqvt.stdlibs.OclLib.OrderedSet


    } catch (Exception e) {
      logger
          .log(Level.SEVERE, "faild to find a package from its name",
              e);
    }
    return oclLib.new OrderedSet(packages);
  }
View Full Code Here


        }
      }
    } catch (Exception e) {
      logger.log(Level.SEVERE, "faild to find a package from a nsURI", e);
    }
    return oclLib.new OrderedSet(packages);
  }
View Full Code Here

    }
    return oclLib.new OrderedSet(packages);
  }

  public OrderedSet getOutsideModulesByName(java.lang.String self, Trace trace) {
    OrderedSet result = oclLib.new OrderedSet();
    String nsURI = properties.getProperty(self + ".nsURI");
    if (nsURI == null) {
      logger.log(Level.SEVERE, self
          + " nsURI not found in the '.properties' file.");
    } else {
      ModuleDescription md = ModulesmanagerPlugin.getDefault()
          .getModulesRegistry().getModuleDescriptionByNSURI(nsURI);
      String location = null;
      if (md.location.matches("installed")) {
        location = "platform:/plugin/" + md.plugin + "/" + md.model;
      } else {
        location = "platform:/resource/" + md.plugin + "/" + md.model;
      }
      try {
        logger.info(location);
        QvtLib.Model m = qvtLib.new EMFXMIModel(URI.createURI(location));
        m.load();
        Iterator iter = m.getAllContents();
        while (iter.hasNext()) {
          EObject eobj = (EObject) iter.next();
          if (eobj instanceof Module) {
            Module module = (Module) eobj;
            result.add(module);
          }
        }
      } catch (Exception e) {
        logger.log(Level.SEVERE, "failed to read " + location, e);
      }
View Full Code Here

  }
 
  public void resetTransformationState(java.lang.Object self, Trace trace) throws java.lang.Throwable
  {
    //clear incremental collection to update/compile
    this.metamodelAstNodes = oclLib.new OrderedSet();
    this.metamodelElementAstNodes = oclLib.new OrderedSet();
    this.modelTypeAstNodes = oclLib.new OrderedSet();
    this.transformationAstNodes = oclLib.new OrderedSet();
    this.libraryAstNodes = oclLib.new OrderedSet();
    this.moduleElementAstNodes = oclLib.new OrderedSet();
    this.operationalTransformationsToUpdate = oclLib.new OrderedSet();
    this.librariesToUpdate = oclLib.new OrderedSet();
    this.classesToUpdate = oclLib.new OrderedSet();
    this.mappingOperationsToUpdate = oclLib.new OrderedSet();
    this.helpersToUpdate = oclLib.new OrderedSet();
    this.constructorsToUpdate = oclLib.new OrderedSet();
    this.entryOperationsToUpdate = oclLib.new OrderedSet();
    this.propertiesToUpdate = oclLib.new OrderedSet();
    this.modelTypesToUpdate = oclLib.new OrderedSet();
    this.mappingOperationsToUpdate_2 = oclLib.new OrderedSet();
    this.operationsToCreateBody = oclLib.new OrderedSet();
    this.contextualPropertiesToCreateInit = oclLib.new OrderedSet();
   
    //clear resolve
    resolver.clear();
    //clear every HashMaps used for optimization
    typesForPackage.clear();
View Full Code Here

        }
      }
    } catch (Exception e) {
      logger.log(Level.SEVERE,"Unkonwn error",e);
    }
    return oclLib.new OrderedSet(packages);
  }
View Full Code Here

    if ((tmpProperties != null)
        && tmpProperties.containsKey(self.getName())) {
      String qvtTypeName = (String) tmpProperties.get(self.getName());
      AvailableVariables emptyCVariables = new AvailableVariables();
      emptyCVariables.currentVariables = oclLib.new OrderedSet();
      fr.tm.elibel.smartqvt.qvt.emof.Type typeFound = getFirstTypeInAvailablePackages(
          oclLib.new OclVoid(), qvtTypeName, emptyCVariables,
          currentPackage, oclLib.new OrderedSet(availablePackages),
          trace);
      if (typeFound instanceof fr.tm.elibel.smartqvt.qvt.emof.DataType)
        res = (fr.tm.elibel.smartqvt.qvt.emof.DataType) typeFound;
    }
    return res;
View Full Code Here

      OclLib.OrderedSet/* <Package> */packagesFound = super
          .getAllPackages(self, searchWithinAccededLibraries,
              mainTrace);

      // we need to find packages used un current package
      OclLib.OrderedSet typesInSelf = oclLib.new OrderedSet(self
          .getOwnedType());
      Iterator it1 = typesInSelf.iterator();
      while (it1.hasNext()) {
        fr.tm.elibel.smartqvt.qvt.emof.Type t = (fr.tm.elibel.smartqvt.qvt.emof.Type) it1
            .next();
        if (t instanceof fr.tm.elibel.smartqvt.qvt.emof.Class) {
          fr.tm.elibel.smartqvt.qvt.emof.Class c = (fr.tm.elibel.smartqvt.qvt.emof.Class) t;
View Full Code Here

  int getAllTypesModelTypeNbCAll = 0;

  public OrderedSet getAllTypes(ModelType self,
      java.lang.Boolean searchWithinAccededLibraries, Trace mainTrace)
      throws java.lang.Throwable {
    OrderedSet result = (OrderedSet) getAllTypesModelTypeHM.get(self);
    if (result == null) {
      result = super.getAllTypes(self, searchWithinAccededLibraries,
          mainTrace);
      getAllTypesModelTypeHM.put(self, result);
    }
View Full Code Here

TOP

Related Classes of fr.tm.elibel.smartqvt.stdlibs.OclLib.OrderedSet

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.