// 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 5907 2006-04-27 08:26:47Z xmldoc $
* *Copyright (C) 2000 Norman Walsh.
* *This class provides a * Saxon * extension element factory for the Text extension element * family.
* *Change Log:
*Initial release.
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; } }