Examples of rebind()


Examples of com.clarkparsia.pellet.rules.BindingHelper.rebind()

   
    BuiltInAtom oneVarAtom = new BuiltInAtom( Namespaces.SWRLB + "tokenize", x, data, semicolan );
    BindingHelper sharedVarHelper = StringOperators.tokenize.createHelper( oneVarAtom );
    assertTrue( sharedVarHelper.getBindableVars( emptyCollection ).equals( xSingleton ) );
    VariableBinding emptyBinding = new VariableBinding( kb.getABox() );
    sharedVarHelper.rebind( emptyBinding );
   
    VariableBinding fillBinding = new VariableBinding( kb.getABox() );
    List<String> expected = Arrays.asList( new String[] { "hi", "bye", "foo", "bar" } );
    List<String> tokens = new ArrayList<String>();
    while ( sharedVarHelper.selectNextBinding() ) {
View Full Code Here

Examples of com.foundationdb.qp.operator.Rebindable.rebind()

                    checkOnlineError = true;
                    checkers.clear();
                    txnService.rollbackTransactionIfOpen(session);
                    txnService.beginTransaction(session);
                    cursor.closeTopLevel();
                    rebindable.rebind((lastCommitted == null) ? null : lastCommitted.hKey(), true);
                    cursor.openTopLevel();
                }
            }
        } finally {
            cursor.closeTopLevel();
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntModel.rebind()

    assertFalse( ((PelletInfGraph) model.getGraph()).getKB().isConsistent() );

    String ns = "http://www.example.org/test#";
    Property prop = model.getBaseModel().getProperty( ns + "ssn" );
    prop.removeAll( RDFS.range );
    model.rebind();

    assertTrue( ((PelletInfGraph) model.getGraph()).isConsistent() );
  }

  @Ignore("Inverse functional datatype property support conflicts with changes in r2442 and 2443")
View Full Code Here

Examples of com.hp.hpl.jena.reasoner.InfGraph.rebind()

                new Triple(a, r, d)
            } );
        Graph ndata = Factory.createGraphMem();
        ndata.add(new Triple(a, p, d));
        ndata.add(new Triple(d, p, b));
        infgraph.rebind(ndata);
        TestUtil.assertIteratorValues(this,
            infgraph.find(null, r, null),
            new Object[] {
                new Triple(a, r, b)
            } );
View Full Code Here

Examples of java.rmi.registry.Registry.rebind()

                System.err.println("Continuing...");
            }
        }
        try {
            Registry reg = LocateRegistry.getRegistry(this.rmiPort);
            reg.rebind(JMETER_ENGINE_RMI_NAME, this);
            log.info("Bound to registry on port " + this.rmiPort);
        } catch (Exception ex) {
            log.error("rmiregistry needs to be running to start JMeter in server " + "mode\n\t" + ex.toString());
            // Throw an Exception to ensure caller knows ...
            throw new RemoteException("Cannot start. See server log file.");
View Full Code Here

Examples of javax.naming.Context.rebind()

    ResolveResult r = findContextFor(name);
    Context ctx = (Context) r.getResolvedObj();
    String rname = r.getRemainingName().toString();

    // Rebind the name in its proper context
    ctx.rebind(rname, obj);
  }

  /**
   * Unbinds the named object.
   * Removes the terminal atomic name in name
View Full Code Here

Examples of javax.naming.Context.rebind()

  /** Binds an object to the JNDI context. */
  void bind(String name, Object obj) {
    try {
      Context ctx = new InitialContext();
      ctx.rebind(name, obj);
      if (! boundNames.contains(name))
        boundNames.add(name);
    } catch (Exception e) {
      if (logger.isLoggable(BasicLevel.WARN))
        logger.log(BasicLevel.WARN,
View Full Code Here

Examples of javax.naming.Context.rebind()

        assertNotNull("Created subcontext TestRebindContext must not be null",
                child);
        Context rebindChild = child.createSubcontext("ChildRebind");
        assertNotNull("Created subcontext rebindChild must not be null",
                rebindChild);
        rebindChild.rebind(
                "java:/comp/env/TestRebindContext/ChildRebind/integer",
                new Integer(25));
        rebindChild.close();
        child.close();
View Full Code Here

Examples of javax.naming.Context.rebind()

            {
               jbDest = new JBossTopic(destination.getName());
            }
         }
        
         c.rebind(jndiNameInContext, jbDest);        
      }
           
      if (destination.isQueue())
      {
         queueMap.put(destination.getName(), destination);
View Full Code Here

Examples of javax.naming.Context.rebind()

         name = jndiName.substring(idx + 1);
      }
      boolean failed=false;
      try
      {
         context.rebind(name,o);
      }
      catch (Exception ignored)
      {
         failed=true;
      }
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.