All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.walkmod.conf.DummyConfigurationProvider Maven / Gradle / Ivy

The newest version!
/* 
  Copyright (C) 2013 Raquel Pau and Albert Coroleu.
 
  Walkmod is free software: you can redistribute it and/or modify
  it under the terms of the GNU Lesser General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.
 
  Walkmod is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU Lesser General Public License for more details.
 
  You should have received a copy of the GNU Lesser General Public License
  along with Walkmod.  If not, see .*/
package org.walkmod.conf;

import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Map;

import org.walkmod.conf.entities.ChainConfig;
import org.walkmod.conf.entities.Configuration;
import org.walkmod.conf.entities.PluginConfig;
import org.walkmod.conf.entities.ProviderConfig;
import org.walkmod.conf.entities.TransformationConfig;
import org.walkmod.conf.entities.impl.ConfigurationImpl;

public class DummyConfigurationProvider implements ProjectConfigurationProvider {

    private Configuration config;

    private File cfgFile;

    @Override
    public void init(Configuration configuration) {
        this.config = configuration;
        cfgFile = new File("walkmod.xml");
    }

    @Override
    public void load() throws ConfigurationException {
        // TODO Auto-generated method stub

    }

    @Override
    public void addPluginConfig(PluginConfig pluginConfig, boolean recursive) throws Exception {
        // TODO Auto-generated method stub

    }

    @Override
    public void addChainConfig(ChainConfig chainCfg, boolean recursive, String before) throws Exception {
        // TODO Auto-generated method stub

    }

    @Override
    public void addTransformationConfig(String chain, String path, TransformationConfig transformationCfg,
            boolean recursive, Integer order, String before) throws Exception {
        // TODO Auto-generated method stub

    }

    @Override
    public void createConfig() throws IOException {

    }

    @Override
    public void addProviderConfig(ProviderConfig providerCfg, boolean recursive) throws Exception {
        // TODO Auto-generated method stub

    }

    @Override
    public void addModules(List modules) throws Exception {

    }

    @Override
    public void removeTransformations(String chain, List transformations, boolean recursive) throws Exception {
        // TODO Auto-generated method stub

    }

    @Override
    public void setWriter(String chain, String type, String path, boolean recursive, Map params)
            throws Exception {
        // TODO Auto-generated method stub

    }

    @Override
    public void setReader(String chain, String type, String path, boolean recursive, Map params)
            throws Exception {
        // TODO Auto-generated method stub

    }

    @Override
    public void removePluginConfig(PluginConfig pluginConfig, boolean recursive) throws Exception {
        // TODO Auto-generated method stub

    }

    @Override
    public void removeModules(List modules) throws Exception {
        // TODO Auto-generated method stub

    }

    @Override
    public void removeProviders(List providers, boolean recursive) throws Exception {
        // TODO Auto-generated method stub

    }

    @Override
    public void removeChains(List chains, boolean recursive) throws Exception {
        // TODO Auto-generated method stub

    }

    @Override
    public void addConfigurationParameter(String param, String value, String type, String category, String name,
            String chain, boolean recursive) throws Exception {
        // TODO Auto-generated method stub

    }

    @Override
    public String getFileExtension() {
        // TODO Auto-generated method stub
        return "xml";
    }

    @Override
    public Configuration getConfiguration() {

        return config;
    }

    @Override
    public File getConfigurationFile() {

        return cfgFile;
    }

    @Override
    public ProjectConfigurationProvider clone(File cfgFile) {
        DummyConfigurationProvider aux = new DummyConfigurationProvider();
        aux.cfgFile = cfgFile;
        aux.config = new ConfigurationImpl();
        return aux;
    }

    @Override
    public void addIncludesToChain(String chain, List includes, boolean recursive, boolean setToReader,
            boolean setToWriter) throws Exception {
        // TODO Auto-generated method stub

    }

    @Override
    public void addExcludesToChain(String chain, List excludes, boolean recursive, boolean setToReader,
            boolean setToWriter) throws Exception {
        // TODO Auto-generated method stub

    }

    @Override
    public void removeExcludesFromChain(String chain, List excludes, boolean recursive, boolean setToReader,
            boolean setToWriter) throws Exception {
        // TODO Auto-generated method stub

    }

    @Override
    public void removeIncludesFromChain(String chain, List includes, boolean recursive, boolean setToReader,
            boolean setToWriter) throws Exception {
        // TODO Auto-generated method stub

    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy