/** * Constructor using a user-supplied Configuration. * This constructor is useful if the document to be queried already exists, as it allows the configuration * associated with the document to be used with this XPathFactory. * * @param config the Saxon configuration */ public XPathFactoryImpl(Configuration config) { this.config = config; config.setProcessor(this); }
/** * Set the Configuration for the factory * * @param config the Saxon Configuration to be used */ public void setConfiguration(Configuration config) { this.config = config; config.setProcessor(this); }
/** * Constructor using a user-supplied Configuration. * This constructor is useful if the document to be queried already exists, as it allows the configuration * associated with the document to be used with this XPathFactory. * * @param config the Saxon configuration */ public XPathFactoryImpl(Configuration config) { this.config = config; config.setProcessor(this); }
/** * Set the Configuration for the factory * * @param config the Saxon Configuration to be used */ public void setConfiguration(Configuration config) { this.config = config; config.setProcessor(this); }
public BasicTransformerFactory() { Configuration config = new Configuration(); config.setProcessor(this); setConfiguration(config); }
public BasicTransformerFactory() { Configuration config = new Configuration(); config.setProcessor(this); setConfiguration(config); }
/** * Create a Processor configured according to the settings in a supplied configuration file. * * @param source the Source of the configuration file * @throws SaxonApiException if the configuration file cannot be read, or its contents are invalid * @since 9.2 */ public Processor(Source source) throws SaxonApiException { try { config = Configuration.readConfiguration(source); schemaManager = makeSchemaManager(); } catch (XPathException e) { throw new SaxonApiException(e); } config.setProcessor(this); }
/** * Create a Processor configured according to the settings in a supplied configuration file. * * @param source the Source of the configuration file * @throws SaxonApiException if the configuration file cannot be read, or its contents are invalid * @since 9.2 */ public Processor(Source source) throws SaxonApiException { try { config = Configuration.readConfiguration(source); schemaManager = makeSchemaManager(); } catch (XPathException e) { throw new SaxonApiException(e); } 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); }
/** * 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); }