Package org.apache.avalon.framework.configuration

Examples of org.apache.avalon.framework.configuration.DefaultConfiguration.addChild()


        try {

            config.addChild(createConfig(ELEMENT_NAME, getName()));
            config.addChild(createConfig(ELEMENT_DESCRIPTION, this.description));
            config.addChild(createConfig(ELEMENT_VERSION, this.version));
            config.addChild(createConfig(ELEMENT_LENYA_VERSION, this.lenyaVersion));
            config.addChild(createConfig(ELEMENT_LENYA_REVISION, this.lenyaRevision));
            config.addChild(createConfig(ELEMENT_COCOON_VERSION, this.cocoonVersion));

            config.addChild(createConfig(ELEMENT_PATH_MAPPER, getPathMapper().getClass().getName()));
            config.addChild(createConfig(ELEMENT_DOCUMENT_BUILDER, ATTRIBUTE_NAME, getDocumentBuilderHint()));
View Full Code Here


            config.addChild(createConfig(ELEMENT_NAME, getName()));
            config.addChild(createConfig(ELEMENT_DESCRIPTION, this.description));
            config.addChild(createConfig(ELEMENT_VERSION, this.version));
            config.addChild(createConfig(ELEMENT_LENYA_VERSION, this.lenyaVersion));
            config.addChild(createConfig(ELEMENT_LENYA_REVISION, this.lenyaRevision));
            config.addChild(createConfig(ELEMENT_COCOON_VERSION, this.cocoonVersion));

            config.addChild(createConfig(ELEMENT_PATH_MAPPER, getPathMapper().getClass().getName()));
            config.addChild(createConfig(ELEMENT_DOCUMENT_BUILDER, ATTRIBUTE_NAME, getDocumentBuilderHint()));
           
View Full Code Here

            config.addChild(createConfig(ELEMENT_NAME, getName()));
            config.addChild(createConfig(ELEMENT_DESCRIPTION, this.description));
            config.addChild(createConfig(ELEMENT_VERSION, this.version));
            config.addChild(createConfig(ELEMENT_LENYA_VERSION, this.lenyaVersion));
            config.addChild(createConfig(ELEMENT_LENYA_REVISION, this.lenyaRevision));
            config.addChild(createConfig(ELEMENT_COCOON_VERSION, this.cocoonVersion));

            config.addChild(createConfig(ELEMENT_PATH_MAPPER, getPathMapper().getClass().getName()));
            config.addChild(createConfig(ELEMENT_DOCUMENT_BUILDER, ATTRIBUTE_NAME, getDocumentBuilderHint()));
           
            String[] languages = getLanguages();
View Full Code Here

            config.addChild(createConfig(ELEMENT_VERSION, this.version));
            config.addChild(createConfig(ELEMENT_LENYA_VERSION, this.lenyaVersion));
            config.addChild(createConfig(ELEMENT_LENYA_REVISION, this.lenyaRevision));
            config.addChild(createConfig(ELEMENT_COCOON_VERSION, this.cocoonVersion));

            config.addChild(createConfig(ELEMENT_PATH_MAPPER, getPathMapper().getClass().getName()));
            config.addChild(createConfig(ELEMENT_DOCUMENT_BUILDER, ATTRIBUTE_NAME, getDocumentBuilderHint()));
           
            String[] languages = getLanguages();
            String defaultLanguage = getDefaultLanguage();
           
View Full Code Here

            config.addChild(createConfig(ELEMENT_LENYA_VERSION, this.lenyaVersion));
            config.addChild(createConfig(ELEMENT_LENYA_REVISION, this.lenyaRevision));
            config.addChild(createConfig(ELEMENT_COCOON_VERSION, this.cocoonVersion));

            config.addChild(createConfig(ELEMENT_PATH_MAPPER, getPathMapper().getClass().getName()));
            config.addChild(createConfig(ELEMENT_DOCUMENT_BUILDER, ATTRIBUTE_NAME, getDocumentBuilderHint()));
           
            String[] languages = getLanguages();
            String defaultLanguage = getDefaultLanguage();
           
            DefaultConfiguration languagesConfig = createConfig(ELEMENT_LANGUAGES);
View Full Code Here

        while (iter.hasNext()) {
            TestElement item = (TestElement) iter.next();
            DefaultConfiguration config = new DefaultConfiguration("node", "node"); // $NON-NLS-1$ // $NON-NLS-2$

            config.addChild(getConfigForTestElement(null, item));
            List configList = getConfigsFromTree(subTree.getTree(item));
            Iterator iter2 = configList.iterator();

            while (iter2.hasNext()) {
                config.addChild((Configuration) iter2.next());
View Full Code Here

            config.addChild(getConfigForTestElement(null, item));
            List configList = getConfigsFromTree(subTree.getTree(item));
            Iterator iter2 = configList.iterator();

            while (iter2.hasNext()) {
                config.addChild((Configuration) iter2.next());
            }
            configs.add(config);
        }
        return configs;
    }
View Full Code Here

        SampleResult[] subResults = result.getSubResults();

        if (subResults != null) {
            for (int i = 0; i < subResults.length; i++) {
                config.addChild(getConfiguration(subResults[i], saveConfig));
            }
        }

        AssertionResult[] assResults = result.getAssertionResults();
View Full Code Here

        }

        AssertionResult[] assResults = result.getAssertionResults();

        if (saveConfig.saveSamplerData(result)) {
            config.addChild(createConfigForString("samplerData", result.getSamplerData())); // $NON-NLS-1$
        }
        if (saveConfig.saveAssertions() && assResults != null) {
            for (int i = 0; i < assResults.length; i++) {
                config.addChild(getConfiguration(assResults[i]));
            }
View Full Code Here

        if (saveConfig.saveSamplerData(result)) {
            config.addChild(createConfigForString("samplerData", result.getSamplerData())); // $NON-NLS-1$
        }
        if (saveConfig.saveAssertions() && assResults != null) {
            for (int i = 0; i < assResults.length; i++) {
                config.addChild(getConfiguration(assResults[i]));
            }
        }
        if (saveConfig.saveResponseData(result)) {
            config.addChild(getConfiguration(result.getResponseData()));
        }
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.