Package com.volantis.xml.pipeline.sax

Examples of com.volantis.xml.pipeline.sax.XMLProcess.endElement()


            } else {
                // Just a bunch of characters.
                String chars = value.toString();
                consumer.characters(chars.toCharArray(), 0, chars.length());
            }
            consumer.endElement(partNamespace, part.getName(), partQName);
        }

        // If the parts have a prefix we need to unmap them now.
        if (partPrefix != null) {
            consumer.endPrefixMapping(partPrefix);
View Full Code Here


        if (partPrefix != null) {
            consumer.endPrefixMapping(partPrefix);
            namespaceManager.endPrefixMapping(partPrefix);
        }

        consumer.endElement(responseNamespace, MESSAGE, messageQName);
        consumer.endElement(responseNamespace, RESPONSE, responseQName);

        consumer.endPrefixMapping(responsePrefix);
        namespaceManager.endPrefixMapping(responsePrefix);
    }
View Full Code Here

            consumer.endPrefixMapping(partPrefix);
            namespaceManager.endPrefixMapping(partPrefix);
        }

        consumer.endElement(responseNamespace, MESSAGE, messageQName);
        consumer.endElement(responseNamespace, RESPONSE, responseQName);

        consumer.endPrefixMapping(responsePrefix);
        namespaceManager.endPrefixMapping(responsePrefix);
    }
View Full Code Here

        // set the next process
        XMLProcessTestable next = new XMLProcessTestable();
        process.setNextProcess(next);
       
        // invoke the method that is being tested
        process.endElement(namespaceURI, localName, qName);
       
        // retrieve the current base
        URL base =
                process.getPipeline().getPipelineContext().getCurrentBaseURI();
        // ensure that the base uri is null
View Full Code Here

        // has a next process set
        XMLProcess testable = createTestableProcess();
        prepareProcessForFlowControlTest(testable);
       
        // invoke the method being tested
        testable.endElement(NAMESPACE_URI, LOCAL_NAME, Q_NAME);
       
        // endElement event should be forwarded
        XMLProcessTestable next =
                (XMLProcessTestable) testable.getNextProcess();
        next.assertEndElementInvoked(NAMESPACE_URI, LOCAL_NAME, Q_NAME);
View Full Code Here

        // MessageAdapterProcess to forward the next adapter process which
        // it correctly does not.
        process.startProcess();
        process.startElement(NAMESPACE_URI, LOCAL_NAME, Q_NAME, ATTS);
        process.characters(CH, START, LENGTH);
        process.endElement(NAMESPACE_URI, LOCAL_NAME, Q_NAME);
        process.stopProcess();
    }

    /**
     * Override to do nothig.
View Full Code Here

            throws SAXException {

        // Get the process after the dynamic process so it does not
        // reenter itself otherwise that would cause an infinite loop.
        XMLProcess process = getTargetProcess(dynamicProcess);
        process.endElement(element.getNamespaceURI(),
                element.getLocalName(), "");
    }
}
View Full Code Here

        if ((counter & 1) == 0) {
            process.characters(SIMPLE, 0, SIMPLE_LENGTH);
        } else {
            process.startElement(element.getNamespaceURI(), "complex", "",
                    attributes);
            process.endElement(element.getNamespaceURI(), "complex", "");
        }

        counter += 1;

        return null;
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.