public class XMLConfigurationProvider extends AbstractChainConfigurationProvider implements ProjectConfigurationProvider
| Constructor and Description |
|---|
XMLConfigurationProvider() |
XMLConfigurationProvider(String configFileName,
boolean errorIfMissing) |
addDefaultReaderConfig, addDefaultWalker, addDefaultWriterConfig, inferInitializers, inferPluginspublic XMLConfigurationProvider()
public XMLConfigurationProvider(String configFileName, boolean errorIfMissing)
public void init(Configuration configuration)
init in interface ConfigurationProviderpublic void init()
public void addChainConfig(ChainConfig chainCfg, boolean recursive) throws Exception
addChainConfig in interface ProjectConfigurationProviderExceptionpublic void addPluginConfig(PluginConfig pluginConfig, boolean recursive) throws Exception
addPluginConfig in interface ProjectConfigurationProviderExceptionpublic void persist()
throws TransformerException
TransformerExceptionpublic void loadChains()
throws ConfigurationException
ConfigurationExceptionpublic void loadReaderConfig(Element element, ChainConfig ac) throws ConfigurationException
ConfigurationExceptionpublic void addDefaultWalker(ChainConfig ac, Element parentWalkerNode)
public void loadWalkerConfig(Element element, ChainConfig ac)
public void loadParserConfig(Element element, WalkerConfig wc)
public List<TransformationConfig> getTransformationItems(Element element, boolean exceptionsEnabled)
public void loadTransformationConfigs(Element element, WalkerConfig wc)
public void loadWriter(Element child, ChainConfig ac)
public void load()
throws ConfigurationException
load in interface ConfigurationProviderConfigurationExceptionpublic void addTransformationConfig(String chain, String path, TransformationConfig transformationCfg, boolean recursive) throws Exception
addTransformationConfig in interface ProjectConfigurationProviderExceptionpublic void createConfig()
throws IOException
createConfig in interface ProjectConfigurationProviderIOExceptionpublic void addProviderConfig(ProviderConfig providerCfg, boolean recursive) throws Exception
addProviderConfig in interface ProjectConfigurationProviderExceptionpublic void addModules(List<String> modules) throws Exception
addModules in interface ProjectConfigurationProviderExceptionpublic void removeTransformations(String chain, List<String> transformations, boolean recursive) throws Exception
removeTransformations in interface ProjectConfigurationProviderExceptionpublic void setWriter(String chain, String type, String path, boolean recursive) throws Exception
setWriter in interface ProjectConfigurationProviderExceptionpublic void setReader(String chain, String type, String path, boolean recursive) throws Exception
setReader in interface ProjectConfigurationProviderExceptionpublic void removePluginConfig(PluginConfig pluginConfig, boolean recursive) throws Exception
removePluginConfig in interface ProjectConfigurationProviderExceptionpublic void removeModules(List<String> modules) throws Exception
removeModules in interface ProjectConfigurationProviderExceptionpublic void removeProviders(List<String> providers, boolean recursive) throws Exception
removeProviders in interface ProjectConfigurationProviderExceptionpublic void removeChains(List<String> chains, boolean recursive) throws Exception
removeChains in interface ProjectConfigurationProviderExceptionpublic void addConfigurationParameter(String param, String value, String type, String category, String name, String chain, boolean recursive) throws Exception
addConfigurationParameter in interface ProjectConfigurationProviderExceptionpublic Configuration getConfiguration()
getConfiguration in interface ProjectConfigurationProviderpublic Document getDocument()
public void setConfiguration(Configuration configuration2)
public String getConfigFileName()
public String getFileExtension()
getFileExtension in interface ProjectConfigurationProviderpublic File getConfigurationFile()
getConfigurationFile in interface ProjectConfigurationProviderpublic ProjectConfigurationProvider clone(File cfgFile)
clone in interface ProjectConfigurationProviderCopyright © 2015. All rights reserved.