public TeeOutputter(Receiver seq1, Receiver seq2) { super(seq1.getPipelineConfiguration()); this.seq1 = seq1; this.seq2 = seq2; }
/** * Create a sequence wrapper. This creates an XML representation of the items sent to destination * in which the types of all items are made explicit * * @param destination the sequence being wrapped */ public SequenceWrapper(Receiver destination) { super(destination.getPipelineConfiguration()); out = destination; // out = new TracingFilter(out); }
@Override public PipelineConfiguration getPipelineConfiguration() { return myWrapped.getPipelineConfiguration(); } }
public TeeOutputter(Receiver seq1, Receiver seq2) { super(seq1.getPipelineConfiguration()); this.seq1 = seq1; this.seq2 = seq2; }
/** * Create a TreeReceiver * * @param nextInChain the receiver to which events will be directed, after * expanding append events into more primitive tree-based events */ public TreeReceiver(/*@NotNull*/ Receiver nextInChain) { super(nextInChain.getPipelineConfiguration()); nextReceiver = nextInChain; previousAtomic = false; setPipelineConfiguration(nextInChain.getPipelineConfiguration()); }
/** * Create a TreeReceiver * * @param nextInChain the receiver to which events will be directed, after * expanding append events into more primitive tree-based events */ public TreeReceiver(/*@NotNull*/ Receiver nextInChain) { super(nextInChain.getPipelineConfiguration()); nextReceiver = nextInChain; previousAtomic = false; setPipelineConfiguration(nextInChain.getPipelineConfiguration()); }
public ProxyReceiver(/*@NotNull*/ Receiver nextReceiver) { super(nextReceiver.getPipelineConfiguration()); setUnderlyingReceiver(nextReceiver); setPipelineConfiguration(nextReceiver.getPipelineConfiguration()); }
public void setPipelineConfiguration(/*@NotNull*/ PipelineConfiguration pipe) { if (pipelineConfiguration != pipe) { pipelineConfiguration = pipe; if (nextReceiver.getPipelineConfiguration() != pipe) { nextReceiver.setPipelineConfiguration(pipe); } } }
/** * Create a NamespaceReducer with a given destination Receiver * @param base the Receiver to which events will be passed after namespace reduction */ public NamespaceReducer(Receiver base) { setUnderlyingReceiver(base); if (pipelineConfiguration == null) { pipelineConfiguration = base.getPipelineConfiguration(); } }
/** * Create a TreeReceiver * @param nextInChain the receiver to which events will be directed, after * expanding append events into more primitive tree-based events */ public TreeReceiver(Receiver nextInChain) { nextReceiver = nextInChain; previousAtomic = false; setPipelineConfiguration(nextInChain.getPipelineConfiguration()); }
/** * Create a sequence wrapper. This creates an XML representation of the items sent to destination * in which the types of all items are made explicit * @param destination the sequence being wrapped */ public SequenceWrapper(Receiver destination) { out = destination; // out = new TracingFilter(out); setPipelineConfiguration(destination.getPipelineConfiguration()); }
public ContentHandlerProxyReceiver(Receiver receiver, Receiver next) { super(next); this.reciever = receiver; this.reciever.setPipelineConfiguration(next.getPipelineConfiguration()); }
public ProxyReceiver(/*@NotNull*/ Receiver nextReceiver) { super(nextReceiver.getPipelineConfiguration()); setUnderlyingReceiver(nextReceiver); setPipelineConfiguration(nextReceiver.getPipelineConfiguration()); }
/** * Create a TreeReceiver * @param nextInChain the receiver to which events will be directed, after * expanding append events into more primitive tree-based events */ public TreeReceiver(Receiver nextInChain) { nextReceiver = nextInChain; previousAtomic = false; setPipelineConfiguration(nextInChain.getPipelineConfiguration()); }
/** * Create a ComplexContentOutputter * @param next the next receiver in the pipeline */ public ComplexContentOutputter(Receiver next) { super(next.getPipelineConfiguration()); setReceiver(next); setHostLanguage(next.getPipelineConfiguration().getHostLanguage()); }
public BuildingContentHandlerImpl(Receiver r, Builder b) { setReceiver(r); setPipelineConfiguration(r.getPipelineConfiguration()); this.builder = b; }
@Override public Receiver resolve(XPathContext context, String href, String baseUri, SerializationProperties properties) throws XPathException { URI absolute = getAbsoluteUri(href, baseUri); RawDestination destination = new RawDestination(); destination.onClose(() -> results.put(absolute.toASCIIString(), destination.getXdmValue())); return destination.getReceiver(context.getReceiver().getPipelineConfiguration(), properties); }
@Override public Receiver resolve(XPathContext context, String href, String baseUri, SerializationProperties properties) throws XPathException { URI absolute = getAbsoluteUri(href, baseUri); RawDestination destination = new RawDestination(); destination.onClose(() -> results.put(absolute.toASCIIString(), destination.getXdmValue())); return destination.getReceiver(context.getReceiver().getPipelineConfiguration(), properties); }
@Override public Receiver resolve(XPathContext context, String href, String baseUri, SerializationProperties properties) throws XPathException { URI absolute = getAbsoluteUri(href, baseUri); XdmDestination destination = new XdmDestination(); destination.setDestinationBaseURI(absolute); destination.onClose(() -> { XdmNode root = destination.getXdmNode(); results.put(absolute.toASCIIString(), root.getUnderlyingValue().getTreeInfo()); }); return destination.getReceiver(context.getReceiver().getPipelineConfiguration(), properties); }
private static Receiver makeValidator(Receiver receiver, String systemId, ParseOptions options) throws XPathException { PipelineConfiguration pipe = receiver.getPipelineConfiguration(); Configuration config = pipe.getConfiguration(); int sv = options.getSchemaValidationMode(); if (sv != Validation.PRESERVE && sv != Validation.DEFAULT) { Controller controller = pipe.getController(); if (controller != null && !controller.getExecutable().isSchemaAware() && sv != Validation.STRIP) { throw new XPathException("Cannot use schema-validated input documents when the query/stylesheet is not schema-aware"); } } return receiver; }