/** * Static method used to create the default static context: intended for internal use only */ public static StaticQueryContext makeDefaultStaticQueryContext(Configuration config) { StaticQueryContext sqc = new StaticQueryContext(); sqc.config = config; sqc.namePool = config.getNamePool(); sqc.reset(); return sqc; }
/** * Static method used to create the default static context: intended for internal use only */ public static StaticQueryContext makeDefaultStaticQueryContext(Configuration config) { StaticQueryContext sqc = new StaticQueryContext(); sqc.config = config; sqc.namePool = config.getNamePool(); sqc.reset(); return sqc; }
/** * Create a StaticQueryContext using a given Configuration. This creates a StaticQueryContext for a main module * (that is, a module that is not a library module). * @param config the Saxon Configuration * * @since 8.4 */ public StaticQueryContext(Configuration config) { this.config = config; namePool = config.getNamePool(); errorListener = config.getErrorListener(); moduleURIResolver = config.getModuleURIResolver(); if (errorListener instanceof StandardErrorListener) { errorListener = ((StandardErrorListener)errorListener).makeAnother(Configuration.XQUERY); ((StandardErrorListener)errorListener).setRecoveryPolicy(Configuration.DO_NOT_RECOVER); } collations = new CollationMap(config); reset(); }
/** * Create a StaticQueryContext using a given Configuration. This creates a StaticQueryContext for a main module * (that is, a module that is not a library module). * @param config the Saxon Configuration * * @since 8.4 */ public StaticQueryContext(Configuration config) { this.config = config; namePool = config.getNamePool(); errorListener = config.getErrorListener(); moduleURIResolver = config.getModuleURIResolver(); if (errorListener instanceof StandardErrorListener) { errorListener = ((StandardErrorListener)errorListener).makeAnother(Configuration.XQUERY); ((StandardErrorListener)errorListener).setRecoveryPolicy(Configuration.DO_NOT_RECOVER); } collations = new CollationMap(config); reset(); }