Examples of wrap()


Examples of org.syrup.helpers.XMLOutput.wrap()

    public static int match(WorkSpace sp, PTaskTemplate template,
        OutputStream out) throws Exception
    {

        XMLOutput o = new XMLOutput();
        SerializationHandler h = o.wrap(out);

        PTask p[] = sp.match(template);

        // Outputs the fetched PTasks to the OutputStream in XML format.
        o.startDocument("match", h);
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNErrorMessage.wrap()

                error = svne;
            }
        } else {
            SVNErrorCode code = count <= 1 ? SVNErrorCode.WC_BAD_ADM_LOG_START : SVNErrorCode.WC_BAD_ADM_LOG;
            SVNErrorMessage err = SVNErrorMessage.create(code, "Unrecognized logfile element ''{0}'' in ''{1}''", new Object[]{name, adminArea.getRoot()});
            SVNErrorManager.error(err.wrap("In directory ''{0}''", adminArea.getRoot()), SVNLogType.WC);
        }

        myLogCount = count;
       
        if (error != null) {
View Full Code Here

Examples of org.waveprotocol.wave.model.document.util.XmlStringBuilder.wrap()

  private void assertManifestXml(final String expected) {
    manifestDoc.with(new Action() {
      @Override
      public <N, E extends N, T extends N> void exec(MutableDocument<N, E, T> doc) {
        XmlStringBuilder exp = XmlStringBuilder.createFromXmlString(expected);
        assertStructureEquivalent(exp.wrap("conversation"), doc);
      }
    });
  }

  /**
 
View Full Code Here

Examples of org.wildfly.extension.undertow.deployment.ConfiguredHandlerWrapper.wrap()

        Map<String, String> params = unwrap(model);
        UndertowLogger.ROOT_LOGGER.debugf("Creating http handler %s from module %s with parameters %s", className, moduleName, params);
        Class<?> clazz = getHandlerClass(className, moduleName);
        ConfiguredHandlerWrapper wrapper = new ConfiguredHandlerWrapper(clazz, params);
        if (predicate != null) {
            return Handlers.predicate(predicate, wrapper.wrap(next), next);
        } else {
            return wrapper.wrap(next);
        }
    }
View Full Code Here

Examples of org.xmlBlaster.client.key.GetKey.wrap()

      wrap.init(type, limit, confirm, queryStr);

      try {
         log.info("Sending command string:\n" + wrap.toXml());
         GetKey key = new GetKey(glob, "__sys__jdbc");
         key.wrap(wrap.toXml());
         GetQos qos = new GetQos(glob);
         // get() blocks until the query is finished ...
         MsgUnit[] msgUnitArr = corbaConnection.get(key.toXml(), qos.toXml());
         if (msgUnitArr.length > 0)
            System.out.println(new String(msgUnitArr[0].getContent()));
View Full Code Here

Examples of org.zeromq.ZMsg.wrap()

                    int random_peer = rand.nextInt(argv.length - 1) + 1;
                    msg.push(argv[random_peer]);
                    msg.send(cloudbe);
                } else {
                    ZFrame frame = workers.remove(0);
                    msg.wrap(frame);
                    msg.send(localbe);
                    capacity--;
                }
            }
        }
View Full Code Here

Examples of rx.operators.AtomicObservableSubscription.wrap()

    super(new Func1<Observer<T>, Subscription>() {
      @Override
      public Subscription call(Observer<T> observer) {
        final rx.operators.AtomicObservableSubscription subscription = new AtomicObservableSubscription();

        subscription.wrap(new Subscription() {
          @Override
          public void unsubscribe() {
            // on unsubscribe remove it from the map of outbound observers
            // to notify
            observers.remove(subscription);
View Full Code Here

Examples of rx.operators.SafeObservableSubscription.wrap()

      @Override
      public Subscription onSubscribe(Observer<? super T> observer) {
        final rx.operators.SafeObservableSubscription subscription = new
          SafeObservableSubscription();

        subscription.wrap(new Subscription() {
          @Override
          public void unsubscribe() {
            // on unsubscribe remove it from the map of outbound observers
            // to notify
            observers.remove(subscription);
View Full Code Here

Examples of soot.jimple.toolkits.callgraph.Filter.wrap()

                if (!container.isConcrete()) {
                    // System.out.println("skipping " + container + ": not concrete");
                    continue;
                }

                if (!instanceInvokesFilter.wrap(cg.edgesOutOf(container))
                        .hasNext()) {
                    continue;
                }

                JimpleBody b = (JimpleBody) container.getActiveBody();
View Full Code Here

Examples of sun.invoke.util.Wrapper.wrap()

    private static boolean checkInt(Class<?> type, Object x) {
        assert(x instanceof Integer);
        if (type == int.classreturn true;
        Wrapper w = Wrapper.forBasicType(type);
        assert(w.isSubwordOrInt());
        Object x1 = Wrapper.INT.wrap(w.wrap(x));
        return x.equals(x1);
    }
    private static boolean checkRef(Class<?> type, Object x) {
        assert(!type.isPrimitive());
        if (x == nullreturn 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.