/** * Creates a new {@code RootNode} instance. * * @param detailAst reference to {@code DetailAST} */ public RootNode(DetailAST detailAst) { super(new GenericTreeInfo(Configuration.newConfiguration())); this.detailAst = detailAst; if (detailAst != null) { createChildren(); } }
/** * Default constructor. Creates an XPathEvaluator with Configuration appropriate * to the version of the Saxon software being run. */ public XPathEvaluator() { this(Configuration.newConfiguration()); }
/** * Default constructor. Creates an XPathEvaluator with Configuration appropriate * to the version of the Saxon software being run. */ public XPathEvaluator() { this(Configuration.newConfiguration()); }
/** * Factory method to construct a Configuration object by reading a configuration file. * * @param source Source object containing the configuration file * @return the resulting Configuration * @throws net.sf.saxon.trans.XPathException if the configuration file cannot be read * or is invalid */ public static Configuration readConfiguration(Source source) throws XPathException { Configuration tempConfig = newConfiguration(); return tempConfig.readConfigurationFile(source); }
public XQProcessorImpl() { config = Configuration.newConfiguration(); //config.setSchemaValidationMode(Validation.STRIP); //config.setConfigurationProperty(FeatureKeys.PRE_EVALUATE_DOC_FUNCTION, Boolean.TRUE); sqc = config.newStaticQueryContext(); // supported in Saxon-EE only //sqc.setUpdatingEnabled(true); //dqc = new DynamicQueryContext(config); //dqc.setApplyFunctionConversionRulesToExternalVariables(false); //sqc. cvr = new StandardObjectConverter(); //JPConverter.allocate(XQItem.class, null, config); //config.setConfigurationProperty(FeatureKeys.LAZY_CONSTRUCTION_MODE, true); }
/** * Factory method to construct a Configuration object by reading a configuration file. * * @param source Source object containing the configuration file * @return the resulting Configuration * @throws net.sf.saxon.trans.XPathException if the configuration file cannot be read * or is invalid */ public static Configuration readConfiguration(Source source) throws XPathException { Configuration tempConfig = newConfiguration(); return tempConfig.readConfigurationFile(source); }
/** * Factory method to construct a Configuration object by reading a configuration file. * This version of the method creates a configuration that is "compatible" with the * supplied configuration, in that it shares the same NamePool and DocumentNumberAllocator. * (This is used by fn:transform) * * @param source Source object containing the configuration file * @param baseConfiguration an existing configuration whose NamePool and DocumentNumberAllocator * will be used in the new Configuration * @return the resulting Configuration * @throws net.sf.saxon.trans.XPathException if the configuration file cannot be read * or is invalid */ public static Configuration readConfiguration(Source source, Configuration baseConfiguration) throws XPathException { Configuration tempConfig = newConfiguration(); return tempConfig.readConfigurationFile(source, baseConfiguration); }
/** * Factory method to construct a Configuration object by reading a configuration file. * This version of the method creates a configuration that is "compatible" with the * supplied configuration, in that it shares the same NamePool and DocumentNumberAllocator. * (This is used by fn:transform) * * @param source Source object containing the configuration file * @param baseConfiguration an existing configuration whose NamePool and DocumentNumberAllocator * will be used in the new Configuration * @return the resulting Configuration * @throws net.sf.saxon.trans.XPathException if the configuration file cannot be read * or is invalid */ public static Configuration readConfiguration(Source source, Configuration baseConfiguration) throws XPathException { Configuration tempConfig = newConfiguration(); return tempConfig.readConfigurationFile(source, baseConfiguration); }
/** * Default constructor: this creates a Configuration as well as creating the XPathFactory. Any documents * accessed using this XPathFactory must be built using this same Configuration. */ public XPathFactoryImpl() { config = Configuration.newConfiguration(); setConfiguration(config); Version.platform.registerAllBuiltInObjectModels(config); }
/** * Default constructor: this creates a Configuration as well as creating the XPathFactory. Any documents * accessed using this XPathFactory must be built using this same Configuration. */ public XPathFactoryImpl() { config = Configuration.newConfiguration(); setConfiguration(config); Version.platform.registerAllBuiltInObjectModels(config); }
/** * Creates a new {@code RootNode} instance. * * @param detailAst reference to {@code DetailAST} */ public RootNode(DetailAST detailAst) { super(new GenericTreeInfo(Configuration.newConfiguration())); this.detailAst = detailAst; if (detailAst != null) { createChildren(); } }
private void initializeConfig() { logger.trace("initializeConfig.enter; current config: {}", config); config = Configuration.newConfiguration(); //config.setHostLanguage(Configuration.XQUERY); config.setSchemaValidationMode(Validation.STRIP); //config.setConfigurationProperty(FeatureKeys.ALLOW_EXTERNAL_FUNCTIONS, Boolean.TRUE); SaxonUtils.registerExtensions(config, null); if (libraries != null) { registerExtensions(config, libraries); } logger.trace("initializeConfig.exit; new config: {}", config); }
/** * Create a Processor * * @param licensedEdition indicates whether the Processor requires features of Saxon that need a license * file (that is, features not available in Saxon HE (Home Edition). If true, the method will create * a Configuration appropriate to the version of the software that is running: for example, if running * Saxon-EE, it will create an EnterpriseConfiguration. The method does not at this stage check that a license * is available, and in the absence of a license, it should run successfully provided no features that * require licensing are actually used. If the argument is set to false, a plain Home Edition Configuration * is created unconditionally. */ public Processor(boolean licensedEdition) { if (licensedEdition) { config = Configuration.newConfiguration(); if (config.getEditionCode().equals("EE")) { schemaManager = makeSchemaManager(); } } else { config = new Configuration(); } config.setProcessor(this); }
/** * Create a Processor * * @param licensedEdition indicates whether the Processor requires features of Saxon that need a license * file (that is, features not available in Saxon HE (Home Edition). If true, the method will create * a Configuration appropriate to the version of the software that is running: for example, if running * Saxon-EE, it will create an EnterpriseConfiguration. The method does not at this stage check that a license * is available, and in the absence of a license, it should run successfully provided no features that * require licensing are actually used. If the argument is set to false, a plain Home Edition Configuration * is created unconditionally. */ public Processor(boolean licensedEdition) { if (licensedEdition) { config = Configuration.newConfiguration(); if (config.getEditionCode().equals("EE")) { schemaManager = makeSchemaManager(); } } else { config = new Configuration(); } config.setProcessor(this); }
config = Configuration.newConfiguration();
config = Configuration.newConfiguration();
config = Configuration.newConfiguration();
config = Configuration.newConfiguration();