public class ConfigUtil extends Object
| Constructor and Description |
|---|
ConfigUtil(net.sf.saxon.Configuration saxonConfig,
URIResolver uriResolver,
String configUri) |
ConfigUtil(net.sf.saxon.Configuration saxonConfig,
URIResolver uriResolver,
String configUri,
boolean skipSchemaValidation,
String currentDir) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addConfigParameter(Config config,
String parameterPattern)
Adds a parameter to the specified config.
|
static void |
addInputFile(Config config,
String argument)
Adds an input file to the config
|
static void |
addTemplate(Config config,
String argument)
Adds a template (XSLT) to the specified config
|
Config |
buildConfig(HashMap<net.sf.saxon.s9api.QName,ParameterValue> inputParameters) |
static ParameterValue |
parseParameterPattern(String parameterPattern) |
static net.sf.saxon.s9api.QName |
resolveQName(String name) |
static void |
setNbThreads(Config config,
String argument)
Defines the thread number to use in this config
|
static void |
setOutput(Config config,
String argument)
Defines the output of this config
|
public ConfigUtil(net.sf.saxon.Configuration saxonConfig,
URIResolver uriResolver,
String configUri)
throws InvalidSyntaxException
InvalidSyntaxExceptionpublic ConfigUtil(net.sf.saxon.Configuration saxonConfig,
URIResolver uriResolver,
String configUri,
boolean skipSchemaValidation,
String currentDir)
throws InvalidSyntaxException
InvalidSyntaxExceptionpublic Config buildConfig(HashMap<net.sf.saxon.s9api.QName,ParameterValue> inputParameters) throws net.sf.saxon.s9api.SaxonApiException, InvalidSyntaxException
net.sf.saxon.s9api.SaxonApiExceptionInvalidSyntaxExceptionpublic static net.sf.saxon.s9api.QName resolveQName(String name)
public static void addConfigParameter(Config config, String parameterPattern) throws InvalidSyntaxException
config - The config to modifyparameterPattern - The prameter definitionInvalidSyntaxException - If the parameter definition is incorrectpublic static ParameterValue parseParameterPattern(String parameterPattern) throws InvalidSyntaxException
InvalidSyntaxExceptionpublic static void setNbThreads(Config config, String argument) throws InvalidSyntaxException
config - The config to modifyargument - The number of threadsInvalidSyntaxException - It should never throws anything... but if argument is not an integer...public static void addInputFile(Config config, String argument) throws InvalidSyntaxException
config - The config to modifyargument - The file to addInvalidSyntaxException - If input file definition is incorrectpublic static void addTemplate(Config config, String argument) throws InvalidSyntaxException
config - the config to modifyargument - The Xsl to addInvalidSyntaxException - If xsl definition is incorrectpublic static void setOutput(Config config, String argument) throws InvalidSyntaxException
config - The config usedargument - The absolute dir to put files inInvalidSyntaxException - If output definition is incorrectCopyright © 2017. All rights reserved.