gnu.xml.libxmlj.transform

Class GnomeTransformerFactory


public class GnomeTransformerFactory
extends TransformerFactory

An implementation of TransformerFactory producing Transformer objects which use libxslt for transformation.

Method Summary

static void
freeLibxsltGlobal()
Perform native cleanup.
Source
getAssociatedStylesheet(Source source, String media, String title, String charset)
Returns the stylesheet associated with the specified XML source, or null if no associated stylesheet could be found.
Object
getAttribute(String name)
ErrorListener
getErrorListener()
boolean
getFeature(String name)
URIResolver
getURIResolver()
Templates
newTemplates(Source source)
Returns a new instance of class Templates for the given souce.
Transformer
newTransformer()
Returns a new instance of class Transformer for a null souce.
Transformer
newTransformer(Source source)
Returns a new instance of class Transformer for the given souce.
void
setAttribute(String name, Object value)
void
setErrorListener(ErrorListener errorListener)
void
setFeature(String name, boolean value)
void
setURIResolver(URIResolver uriResolver)

Methods inherited from class javax.xml.transform.TransformerFactory

getAssociatedStylesheet, getAttribute, getErrorListener, getFeature, getURIResolver, newInstance, newTemplates, newTransformer, newTransformer, setAttribute, setErrorListener, setFeature, setURIResolver

Method Details

freeLibxsltGlobal

public static void freeLibxsltGlobal()
Perform native cleanup.


getAssociatedStylesheet

public Source getAssociatedStylesheet(Source source,
                                      String media,
                                      String title,
                                      String charset)
            throws TransformerConfigurationException
Returns the stylesheet associated with the specified XML source, or null if no associated stylesheet could be found.
Overrides:
getAssociatedStylesheet in interface TransformerFactory


getAttribute

public Object getAttribute(String name)
Overrides:
getAttribute in interface TransformerFactory


getErrorListener

public ErrorListener getErrorListener()
Overrides:
getErrorListener in interface TransformerFactory


getFeature

public boolean getFeature(String name)
Overrides:
getFeature in interface TransformerFactory


getURIResolver

public URIResolver getURIResolver()
Overrides:
getURIResolver in interface TransformerFactory


newTemplates

public Templates newTemplates(Source source)
            throws TransformerConfigurationException
Returns a new instance of class Templates for the given souce.
Overrides:
newTemplates in interface TransformerFactory


newTransformer

public Transformer newTransformer()
            throws TransformerConfigurationException
Returns a new instance of class Transformer for a null souce.
Overrides:
newTransformer in interface TransformerFactory


newTransformer

public Transformer newTransformer(Source source)
            throws TransformerConfigurationException
Returns a new instance of class Transformer for the given souce.
Overrides:
newTransformer in interface TransformerFactory


setAttribute

public void setAttribute(String name,
                         Object value)
Overrides:
setAttribute in interface TransformerFactory


setErrorListener

public void setErrorListener(ErrorListener errorListener)
Overrides:
setErrorListener in interface TransformerFactory


setFeature

public void setFeature(String name,
                       boolean value)
            throws TransformerConfigurationException
Overrides:
setFeature in interface TransformerFactory


setURIResolver

public void setURIResolver(URIResolver uriResolver)
Overrides:
setURIResolver in interface TransformerFactory