org.bibop.xml.xforge.components.xsl
Class XSLComponent

java.lang.Object
  |
  +--org.bibop.xml.xforge.components.AbstractXForgeComponent
        |
        +--org.bibop.xml.xforge.components.AbstractXForgePoolableComponent
              |
              +--org.bibop.xml.xforge.components.automation.AbstractAutomatedComponent
                    |
                    +--org.bibop.xml.xforge.components.xsl.XSLComponent
All Implemented Interfaces:
AutomatedComponent, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, Monitorizable, org.apache.avalon.excalibur.pool.Poolable, PrefixesMonitor, XForgeComponent, XMLProducer

public class XSLComponent
extends AbstractAutomatedComponent
implements Monitorizable

XSL Component

Version:
1.0
Author:
Ulrich Mayring, Alberto Garoffolo

Field Summary
static java.lang.String DEFAULT_TRANSFORMER_FACTORY
           
protected  boolean handleErrorsInternally
           
private static long iterations
           
protected  java.io.File[] mFiles
           
protected  javax.xml.transform.Transformer mTransformer
           
protected  javax.xml.transform.TransformerFactory mTransformerFactory
           
private  java.lang.String mXMLDocument
           
private static long total
           
 
Fields inherited from class org.bibop.xml.xforge.components.automation.AbstractAutomatedComponent
methodName, methods
 
Fields inherited from class org.bibop.xml.xforge.components.AbstractXForgeComponent
contentHandler, context, lexicalHandler, log, parameters, po
 
Constructor Summary
XSLComponent()
           
 
Method Summary
 void apply(java.lang.String xml, java.lang.String xsl)
           
 void apply(java.lang.String xml, java.lang.String xsl, java.lang.String parse)
           
 void applyandmeasure(java.lang.String xml, java.lang.String xsl)
           
 void configure(org.apache.avalon.framework.configuration.Configuration config)
           
 Monitor getMonitor()
           
private  boolean hasChanged(java.io.File file)
           
static void outputStatsAndReset()
           
 
Methods inherited from class org.bibop.xml.xforge.components.automation.AbstractAutomatedComponent
executeMethod, setMethod, toSax
 
Methods inherited from class org.bibop.xml.xforge.components.AbstractXForgeComponent
enableLogging, getActivePrefixes, output, output, setConsumer, setContentHandler, setLexicalHandler, setParameters, setParentPrefixesMonitor, setProcessingOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.bibop.xml.xforge.components.XForgeComponent
setParameters, setProcessingOptions
 
Methods inherited from interface org.bibop.xml.XMLProducer
setConsumer, setContentHandler, setLexicalHandler
 
Methods inherited from interface org.bibop.xml.xforge.PrefixesMonitor
getActivePrefixes, setParentPrefixesMonitor
 
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled
enableLogging
 

Field Detail

DEFAULT_TRANSFORMER_FACTORY

public static java.lang.String DEFAULT_TRANSFORMER_FACTORY

mTransformerFactory

protected javax.xml.transform.TransformerFactory mTransformerFactory

mTransformer

protected javax.xml.transform.Transformer mTransformer

mFiles

protected java.io.File[] mFiles

total

private static long total

iterations

private static long iterations

mXMLDocument

private java.lang.String mXMLDocument

handleErrorsInternally

protected boolean handleErrorsInternally
Constructor Detail

XSLComponent

public XSLComponent()
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration config)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Overrides:
configure in class AbstractXForgeComponent
org.apache.avalon.framework.configuration.ConfigurationException

apply

public void apply(java.lang.String xml,
                  java.lang.String xsl)
           throws org.xml.sax.SAXException
org.xml.sax.SAXException

apply

public void apply(java.lang.String xml,
                  java.lang.String xsl,
                  java.lang.String parse)
           throws org.xml.sax.SAXException
org.xml.sax.SAXException

hasChanged

private boolean hasChanged(java.io.File file)

applyandmeasure

public void applyandmeasure(java.lang.String xml,
                            java.lang.String xsl)
                     throws org.xml.sax.SAXException
org.xml.sax.SAXException

outputStatsAndReset

public static void outputStatsAndReset()
                                throws org.xml.sax.SAXException
org.xml.sax.SAXException

getMonitor

public Monitor getMonitor()
                   throws XForgeException
Specified by:
getMonitor in interface Monitorizable
XForgeException


Copyright 2003 Bibop Research International. All Rights Reserved.