Class GenericReaderConfigurator
- java.lang.Object
-
- org.smooks.engine.resource.config.GenericReaderConfigurator
-
- All Implemented Interfaces:
ReaderConfigurator
public class GenericReaderConfigurator extends Object implements ReaderConfigurator
Generic reader configurator. Specific reader implementations can define specialized configurators.- Author:
- tom.fennelly@jboss.com
-
-
Constructor Summary
Constructors Constructor Description GenericReaderConfigurator()GenericReaderConfigurator(Class<? extends XMLReader> readerClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertiesgetParameters()GenericReaderConfiguratorsetFeature(String feature, boolean on)GenericReaderConfiguratorsetParameters(Properties parameters)GenericReaderConfiguratorsetTargetProfile(String targetProfile)List<ResourceConfig>toConfig()Create theResourceConfiglist for the Reader to be used by the Smooks instance.
-
-
-
Method Detail
-
getParameters
public Properties getParameters()
-
setParameters
public GenericReaderConfigurator setParameters(Properties parameters)
-
setFeature
public GenericReaderConfigurator setFeature(String feature, boolean on)
-
setTargetProfile
public GenericReaderConfigurator setTargetProfile(String targetProfile)
-
toConfig
public List<ResourceConfig> toConfig()
Description copied from interface:ReaderConfiguratorCreate theResourceConfiglist for the Reader to be used by the Smooks instance.- Specified by:
toConfigin interfaceReaderConfigurator- Returns:
- The
ResourceConfiglist.
-
-