Top Description Fields Constructors Methods
uk.ac.ed.ph.snuggletex.utilities

public final Class DefaultTransformerFactoryChooser

extends Object
implements TransformerFactoryChooser
Class Inheritance
All Implemented Interfaces
uk.ac.ed.ph.snuggletex.utilities.TransformerFactoryChooser
Imports
uk.ac.ed.ph.snuggletex.SnuggleRuntimeException, uk.ac.ed.ph.snuggletex.internal.util.XMLUtilities, javax.xml.transform.TransformerFactory

Default implementation of TransformerFactoryChooser that uses the usual JAXP factory lookup mechanisms for XSLT 1.0 stylesheets, and hard-codes to SAXON for XSLT 2.0 stylesheets.
Author
David McKain
Since
1.2.0
Version
$Revision$

Field Summary

Modifier and TypeField and Description
private static final DefaultTransformerFactoryChooser
singletonInstance

Singleton instance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static DefaultTransformerFactoryChooser
public TransformerFactory
getSuitableXSLT10TransformerFactory()

Implements uk.ac.ed.ph.snuggletex.utilities.TransformerFactoryChooser.getSuitableXSLT10TransformerFactory.

Implementors of this interface should return an XSLT 1.0-compatible TransformerFactory that SnuggleTeX is free to mess around with and is capable of handling DOMSource and DOMResults.

public TransformerFactory
getSuitableXSLT20TransformerFactory()

Implements uk.ac.ed.ph.snuggletex.utilities.TransformerFactoryChooser.getSuitableXSLT20TransformerFactory.

Implementors of this interface should return an XSLT 2.0-compatible TransformerFactory that SnuggleTeX is free to mess around with and is capable of handling DOMSource and DOMResults.

public boolean
isXSLT20SupportAvailable()

Implements uk.ac.ed.ph.snuggletex.utilities.TransformerFactoryChooser.isXSLT20SupportAvailable.

Implementors of this interface should indicate whether support for XSLT 2.0 is available.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

singletonInstanceback to summary
private static final DefaultTransformerFactoryChooser singletonInstance

Singleton instance

Constructor Detail

DefaultTransformerFactoryChooserback to summary
public DefaultTransformerFactoryChooser()

Method Detail

getInstanceback to summary
public static DefaultTransformerFactoryChooser getInstance()
getSuitableXSLT10TransformerFactoryback to summary
public TransformerFactory getSuitableXSLT10TransformerFactory()

Implements uk.ac.ed.ph.snuggletex.utilities.TransformerFactoryChooser.getSuitableXSLT10TransformerFactory.

Doc from uk.ac.ed.ph.snuggletex.utilities.TransformerFactoryChooser.getSuitableXSLT10TransformerFactory.

Implementors of this interface should return an XSLT 1.0-compatible TransformerFactory that SnuggleTeX is free to mess around with and is capable of handling DOMSource and DOMResults.

getSuitableXSLT20TransformerFactoryback to summary
public TransformerFactory getSuitableXSLT20TransformerFactory()

Implements uk.ac.ed.ph.snuggletex.utilities.TransformerFactoryChooser.getSuitableXSLT20TransformerFactory.

Doc from uk.ac.ed.ph.snuggletex.utilities.TransformerFactoryChooser.getSuitableXSLT20TransformerFactory.

Implementors of this interface should return an XSLT 2.0-compatible TransformerFactory that SnuggleTeX is free to mess around with and is capable of handling DOMSource and DOMResults.

isXSLT20SupportAvailableback to summary
public boolean isXSLT20SupportAvailable()

Implements uk.ac.ed.ph.snuggletex.utilities.TransformerFactoryChooser.isXSLT20SupportAvailable.

Doc from uk.ac.ed.ph.snuggletex.utilities.TransformerFactoryChooser.isXSLT20SupportAvailable.

Implementors of this interface should indicate whether support for XSLT 2.0 is available.