| 1 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 2 | // Copyright (c) 2018 Saxonica Limited. |
| 3 | // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. |
| 4 | // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 5 | // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. |
| 6 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 7 | |
| 8 | package net.sf.saxon.event; |
| 9 | |
| 10 | /** |
| 11 | * Factory class to create a ProxyReceiver which filters events on a push pipeline |
| 12 | */ |
| 13 | @FunctionalInterface |
| 14 | public interface FilterFactory { |
| 15 | |
| 16 | /** |
| 17 | * Make a Receiver to filter events on a push pipeline |
| 18 | * |
| 19 | * @param next the next receiver in the pipeline |
| 20 | * @return a Receiver initialized to send events to the next receiver in the pipeine |
| 21 | */ |
| 22 | |
| 23 | Receiver makeFilter(Receiver next); |
| 24 | } |