/** * Make a PipelineConfiguration based on the properties of this Controller. * <p>This interface is intended primarily for internal use, although it may be necessary * for applications to call it directly if they construct pull or push pipelines.</p> * * @return a newly constructed PipelineConfiguration holding a reference to this * Controller as well as other configuration information. */ /*@NotNull*/ public PipelineConfiguration makePipelineConfiguration() { PipelineConfiguration pipe = config.makePipelineConfiguration(); pipe.setURIResolver(userURIResolver == null ? standardURIResolver : userURIResolver); pipe.getParseOptions().setSchemaValidationMode(validationMode); // added in 9.7 pipe.getParseOptions().setErrorListener(errorListener); // added in 9.7.0.4 pipe.setController(this); final Executable executable = getExecutable(); if (executable != null) { // can be null for an IdentityTransformer pipe.setHostLanguage(executable.getHostLanguage()); } return pipe; }
/** * Get a Receiver corresponding to the chosen Destination for the transformation * @param destination the destination for the results of this transformation * @return a receiver that sends the results to this destination * @throws SaxonApiException if anything goes wrong */ public Receiver getDestinationReceiver(XsltController controller, Destination destination) throws SaxonApiException { Receiver receiver; controller.setPrincipalDestination(destination); PipelineConfiguration pipe = controller.makePipelineConfiguration(); SerializationProperties params = controller.getExecutable().getPrimarySerializationProperties(); receiver = destination.getReceiver(pipe, params); if (Configuration.isAssertionsEnabled()) { receiver = new RegularSequenceChecker(receiver); } receiver.getPipelineConfiguration().setController(controller); if (baseOutputUriWasSet) { try { if (destination.getDestinationBaseURI() == null) { destination.setDestinationBaseURI(new URI(controller.getBaseOutputURI())); } } catch (URISyntaxException e) { // no action } } else if (destination.getDestinationBaseURI() != null) { controller.setBaseOutputURI(destination.getDestinationBaseURI().toASCIIString()); } receiver.setSystemId(controller.getBaseOutputURI()); return receiver; }
/** * Make a PipelineConfiguration based on the properties of this Controller. * <p>This interface is intended primarily for internal use, although it may be necessary * for applications to call it directly if they construct pull or push pipelines.</p> * * @return a newly constructed PipelineConfiguration holding a reference to this * Controller as well as other configuration information. */ /*@NotNull*/ public PipelineConfiguration makePipelineConfiguration() { PipelineConfiguration pipe = config.makePipelineConfiguration(); pipe.setURIResolver(userURIResolver == null ? standardURIResolver : userURIResolver); pipe.getParseOptions().setSchemaValidationMode(validationMode); // added in 9.7 pipe.getParseOptions().setErrorListener(errorListener); // added in 9.7.0.4 pipe.setController(this); final Executable executable = getExecutable(); if (executable != null) { // can be null for an IdentityTransformer pipe.setHostLanguage(executable.getHostLanguage()); } return pipe; }
/** * Get a Receiver corresponding to the chosen Destination for the transformation * @param destination the destination for the results of this transformation * @return a receiver that sends the results to this destination * @throws SaxonApiException if anything goes wrong */ public Receiver getDestinationReceiver(XsltController controller, Destination destination) throws SaxonApiException { Receiver receiver; controller.setPrincipalDestination(destination); PipelineConfiguration pipe = controller.makePipelineConfiguration(); SerializationProperties params = controller.getExecutable().getPrimarySerializationProperties(); receiver = destination.getReceiver(pipe, params); if (Configuration.isAssertionsEnabled()) { receiver = new RegularSequenceChecker(receiver); } receiver.getPipelineConfiguration().setController(controller); if (baseOutputUriWasSet) { try { if (destination.getDestinationBaseURI() == null) { destination.setDestinationBaseURI(new URI(controller.getBaseOutputURI())); } } catch (URISyntaxException e) { // no action } } else if (destination.getDestinationBaseURI() != null) { controller.setBaseOutputURI(destination.getDestinationBaseURI().toASCIIString()); } receiver.setSystemId(controller.getBaseOutputURI()); return receiver; }
oldPipe.setController(context.getController()); final PipelineConfiguration newPipe = new PipelineConfiguration(oldPipe); final UnfailingErrorListener oldErrorListener =
oldPipe.setController(context.getController()); final PipelineConfiguration newPipe = new PipelineConfiguration(oldPipe); final UnfailingErrorListener oldErrorListener =
/** * Make a PipelineConfiguration based on the properties of this Controller. * <p> * This interface is intended primarily for internal use, although it may be necessary * for applications to call it directly if they construct pull or push pipelines * @return a newly constructed PipelineConfiguration holding a reference to this * Controller as well as other configuration information. */ public PipelineConfiguration makePipelineConfiguration() { PipelineConfiguration pipe = new PipelineConfiguration(); pipe.setConfiguration(getConfiguration()); pipe.setErrorListener(getErrorListener()); pipe.setURIResolver(userURIResolver==null ? standardURIResolver : userURIResolver); pipe.setSchemaURIResolver(schemaURIResolver); pipe.setExpandAttributeDefaults(getConfiguration().isExpandAttributeDefaults()); pipe.setUseXsiSchemaLocation(((Boolean)getConfiguration().getConfigurationProperty( FeatureKeys.USE_XSI_SCHEMA_LOCATION)).booleanValue()); pipe.setController(this); final Executable executable = getExecutable(); if (executable != null) { // can be null for an IdentityTransformer pipe.setLocationProvider(executable.getLocationMap()); pipe.setHostLanguage(executable.getHostLanguage()); } return pipe; }
/** * Make a PipelineConfiguration based on the properties of this Controller. * <p> * This interface is intended primarily for internal use, although it may be necessary * for applications to call it directly if they construct pull or push pipelines * @return a newly constructed PipelineConfiguration holding a reference to this * Controller as well as other configuration information. */ public PipelineConfiguration makePipelineConfiguration() { PipelineConfiguration pipe = new PipelineConfiguration(); pipe.setConfiguration(getConfiguration()); pipe.setErrorListener(getErrorListener()); pipe.setURIResolver(userURIResolver==null ? standardURIResolver : userURIResolver); pipe.setSchemaURIResolver(schemaURIResolver); pipe.setExpandAttributeDefaults(getConfiguration().isExpandAttributeDefaults()); pipe.setController(this); final Executable executable = getExecutable(); if (executable != null) { // can be null for an IdentityTransformer pipe.setLocationProvider(executable.getLocationMap()); pipe.setHostLanguage(executable.getHostLanguage()); } return pipe; }
out.getPipelineConfiguration().setController(controller); String systemId = out.getSystemId();
out.getPipelineConfiguration().setController(controller); String systemId = out.getSystemId();
((Receiver)result).getPipelineConfiguration().setController(controller);
((Receiver)result).getPipelineConfiguration().setController(controller);