KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > icl > saxon > trace > TraceListener


1 package com.icl.saxon.trace;
2 import com.icl.saxon.om.NodeInfo;
3 import com.icl.saxon.NodeHandler;
4 import com.icl.saxon.Context;
5
6 import java.util.EventListener JavaDoc;
7
8 /**
9 * To get trace events, an application can add instances of
10 * this interface to a StyleSheetInstance
11 */

12
13 public interface TraceListener extends EventListener JavaDoc {
14
15   /**
16   * Called at start
17   */

18
19   public void open();
20
21   /**
22   * Called at end
23   */

24
25   public void close();
26   
27
28   /**
29    * Called for all top level elements
30    */

31   public void toplevel(NodeInfo element);
32
33   /**
34    * Called when a node of the source tree gets processed
35    */

36   public void enterSource(NodeHandler handler, Context context);
37
38   /**
39    * Called after a node of the source tree got processed
40    */

41   public void leaveSource(NodeHandler handler, Context context);
42
43   /**
44    * Called when a node in the stylesheet gets processed
45    */

46   public void enter(NodeInfo element, Context context);
47
48   /**
49    * Called after an element of the stylesheet got processed
50    */

51   public void leave(NodeInfo element, Context context);
52
53 }
54
55 // Contributor(s):
56
// This module is from Edwin Glaser (edwin@pannenleiter.de)
57
// Modified by MHK for Saxon 6.1 to remove "throws SAXException" from all methods
58
//
59
Popular Tags