Examples of wrap()


Examples of net.sf.jelly.apt.freemarker.APTJellyObjectWrapper.wrap()

*/
public class TestFreemarkerWrapping extends TestCase {

  public void testWrapEnums() throws Exception {
    APTJellyObjectWrapper wrapper = new APTJellyObjectWrapper();
    TemplateModel wrapped = wrapper.wrap(KnownXmlType.STRING);
    assertTrue(wrapped instanceof TemplateHashModel);
    TemplateHashModel hash = ((TemplateHashModel) wrapped);
    assertNotNull(hash.get("anonymous"));

    wrapped = wrapper.wrap(ContentType.COMPLEX);
View Full Code Here

Examples of net.sf.saxon.dom.DocumentWrapper.wrap()

    public NodeInfo setSource(Source source) throws net.sf.saxon.trans.XPathException {
        if (source instanceof DOMSource) {
            Node node = ((DOMSource)source).getNode();
            String baseURI = source.getSystemId();
            DocumentWrapper documentWrapper = new DocumentWrapper(node.getOwnerDocument(), baseURI, config);
            NodeWrapper nodeWrapper = documentWrapper.wrap(node);
            if (stripSpace) {
                SpaceStrippedDocument sdoc = new SpaceStrippedDocument(documentWrapper, AllElementStripper.getInstance());
                return sdoc.wrap(nodeWrapper);
            } else {
                return nodeWrapper;
View Full Code Here

Examples of net.sf.saxon.om.StrippedDocument.wrap()

                start = (NodeInfo)source;
            }
            if (stripper != null) {
                DocumentInfo docInfo = start.getDocumentRoot();
                StrippedDocument strippedDoc = new StrippedDocument(docInfo, stripper);
                start = strippedDoc.wrap(start);
            }
            return start;

        } else {
            // we have a SAXSource or StreamSource
View Full Code Here

Examples of net.sf.saxon.xom.DocumentWrapper.wrap()

     
      // remember the DocWrapper for the given root so we can reuse it later
      if (docWrappers != null) docWrappers.put(root, docWrapper);
    }
   
    return docWrapper.wrap(node);
  }
 
  /** Setup variables of context, if any */
  private void setupDynamicContext(
      Node contextNode, DynamicQueryContext dynamicContext, Map variables)
View Full Code Here

Examples of net.sourceforge.stripes.controller.ExecutionContext.wrap()

                ctx.setLifecycleStage(LifecycleStage.ActionBeanResolution);
                ctx.setActionBeanContext(tempContext);

                // Run action bean resolution
                ctx.setInterceptors(config.getInterceptors(LifecycleStage.ActionBeanResolution));
                resolution = ctx.wrap( new Interceptor() {
                    public Resolution intercept(ExecutionContext ec) throws Exception {
                        ActionBean bean = resolver.getActionBean(ec.getActionBeanContext(), binding);
                        ec.setActionBean(bean);
                        return null;
                    }
View Full Code Here

Examples of org.apache.axis2.jaxws.wrapper.JAXBWrapperTool.wrap()

            // ParameterValues.  We will use the wrapper tool to do this.
            // Create the inputs to the wrapper tool
            if (pdeList.size() == 0) {
                if (returnType == void.class) {
                    // Use the short-cut for void return
                    object = wrapperTool.wrap(cls,
                            (String) null,
                            null,
                            null,
                            null);
                } else {
View Full Code Here

Examples of org.apache.axis2.jaxws.wrapper.impl.JAXBWrapperToolImpl.wrap()

            // ParameterValues.  We will use the wrapper tool to do this.
            // Create the inputs to the wrapper tool
            if (pdeList.size() == 0) {
                if (returnType == void.class) {
                    // Use the short-cut for void return
                    object = wrapperTool.wrap(cls,
                            (String) null,
                            null,
                            null,
                            null);
                } else {
View Full Code Here

Examples of org.apache.camel.spi.Policy.wrap()

        Policy policy = resolvePolicy(routeContext);
        if (policy == null) {
            throw new IllegalArgumentException("No policy configured: " + this);
        }
        return policy.wrap(childProcessor);
    }

    protected Policy resolvePolicy(RouteContext routeContext) {
        if (policy == null) {
            policy = routeContext.lookup(getRef(), Policy.class);
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.nodetype.NodeTypeCache.wrap()

            public void unregisterNodeTypes(Name[] nodeTypeNames) throws NoSuchNodeTypeException, RepositoryException {
                service.unregisterNodeTypes(sessionInfo, nodeTypeNames);
            }
        };
        NodeTypeCache ntCache = NodeTypeCache.getInstance(service, sessionInfo.getUserID());
        ntst = ntCache.wrap(ntst);
        return NodeTypeRegistryImpl.create(ntst, nsRegistry);
    }

    /**
     * @param entProvider
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.document.persistentCache.PersistentCache.wrap()

            PersistentCache p = getPersistentCache();
            if (p != null) {
                if (docNodeStore != null) {
                    docNodeStore.setPersistentCache(p);
                }
                cache = p.wrap(docNodeStore, docStore, cache, cacheType);
            }
            return cache;
        }
       
        private PersistentCache getPersistentCache() {
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.