KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > icl > saxon > NodeHandler


1 package com.icl.saxon;
2 import com.icl.saxon.om.NodeInfo;
3 import javax.xml.transform.TransformerException JavaDoc;
4
5
6 /**
7  * This abstract class defines the node handler interface used by SAXON.
8  * This is used to handle all kinds of nodes: elements, character data, and attributes
9  * @author <A HREF="mailto:mhkay@iclway.co.uk>Michael H. Kay</A>
10  */

11  
12 public interface NodeHandler {
13
14     /**
15     * Define action to be taken at the start of a node.<BR>
16     * This method must be implemented in a subclass.
17     * @param node The NodeInfo object for the current node.
18     * @exception SAXException Aborts the parse
19     * @see NodeInfo
20     */

21     
22     public abstract void start( NodeInfo node, Context context )
23     throws TransformerException JavaDoc;
24
25     /**
26     * Optimization hint to allow a handler to declare that it needs no stack space
27     * for local variables and parameters
28     */

29
30     public boolean needsStackFrame();
31 }
32
33 //
34
// The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
35
// you may not use this file except in compliance with the License. You may obtain a copy of the
36
// License at http://www.mozilla.org/MPL/
37
//
38
// Software distributed under the License is distributed on an "AS IS" basis,
39
// WITHOUT WARRANTY OF ANY KIND, either express or implied.
40
// See the License for the specific language governing rights and limitations under the License.
41
//
42
// The Original Code is: all this file.
43
//
44
// The Initial Developer of the Original Code is
45
// Michael Kay of International Computers Limited (mhkay@iclway.co.uk).
46
//
47
// Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
48
//
49
// Contributor(s): none.
50
//
51
Popular Tags