Package com.rometools.rome.io

Examples of com.rometools.rome.io.ModuleGenerator


    public void generateModules(final List<Module> modules, final Element element) {
        final Map<String, ModuleGenerator> generators = getPluginMap();
        for (final Module module : modules) {
            final String namespaceUri = module.getUri();
            final ModuleGenerator generator = generators.get(namespaceUri);
            if (generator != null) {
                generator.generate(module, element);
            }
        }
    }
View Full Code Here


    public Set<Namespace> getAllNamespaces() {
        if (allNamespaces == null) {
            allNamespaces = new HashSet<Namespace>();
            final List<String> mUris = getModuleNamespaces();
            for (final String mUri : mUris) {
                final ModuleGenerator mGen = getGenerator(mUri);
                allNamespaces.addAll(mGen.getNamespaces());
            }
        }
        return allNamespaces;
    }
View Full Code Here

TOP

Related Classes of com.rometools.rome.io.ModuleGenerator

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.