Debian Codegraph @

net/sf/saxon/tree/iter/NodeWrappingFunction.java

raw symbols SCIP
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.tree.iter;
9
10 import net.sf.saxon.om.NodeInfo;
11
12 /**
13 * Interface to a function that wraps nodes from an external object model in a Saxon NodeInfo
14 * representation
15 *
16 * @param <B> the type of the node in the external object model
17 * @param <T> the type of the Saxon node
18 */
19
20 public interface NodeWrappingFunction<B, T extends NodeInfo> {
21
22 T wrap(B node);
23 }
24