Examples of addModel()


Examples of com.asakusafw.dmdl.analyzer.DmdlAnalyzer.addModel()

     */
    protected DmdlSemantics resolve0() throws DmdlSemanticException {
        AstScript script = parse();
        DmdlAnalyzer result = new DmdlAnalyzer(typeDrivers, attributeDrivers);
        for (AstModelDefinition<?> model : script.models) {
            result.addModel(model);
        }
        DmdlSemantics resolved = result.resolve();
        return resolved;
    }

View Full Code Here

Examples of com.sun.xml.internal.ws.policy.sourcemodel.PolicySourceModelContext.addModel()

        final PolicySourceModelContext modelContext = PolicySourceModelContext.createContext();
        for (String policyUri : urisNeeded) {
            final PolicySourceModel sourceModel = modelsNeeded.get(policyUri);
            try {
                sourceModel.expand(modelContext);
                modelContext.addModel(new URI(policyUri), sourceModel);
            } catch (URISyntaxException e) {
                LOGGER.logSevereException(e);
            } catch (PolicyException e) {
                LOGGER.logSevereException(e);
            }
View Full Code Here

Examples of com.sun.xml.ws.policy.sourcemodel.PolicySourceModelContext.addModel()

        final PolicySourceModelContext modelContext = PolicySourceModelContext.createContext();
        for (String policyUri : urisNeeded) {
            final PolicySourceModel sourceModel = modelsNeeded.get(policyUri);
            try {
                sourceModel.expand(modelContext);
                modelContext.addModel(new URI(policyUri), sourceModel);
            } catch (URISyntaxException e) {
                LOGGER.logSevereException(e);
            } catch (PolicyException e) {
                LOGGER.logSevereException(e);
            }
View Full Code Here

Examples of com.volantis.mcs.xdime.xforms.model.XFormBuilder.addModel()

            throws XDIMEException {

        XDIMEContextInternal context = new XDIMEContextImpl();
        final XFormBuilder xFormBuilder = context.getXFormBuilder();
        EmulatedXFormDescriptor fd = new EmulatedXFormDescriptor();
        xFormBuilder.addModel(MODEL_ID, fd);
        context.setInitialRequestContext(requestContext);

        attributes = new XDIMEAttributesImpl(XFormElements.SETVALUE);
        attributes.setValue(XDIMESchemata.XML_EVENTS_NAMESPACE, "event", eventName);
        attributes.setValue("", XDIMEAttribute.REF.toString(), referencedSubmission);
View Full Code Here

Examples of com.webobjects.eoaccess.EOModelGroup.addModel()

  private void reloadModel(EOModel model) {
    log.echo("JRebel: reloading EOModel " + model.name() + " (" + model.hashCode() + ")");
    EOModel newModel = new EOModel(model.pathURL());
    EOModelGroup modelGroup = model.modelGroup();
    modelGroup.removeModel(model);
    modelGroup.addModel(newModel);
    for (Map.Entry<EOObjectStoreCoordinator, EOModelGroup> entry : oscCache.entrySet()) {
      if (modelGroup == entry.getValue()) {
        EOObjectStoreCoordinator osc = entry.getKey();
        for (Object obj : osc.cooperatingObjectStores()) {
          EOCooperatingObjectStore store = (EOCooperatingObjectStore) obj;
View Full Code Here

Examples of edu.isi.karma.rdf.GenericRDFGenerator.addModel()

    GenericRDFGenerator gRDFGen = new GenericRDFGenerator(null);

    R2RMLMappingIdentifier rmlID = new R2RMLMappingIdentifier(r2rmlURI,
        new URL(r2rmlURI));
    gRDFGen.addModel(rmlID);

    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);

    URIFormatter uriFormatter = new URIFormatter();
View Full Code Here

Examples of it.uniroma1.dptu.stan.solver.SolverFactory.addModel()

    solutionModel.fireTableRowsDeleted(0, nSolutions - 1);
      }

      SolverFactory solverFactory = SolverFactory.newInstance();
      try {
    solverFactory.addModel(scenery);
    bgSolver = new BGSolver(solverFactory);
      } catch(SolverException ex) {
    lblMessage.setForeground(Color.RED);
    lblMessage.setText(ex.getLocalizedMessage());
    scenery.setStatus(Data.STATUS_ERROR);
View Full Code Here

Examples of net.paoding.rose.web.Invocation.addModel()

        Invocation inv = rose.getInvocation();

        // creates parameter binding result (not bean, just simple type, like int, Integer, int[] ...
        ParameterBindingResult paramBindingResult = new ParameterBindingResult(inv);
        String paramBindingResultName = MODEL_KEY_PREFIX + paramBindingResult.getObjectName();
        inv.addModel(paramBindingResultName, paramBindingResult);

        // resolves method parameters, adds the method parameters to model
        Object[] methodParameters = methodParameterResolver.resolve(inv, paramBindingResult);
        ((InvocationBean) inv).setMethodParameters(methodParameters);
        String[] parameterNames = methodParameterResolver.getParameterNames();
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.resolver.ExtensibleModelResolver.addModel()

                // Scan the contribution and list the artifacts contained in it
                boolean contributionMetadata = false;
                List<Artifact> artifacts = scanner.scan(contribution);
                for (Artifact artifact : artifacts) {
                    // Add the deployed artifact model to the contribution
                    modelResolver.addModel(artifact, context);

                    monitor.pushContext("Artifact: " + artifact.getURI());

                    Artifact oldArtifact = context.setArtifact(artifact);
                    try {
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.resolver.ExtensibleModelResolver.addModel()

                                                   context);
                        if (model != null) {
                            artifact.setModel(model);

                            // Add the loaded model to the model resolver
                            modelResolver.addModel(model, context);

                            // Merge contribution metadata into the contribution model
                            if (model instanceof ContributionMetadata) {
                                contributionMetadata = true;
                                ContributionMetadata c = (ContributionMetadata)model;
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.