XSLTEngine (Bean Scripting Framework API)
Keywords: org.apache.bsf.engines.xslt.XSLTEngine class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.bsf.engines.xslt
Class XSLTEngine

    java.lang.Object
      org.apache.bsf.util.BSFEngineImpl
          org.apache.bsf.engines.xslt.XSLTEngine

All Implemented Interfaces:
  BSFEngine, java.util.EventListener, java.beans.PropertyChangeListener

public class XSLTEngine
extends BSFEngineImpl

Xerces XSLT interface to BSF. Requires Xalan and Xerces from Apache. This integration uses the BSF registry to pass in any src document and stylesheet base URI that the user may wish to set.

Author:
  Sanjiva Weerawarana, Sam Ruby Re-implemented for the Xalan 2 codebase, Victor J. Orlikowski

Field Summary

Fields inherited from class org.apache.bsf.util.BSFEngineImpl
`classLoader, classPath, declaredBeans, lang, mgr, tempDir`

Constructor Summary
`XSLTEngine()`

Method Summary
`java.lang.Object` | `call(java.lang.Object object, java.lang.String method, java.lang.Object[] args)` call the named method of the given object.
`void` | `declareBean(BSFDeclaredBean bean)` Declare a bean by setting it as a parameter
`java.lang.Object` | `eval(java.lang.String source, int lineNo, int columnNo, java.lang.Object oscript)` Evaluate an expression.
`void` | `initialize(BSFManager mgr, java.lang.String lang, java.util.Vector declaredBeans)` Initialize the engine.
`void` | `undeclareBean(BSFDeclaredBean bean)` Undeclare a bean by setting he parameter represeting it to null

Methods inherited from class org.apache.bsf.util.BSFEngineImpl
`apply, compileApply, compileExpr, compileScript, exec, iexec, propertyChange, terminate`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### XSLTEngine

    public XSLTEngine()

Method Detail

### call

    public java.lang.Object call(java.lang.Object object,
                                 java.lang.String method,
                                 java.lang.Object[] args)
                          throws BSFException

  call the named method of the given object.

  Parameters:
    `object` - object on which to make the call
    `method` - name of the method / procedure to call
    `args` - the arguments to be given to the procedure
  Throws:
    `BSFException` - if anything goes wrong while eval'ing a BSFException is thrown. The reason indicates the problem.

### declareBean

    public void declareBean(BSFDeclaredBean bean)
                     throws BSFException

  Declare a bean by setting it as a parameter

  Specified by:
    `declareBean` in interface `BSFEngine`
  Overrides:
    `declareBean` in class `BSFEngineImpl`
  Throws:
    `BSFException`

### eval

    public java.lang.Object eval(java.lang.String source,
                                 int lineNo,
                                 int columnNo,
                                 java.lang.Object oscript)
                          throws BSFException

  Evaluate an expression. In this case, an expression is assumed to be a stylesheet of the template style (see the XSLT spec).

  Parameters:
    `source` - (context info) the source of this expression (e.g., filename)
    `lineNo` - (context info) the line number in source for expr
    `columnNo` - (context info) the column number in source for expr
    `oscript` - the expression to evaluate
  Throws:
    `BSFException` - if anything goes wrong while eval'ing a BSFException is thrown. The reason indicates the problem.

### initialize

    public void initialize(BSFManager mgr,
                           java.lang.String lang,
                           java.util.Vector declaredBeans)
                    throws BSFException

  Initialize the engine.

  Specified by:
    `initialize` in interface `BSFEngine`
  Overrides:
    `initialize` in class `BSFEngineImpl`
  Throws:
    `BSFException`

### undeclareBean

    public void undeclareBean(BSFDeclaredBean bean)
                       throws BSFException

  Undeclare a bean by setting he parameter represeting it to null

  Specified by:
    `undeclareBean` in interface `BSFEngine`
  Overrides:
    `undeclareBean` in class `BSFEngineImpl`
  Throws:
    `BSFException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD