Examples of toSAX()


Examples of de.danet.an.workflow.api.ProcessDefinition.toSAX()

        }

        SOAPBodyElement defNode = createWfxmlResponseNode(respMsg,
                Consts.GET_DEFINITION_RESPONSE);

        SAXEventBuffer sax = pd.toSAX();
        importSAXAsChild(respMsg, defNode, sax);
    }

    /**
     * Sets the XPDL process definition.
View Full Code Here

Examples of org.apache.cocoon.components.source.URLSource.toSAX()

        try {
            URLFactory factory = (URLFactory)this.manager.lookup(URLFactory.ROLE);
            URLSource source = new URLSource(factory.getURL(xconfURL), this.manager);
            try {
                SAXConfigurationHandler handler = new SAXConfigurationHandler();
                source.toSAX(handler);
                builtin = handler.getConfiguration();
            } finally {
                this.manager.release((Component)factory);
                if (source != null) {
                    source.recycle();
View Full Code Here

Examples of org.apache.cocoon.components.source.helpers.SourceProperty.toSAX()

        for (int i = 0; i<properties.length; i++) {
            property = properties[i];

            this.contentHandler.startPrefixMapping("",
                                                   property.getNamespace());
            property.toSAX(consumer);
            this.contentHandler.endPrefixMapping("");
        }

        this.contentHandler.endElement(SOURCE_NS, PROPERTIES_NODE_NAME,
                                       PROPERTIES_NODE_QNAME);
View Full Code Here

Examples of org.apache.cocoon.components.source.helpers.SourceProperty.toSAX()

            AttributesImpl attributes = new AttributesImpl();
            this.contentHandler.startElement(URI, PROPERTIES_NODE_NAME,
                                             PROPERTIES_NODE_QNAME, attributes);
            for (int i = 0; i < properties.length; i++) {
                property = properties[i];
                property.toSAX(this.contentHandler);
            }
            this.contentHandler.endElement(URI, PROPERTIES_NODE_NAME,
                                           PROPERTIES_NODE_QNAME);
        }
    }
View Full Code Here

Examples of org.apache.cocoon.components.source.helpers.SourceProperty.toSAX()

            AttributesImpl attributes = new AttributesImpl();
            this.contentHandler.startElement(URI, PROPERTIES_NODE_NAME,
                                             PROPERTIES_NODE_QNAME, attributes);
            for (int i = 0; i < properties.length; i++) {
                property = properties[i];
                property.toSAX(this.contentHandler);
            }
            this.contentHandler.endElement(URI, PROPERTIES_NODE_NAME,
                                           PROPERTIES_NODE_QNAME);
        }
    }
View Full Code Here

Examples of org.apache.cocoon.environment.Source.toSAX()

        }

        Source source = null;
        try {
            source = this.sourceResolver.resolve(src);
            source.toSAX(consumer);
        } catch (IOException e) {
            getLogger().error("CIncludeTransformer", e);
            throw new SAXException("CIncludeTransformer could not read resource", e);
        } catch (ProcessingException e){
            getLogger().error("Could not stream input", e);
View Full Code Here

Examples of org.apache.cocoon.environment.Source.toSAX()

            ls.setOutputStream(this.stream);

            Source redirectSource = null;
            try {
                redirectSource = this.resolve(newURL);
                redirectSource.toSAX(ls);
            } catch (SAXException se) {
                throw new IOException("SAXException: " + se);
            } catch (ProcessingException pe) {
                throw new IOException("ProcessingException: " + pe);
            } finally {
View Full Code Here

Examples of org.apache.cocoon.environment.Source.toSAX()

                        getLogger().debug("(Re)Loading " + descriptor);
                        if (conf == null)
                            conf = new ConfigurationHelper();

                        SAXConfigurationHandler builder = new SAXConfigurationHandler();
                        resource.toSAX(builder);

                        conf.lastModified = resource.getLastModified();
                        conf.configuration = builder.getConfiguration();

                        this.cacheConfiguration(descriptor, conf);
View Full Code Here

Examples of org.apache.cocoon.environment.Source.toSAX()

                    if (conf == null)
                    conf = new ConfigurationHelper();

                    SAXConfigurationHandler builder = new SAXConfigurationHandler();
                    source.toSAX(builder);

                    conf.lastModified = source.getLastModified();
                    conf.configuration = builder.getConfiguration();

                    XSPFormValidatorHelper.cacheConfiguration(descriptor, conf);
View Full Code Here

Examples of org.apache.cocoon.environment.Source.toSAX()

                        getLogger().debug("(Re)Loading " + descriptor);
                        if (conf == null)
                            conf = new ConfigurationHelper();
     
                        SAXConfigurationHandler builder = new SAXConfigurationHandler();
                        resource.toSAX(builder);
     
                        conf.lastModified = resource.getLastModified();
                        conf.configuration = builder.getConfiguration();
     
                        this.cacheConfiguration(descriptor, conf);
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.