/** * Get the configuration. This can also be done using the JAXP method * getAttribute, with the attribute name {@link net.sf.saxon.lib.FeatureKeys#CONFIGURATION} * This is a trapdoor method that provides access to underlying implementation details that * may change in subsequent Saxon releases. * @return the Saxon configuration */ public Configuration getConfiguration() { return processor.getUnderlyingConfiguration(); }
/** * Get the configuration. * * @return the Saxon configuration */ protected Configuration getConfiguration() { return processor.getUnderlyingConfiguration(); }
/** * Get the configuration. This can also be done using the JAXP method * getAttribute, with the attribute name {@link net.sf.saxon.lib.FeatureKeys#CONFIGURATION} * This is a trapdoor method that provides access to underlying implementation details that * may change in subsequent Saxon releases. * @return the Saxon configuration */ public Configuration getConfiguration() { return processor.getUnderlyingConfiguration(); }
/** * Get the configuration. * * @return the Saxon configuration */ protected Configuration getConfiguration() { return processor.getUnderlyingConfiguration(); }
/** * Create a new Transformer object that performs a copy * of the source to the result. * * @return A Transformer object that may be used to perform a transformation * in a single thread, never null. */ public Transformer newTransformer() { return new IdentityTransformer(processor.getUnderlyingConfiguration()); }
/** * Get the conversion rules implemented by this type. The conversion rules reflect variations * between different versions of the W3C specifications, for example XSD 1.1 allows "+INF" as * a lexical representation of xs:double, while XSD 1.0 does not. * * @return the conversion rules */ public ConversionRules getConversionRules() { return processor.getUnderlyingConfiguration().getConversionRules(); }
/** * Protected constructor * * @param processor the Saxon Processor */ protected XQueryCompiler(Processor processor) { this.processor = processor; this.env = processor.getUnderlyingConfiguration().newStaticQueryContext(); }
public ProcessMatch(XProcRuntime runtime, ProcessMatchingNodes processor) { super(runtime); this.runtime = runtime; this.processor = processor; saxonConfig = runtime.getProcessor().getUnderlyingConfiguration(); }
CssSplitTransformer(RuntimeValue splitBefore, RuntimeValue splitAfter, XProcRuntime runtime) { this.config = runtime.getProcessor().getUnderlyingConfiguration(); this.splitBefore = splitBefore; this.splitAfter = splitAfter; }
/** * Protected constructor * * @param processor the Saxon Processor */ protected XQueryCompiler(Processor processor) { this.processor = processor; this.env = processor.getUnderlyingConfiguration().newStaticQueryContext(); }
/** * Protected constructor * @param processor the Saxon Processor */ protected XQueryCompiler(Processor processor) { this.processor = processor; this.env = new StaticQueryContext(processor.getUnderlyingConfiguration()); }
protected AbstractTransformerImpl(XsltExecutable e) { super(e.getProcessor().getUnderlyingConfiguration()); this.xsltExecutable = e; }
/** * Protected constructor * * @param processor the s9api Processor */ protected XPathCompiler(Processor processor) { this.processor = processor; this.evaluator = new XPathEvaluator(processor.getUnderlyingConfiguration()); env = (IndependentContext) this.evaluator.getStaticContext(); }
/** * Get an ItemType representing the type of a Java object when used as an external object * for use in conjunction with calls on extension/external functions. * * @param externalClass a Java class * @return the ItemType representing the type of external objects of this class */ public ItemType getExternalObjectType(Class externalClass) { JavaExternalObjectType type = processor.getUnderlyingConfiguration().getJavaExternalObjectType(externalClass); return new ConstructedItemType(type, processor); }
public String getProductVersion() { String sver = processor.getSaxonProductVersion(); String sed = processor.getUnderlyingConfiguration().getEditionCode(); return XProcConstants.XPROC_VERSION + " (for Saxon " + sver + "/" + sed + ")"; }
public TreeWriter(XProcRuntime xproc) { runtime = xproc; pool = xproc.getProcessor().getUnderlyingConfiguration().getNamePool(); controller = new Controller(runtime.getProcessor().getUnderlyingConfiguration()); }
/** * Protected constructor * * @param processor the s9api Processor */ protected XPathCompiler(Processor processor) { this.processor = processor; this.evaluator = new XPathEvaluator(processor.getUnderlyingConfiguration()); env = (IndependentContext) this.evaluator.getStaticContext(); }
/** * Get an ItemType representing the type of a Java object when used as an external object * for use in conjunction with calls on extension/external functions. * * @param externalClass a Java class * @return the ItemType representing the type of external objects of this class */ public ItemType getExternalObjectType(Class externalClass) { JavaExternalObjectType type = processor.getUnderlyingConfiguration().getJavaExternalObjectType(externalClass); return new ConstructedItemType(type, processor); }
public static void transform(XMLStreamToXMLStreamTransformer transformer, ReadablePipe input, WritablePipe output, XProcRuntime runtime) throws TransformerException { writePipe(output, SaxonHelper.transform(transformer, Iterators.transform(readPipe(input), XdmNode::getUnderlyingNode), runtime.getProcessor().getUnderlyingConfiguration())); }
public static void transform(NodeToXMLStreamTransformer transformer, ReadablePipe input, WritablePipe output, XProcRuntime runtime) throws TransformerException { writePipe(output, SaxonHelper.transform(transformer, readPipe(input), runtime.getProcessor().getUnderlyingConfiguration())); }