Examples of ModuleType


Examples of org.apache.geronimo.xml.ns.j2ee.application_1.ModuleType

    }

    public boolean performFinish() {
        AbstractTableWizardPage page = (AbstractTableWizardPage) getPages()[0];
        PathType path;
        ModuleType module;

        if (eObject == null) {
            eObject = getEFactory().create(ModuleType.class);
            JAXBElement plan = section.getPlan();

            module = (ModuleType)eObject;

            List moduleList = ((ApplicationType)plan.getValue()).getModule();
            if (moduleList == null) {
                moduleList = (List)getEFactory().create(ModuleType.class);
            }
            moduleList.add(eObject);
        }
        else {
            module = (ModuleType)eObject;
            module.setConnector(null);
            module.setEjb(null);
            module.setJava(null);
            module.setWeb(null);
        }

        // NOTE!! this replaces the call to processEAttributes (page);
        path = (PathType)getEFactory().create(PathType.class);
        path.setValue(page.getTextEntry(0).getText());

        if (((ModuleWizardPage)page).buttonList[0].getSelection())
            module.setConnector(path);
        else if (((ModuleWizardPage)page).buttonList[1].getSelection())
            module.setEjb(path);
        else if (((ModuleWizardPage)page).buttonList[2].getSelection())
            module.setJava(path);
        else if (((ModuleWizardPage)page).buttonList[3].getSelection())
            module.setWeb(path);
       
        String altDD = page.getTextEntry(1).getText();
        path = (PathType)getEFactory().create(PathType.class);
        path.setValue(altDD);
        module.setAltDd(path);
       
        if (section.getViewer().getInput() == section.getPlan()) {
            section.getViewer().setInput(section.getInput());
        }
View Full Code Here

Examples of org.springframework.xd.module.ModuleType

    this.validate();
  }
  //TODO: This is specific to XD stream composition. Eventually we may want to support more generic composite modules.
  private void validate() {
    Assert.isTrue(modules != null && modules.size() > 0, "at least one module required");
    ModuleType inferredType = null;
    if (modules.size() == 1) {
      inferredType = modules.get(0).getType();
    }
    else {
      ModuleType firstType = modules.get(0).getType();
      ModuleType lastType = modules.get(modules.size() - 1).getType();
      boolean hasInput = firstType != ModuleType.source;
      boolean hasOutput = lastType != ModuleType.sink;
      if (hasInput && hasOutput) {
        inferredType = ModuleType.processor;
      }
View Full Code Here

Examples of org.yinwang.pysonar.types.ModuleType


    @NotNull
    @Override
    public Type transform(@NotNull State s) {
        ModuleType mt = new ModuleType(name, file, Analyzer.self.globaltable);
        s.insert(_.moduleQname(file), this, mt, Binding.Kind.MODULE);
        if (body != null) {
            transformExpr(body, mt.table);
        }
        return mt;
View Full Code Here

Examples of uk.ac.manchester.cs.owlapi.modularity.ModuleType

    // module is extracted with top locality and thus also called top module.
    //
    // Upper-of-lower and lower-of-upper modules tend to be smaller (compared
    // to upper and lower modules) and we'll extract upper-of-lower module in
    // this example
    ModuleType moduleType = ModuleType.BOT_OF_TOP;

    // Extract the module axioms for the specified signature
    Set<OWLAxiom> moduleAxioms =
      ModularityUtils.extractModule( ontology, signature, moduleType );
    // Create an ontology for the module axioms 
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.