// TextFactory - Saxon extension element factory package com.nwalsh.saxon; import com.icl.saxon.style.ExtensionElementFactory; import org.xml.sax.SAXException; /** *

Saxon extension element factory * *

$Id: TextFactory.java,v 1.1 2001/07/16 21:23:57 nwalsh Exp $

* *

Copyright (C) 2000 Norman Walsh.

* *

This class provides a * Saxon * extension element factory for the Text extension element * family.

* *

Change Log:

*
*
1.0
*

Initial release.

*
* * @author Norman Walsh * ndw@nwalsh.com * * @version $Id: TextFactory.java,v 1.1 2001/07/16 21:23:57 nwalsh Exp $ * * @see Text * */ public class TextFactory implements ExtensionElementFactory { /** *

Constructor for TextFactory

* *

Does nothing.

*/ public TextFactory() { } /** *

Return the class that implements a particular extension element.

* * @param localname The local name of the extension element. * * @return The class that handles that extension element. * * @exception SAXException("Unknown Text extension element") */ public Class getExtensionClass(String localname) { if (localname.equals("insertfile")) { try { return Class.forName("com.nwalsh.saxon.Text"); } catch (ClassNotFoundException e) { return null; } } return null; } }