Examples of wrap()


Examples of client.net.sf.saxon.ce.dom.HTMLDocumentWrapper.wrap()

       HTMLDocumentWrapper docWrapper =  new HTMLDocumentWrapper(doc, doc.getURL(), config, jsDocType);
       return SingletonIterator.makeIterator(docWrapper);
        } else {
      DocType jsDocType = (page == Document.get())? DocType.UNKNOWN : DocType.NONHTML;
          HTMLDocumentWrapper htmlDoc = new HTMLDocumentWrapper(page, page.getURL(), config, jsDocType);
          HTMLNodeWrapper htmlNode = htmlDoc.wrap((Node) jsValue);
          return SingletonIterator.makeIterator(htmlNode);
        }         
   }
      
   
View Full Code Here

Examples of com.caucho.config.bytecode.ScopeAdapter.wrap()

      _scopeAdapterBean = scopeAdapterBean;
     
      _context = context;
     
      ScopeAdapter scopeAdapter = ScopeAdapter.create(bean);
      _scopeAdapter = scopeAdapter.wrap(createNormalInstanceFactory(bean));
    }
   
    protected void validate()
    {
      validateNormal(_bean);
View Full Code Here

Examples of com.caucho.es.Global.wrap()

    int nColumns = md.getColumnCount();
    for (int i = 0; i < nColumns; i++) {
      String name = md.getColumnName(i + 1);
      Object value = get(rs, i + 1);

      obj.setProperty(name, global.wrap(value));
    }

    return obj;
  }
View Full Code Here

Examples of com.caucho.hessian.io.Deflation.wrap()

    try{
      fos = new FileOutputStream(fileName);
      BufferedOutputStream bos = new BufferedOutputStream(fos);
      Hessian2Output hos = new Hessian2Output(bos);
      Deflation dos = new Deflation();
      return dos.wrap(hos);
    }
    catch(Exception e){
      MessageGenerator.briefError("Problem opening stream for file: " + fileName);
    }
    return null;
View Full Code Here

Examples of com.caucho.quercus.program.JavaClassDef.wrap()

    JavaClassDef actorClassDef =
      env.getJavaClassDefinition(BamPhpServiceManager.class);

    env.setGlobalValue("_quercus_bam_service_manager",
                       actorClassDef.wrap(env, this));
    env.setGlobalValue(type, BooleanValue.TRUE);
    env.setGlobalValue("_quercus_bam_service_address", StringValue.create(address));

    return env;
  }
View Full Code Here

Examples of com.sun.tools.javac.api.ClientCodeWrapper.wrap()

                    }
                }
            }

            if (diagnosticListener != null)
                context.put(DiagnosticListener.class, ccw.wrap(diagnosticListener));

            if (out == null)
                context.put(Log.outKey, new PrintWriter(System.err, true));
            else if (out instanceof PrintWriter)
                context.put(Log.outKey, ((PrintWriter) out));
View Full Code Here

Examples of dynaop.ProxyFactory.wrap()

    Set principals = new HashSet();
    subject.setPrincipals(principals);
    Subject.set(subject);

    // We create an object which has protected methods
    SecureObject object = (SecureObject) proxyFactory.wrap(new SecureObjectImpl("Dont change me!"));
    System.out.print("We try to call setName() on \""+object.getName()+"\" ... ");
    try {
      object.setName("Changed!");
    } catch (Exception e) {
      System.out.println("denied.");
View Full Code Here

Examples of erjang.driver.IO.BARR.wrap()

      void visit(int aByte) {
        out.write(aByte);
      }
     
    });
    return out.wrap();
  }

  public static EBitString collect_bitstring( EObject io_list ) {
   
    EBitString bin;
View Full Code Here

Examples of freemarker.ext.beans.BeansWrapper.wrap()

        Object[] args = arguments.toArray();
        BeansWrapper wrapper = getWrapper();
        for (int i = 0; i < args.length; i++) {
            args[i] = wrapper.unwrap((TemplateModel)args[i]);
        }
        return wrapper.wrap(((Function)getScriptable()).call(cx,
                ScriptableObject.getTopLevelScope(fnThis), fnThis, args));
    }
}
View Full Code Here

Examples of freemarker.ext.beans.Java7MembersOnlyBeansWrapper.wrap()

            dataModel.put("m2", w2.wrap(test));
            dataModel.put("m3", w3.wrap(test));
            dataModel.put("m4", w4.wrap(test));
            dataModel.put("m5", w5.wrap(test));
            dataModel.put("m6", w6.wrap(test));
            dataModel.put("m7", w7.wrap(test));
   
            dataModel.put("s1", w1.wrap("hello"));
            dataModel.put("s2", w1.wrap("world"));
            dataModel.put("s3", w5.wrap("hello"));
            dataModel.put("s4", w5.wrap("world"));
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.