KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > icl > saxon > style > ExtensionElementFactory


1 package com.icl.saxon.style;
2 import javax.xml.transform.TransformerConfigurationException JavaDoc;
3
4 /**
5   * Interface ExtensionElementFactory. <br>
6   * A "Factory" for used-defined nodes in the stylesheet tree. <br>
7   * (Actually, it's not struictly a factory: it doesn't create the nodes,
8   * it merely identifies what class they should be.
9   */

10
11 public interface ExtensionElementFactory {
12
13     /**
14     * Identify the class to be used for stylesheet elements with a given local name.
15     * The returned class must extend com.icl.saxon.style.StyleElement
16     * @return null if the local name is not a recognised element type in this
17     * namespace.
18     */

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