Package org.apache.cocoon.xml

Examples of org.apache.cocoon.xml.NamespacesTable$Entry


    throws ProcessingException, SAXException, IOException {
        // Read parameters
        this.m_parallel = parameters.getParameterAsBoolean("parallel", this.defaultParallel);

        // Init transformer state
        this.m_namespaces = new NamespacesTable();
        this.m_resolver = resolver;
        this.m_validity = null;
        this.x_parameters = null;
        this.x_value = null;
        this.m_buffering = false;
View Full Code Here


        /* Init transformer state */
        if (this.pipe.parallel) {
            this.environment = CocoonComponentManager.getCurrentEnvironment();
            this.processor = CocoonComponentManager.getCurrentProcessor();
        }
        this.namespaces = new NamespacesTable();
        this.resolver = resolver;
        this.validity = null;

        // Set root include pipe as consumer.
        // Won't use setter methods here - they are overridden
View Full Code Here

    }

    public ExpressionContext(ExpressionContext closure) {
        this.closure = closure;
        if (closure == null) {
            this.namespaces = new NamespacesTable();
        } else {
            // Reuse the parent one. Users of the context should correctly enter and leave namespace scopes.
            this.namespaces = closure.namespaces;
        }
    }
View Full Code Here

        /* Init transformer state */
        if (this.pipe.parallel) {
            this.environment = CocoonComponentManager.getCurrentEnvironment();
            this.processor = CocoonComponentManager.getCurrentProcessor();
        }
        this.namespaces = new NamespacesTable();
        this.resolver = resolver;
        this.validity = null;

        // Set root include pipe as consumer.
        // Won't use setter methods here - they are overridden
View Full Code Here

    }

    public ExpressionContext(ExpressionContext closure) {
        this.closure = closure;
        if (closure == null) {
            this.namespaces = new NamespacesTable();
        } else {
            // Reuse the parent one. Users of the context should correctly enter and leave namespace scopes.
            this.namespaces = closure.namespaces;
        }
    }
View Full Code Here

                    for (TestMethod testMethod : inputTestData.getTestMethod()) {
                        List<TestRecord> originalTestRecords = testMethod.getTestRecord();
                        for (TestRecord originalTestRecord : originalTestRecords) {
                            if (originalTestRecord.getId().equals(testRecord.get(RECORD_POSITION))) {
                                OutputData outputData = new OutputData();
                                Entry outputEntry = new Entry();
                                outputEntry.setKey(ACTUAL_RESULT);
                                outputEntry.setValue(testRecord.get(ACTUAL_RESULT).toString());
                                outputData.getEntry().add(outputEntry);
                                originalTestRecord.setOutputData(outputData);
                                outputDataAdded = true;
                                break;
                            }
View Full Code Here

                    for (TestMethod testMethod : inputTestData.getTestMethod()) {
                        List<TestRecord> originalTestRecords = testMethod.getTestRecord();
                        for (TestRecord originalTestRecord : originalTestRecords) {
                            if (originalTestRecord.getId().equals(testRecord.get(RECORD_POSITION))) {
                                OutputData outputData = new OutputData();
                                Entry outputEntry = new Entry();
                                outputEntry.setKey(ACTUAL_RESULT);
                                outputEntry.setValue(testRecord.get(ACTUAL_RESULT).toString());
                                Entry durationEntry = new Entry();
                                durationEntry.setKey(DURATION);
                                durationEntry.setValue(testRecord.get(DURATION).toString());
                                outputData.getEntry().add(outputEntry);
                                outputData.getEntry().add(durationEntry);
                                if(testRecord.get(TEST_STATUS) != null){
                                    Entry statusEntry = new Entry();
                                    statusEntry.setKey(TEST_STATUS);
                                    statusEntry.setValue(testRecord.get(TEST_STATUS).toString());
                                    outputData.getEntry().add(statusEntry);
                                }
                               
                               
                                originalTestRecord.setOutputData(outputData);
                                outputDataAdded = true;
                                break;
                            }
                        }
                        if (outputDataAdded) {
                            break;
                        }
                    }
                }else{
                    //Method did not return any data. So only write the duration as output
                    for (TestMethod testMethod : inputTestData.getTestMethod()) {
                        List<TestRecord> originalTestRecords = testMethod.getTestRecord();
                        for (TestRecord originalTestRecord : originalTestRecords) {
                            if (originalTestRecord.getId().equals(testRecord.get(RECORD_POSITION))) {
                                OutputData outputData = new OutputData();
                                Entry durationEntry = new Entry();
                                durationEntry.setKey(DURATION);
                                durationEntry.setValue(testRecord.get(DURATION).toString());
                                outputData.getEntry().add(durationEntry);
                                originalTestRecord.setOutputData(outputData);
                                outputDataAdded = true;
                                break;
                            }
View Full Code Here

TOP

Related Classes of org.apache.cocoon.xml.NamespacesTable$Entry

Copyright © 2018 www.massapicom. 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.