/** * Get the Configuration */ public final Configuration getConfiguration() { return controller.getConfiguration(); }
/** * Get the Configuration */ public final Configuration getConfiguration() { return controller.getConfiguration(); }
/** * Get the Configuration */ public final Configuration getConfiguration() { return controller.getConfiguration(); }
/** * Get the Configuration */ public final Configuration getConfiguration() { return controller.getConfiguration(); }
/** * Get the Configuration */ public final Configuration getConfiguration() { return controller.getConfiguration(); }
/** * Get the Name Pool */ public final NamePool getNamePool() { return controller.getConfiguration().getNamePool(); }
/** * Get the name of the default collection. Defaults to the default collection * name registered with the Configuration. * * @return the collection URI of the default collection. If no value has been * set explicitly, the collection URI registered with the Configuration is returned * @since 9.4 */ public String getDefaultCollection() { return defaultCollectionURI == null ? getConfiguration().getDefaultCollection() : defaultCollectionURI; }
/** * Get a NameChecker for checking names against the XML 1.0 or XML 1.1 specification as appropriate * @return the appropriate name checker */ public final NameChecker getNameChecker() { return controller.getConfiguration().getNameChecker(); }
/** * Get a NameChecker for checking names against the XML 1.0 or XML 1.1 specification as appropriate * @return the appropriate name checker */ public final NameChecker getNameChecker() { return controller.getConfiguration().getNameChecker(); }
/** * Get a NameChecker for checking names against the XML 1.0 or XML 1.1 specification as appropriate * @return the appropriate name checker */ public final NameChecker getNameChecker() { return controller.getConfiguration().getNameChecker(); }
/** * Get the name of the default collection. Defaults to the default collection * name registered with the Configuration. * * @return the collection URI of the default collection. If no value has been * set explicitly, the collection URI registered with the Configuration is returned * @since 9.4 */ public String getDefaultCollection() { return defaultCollectionURI == null ? getConfiguration().getDefaultCollection() : defaultCollectionURI; }
/** * Get the Name Pool */ public final NamePool getNamePool() { return controller.getConfiguration().getNamePool(); }
/** * Set an object that will be used to resolve URIs used in * document(), etc. * * @param resolver An object that implements the URIResolver interface, or * null. */ public void setURIResolver(URIResolver resolver) { userURIResolver = resolver; if (resolver instanceof StandardURIResolver) { ((StandardURIResolver) resolver).setConfiguration(getConfiguration()); } }
Controller controller = transformer.getUnderlyingController(); final Configuration config = controller.getConfiguration(); List<Document> jdomDocuments = new ArrayLis<Document>(); Controller.setOutputURIResolver(new OutputURIResolver() { public Result resolve(href, base) { return new JDOM2Writer(config.makePipelineConfiguration()); } public void close(Result result) { jdomDocuments.add(((JDOM2Writer)result).getDocument()); } }
/** * Set an object that will be used to resolve URIs used in * document(), etc. * * @param resolver An object that implements the URIResolver interface, or * null. */ public void setURIResolver(URIResolver resolver) { userURIResolver = resolver; if (resolver instanceof StandardURIResolver) { ((StandardURIResolver) resolver).setConfiguration(getConfiguration()); } }
/** * Set an object that will be used to resolve URIs used in * document(), etc. * * @param resolver An object that implements the URIResolver interface, or * null. */ public void setURIResolver(URIResolver resolver) { userURIResolver = resolver; if (resolver instanceof StandardURIResolver) { ((StandardURIResolver)resolver).setConfiguration(getConfiguration()); } }
/** * Called at start */ public void open(/*@NotNull*/ Controller controller) { config = controller.getConfiguration(); lang = controller.getExecutable().getHostLanguage(); t_total = System.nanoTime(); }
/** * Called at start */ public void open(/*@NotNull*/ Controller controller) { config = controller.getConfiguration(); lang = controller.getExecutable().getHostLanguage(); t_total = System.nanoTime(); }
public Item map(Item item) { if (item instanceof AtomicValue) { return item; } VirtualCopy vc = VirtualUntypedCopy.makeVirtualUntypedCopy((NodeInfo) item, (NodeInfo) item); int documentNumber = context.getController().getConfiguration().getDocumentNumberAllocator().allocateDocumentNumber(); vc.setDocumentNumber(documentNumber); return vc; } };
public Item map(Item item) { if (item instanceof AtomicValue) { return item; } VirtualCopy vc = VirtualCopy.makeVirtualCopy((NodeInfo)item, (NodeInfo) item); int documentNumber = context.getController().getConfiguration().getDocumentNumberAllocator().allocateDocumentNumber(); vc.setDocumentNumber(documentNumber); // TODO: here (and below): set Base URI as described in bugzilla 3417. See test baseuri20_044, // and discussion in bug 569 against the test suite. return vc; } };