KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > icl > saxon > handlers > ElementHandler


1 package com.icl.saxon.handlers;
2 import com.icl.saxon.Context;
3 import javax.xml.transform.TransformerException JavaDoc;
4 import com.icl.saxon.NodeHandler;
5 import com.icl.saxon.om.NodeInfo;
6
7 /**
8  * ElementHandler is a NodeHandler used to process elements. It is identical to
9  * it parent class, NodeHandler, and exists only for type-checking on interfaces.
10  * @author <A HREF="mailto:mhkay@iclway.co.uk>Michael H. Kay</A>
11  * @version 7 April 1999: generalisation of old ElementHandler
12  */

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

23     
24     public abstract void start( NodeInfo node, Context context )
25     throws TransformerException JavaDoc;
26
27     public boolean needsStackFrame() {
28         return false;
29     }
30     
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