Debian Codegraph @

net/sf/saxon/event/CopyInformee.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.event;
9
10 import net.sf.saxon.om.NodeInfo;
11
12 /**
13 * A CopyInformee is an agent that receives extra information while a tree is being copied. Specifically,
14 * each time an element node is copied to the receiver, before calling the startElement() method, the copying
15 * code will first call notifyElementNode(), giving the informee extra information about the element currently
16 * being copied.
17 */
18 public interface CopyInformee<T extends Object> {
19
20 /**
21 * Provide information about the node being copied. This method is called immediately before
22 * the startElement call for the element node in question.
23 *
24 * @param element the node being copied, which must be an element node
25 * @return information about this node
26 */
27
28 T notifyElementNode(NodeInfo element);
29 }
30