All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.kvisco.xsl.ScriptHandler

public interface ScriptHandler
An interface for scripting environments

Author:
Keith Visco

Method Index

 o call(String, Object[])
Calls the method with the given name, and set of arguments
 o call(String, Object[], String)
Calls the method with the given name, and set of arguments
 o createNamespace(String)
Creates a new namespace with the given name
 o eval(XSLScript, Node)
Evaluates the given XSLScript element using the default namespace
 o eval(XSLScript, Node, String)
Evaluates the given XSLScript element using the given namespace
 o evalAsFunction(XSLScript, Node)
Evaluates the given XSLScript element as a function using the default namespace.
 o evalAsFunction(XSLScript, Node, String)
Evaluates the given XSLScript element as a function using the given namespace.
 o getLanguage()
Returns the name of the language that this ScriptHandler handles
 o hasDefinedFunction(String, String)
 o initialize(ProcessorCallback)
Initializes the scripting environment

Methods

 o call
 public abstract Object call(String name,
                             Object args[])
Calls the method with the given name, and set of arguments

Parameters:
name - the name of the method to call
args - the methods arguments
Returns:
the result of the method invocation
 o call
 public abstract Object call(String name,
                             Object args[],
                             String namespace)
Calls the method with the given name, and set of arguments

Parameters:
name - the name of the method to call
args - the methods arguments
namespace - the Namespace to use for evaluation
Returns:
the result of the method invocation
 o createNamespace
 public abstract boolean createNamespace(String name)
Creates a new namespace with the given name

 o eval
 public abstract Object eval(XSLScript xslScript,
                             Node context)
Evaluates the given XSLScript element using the default namespace

Parameters:
xslScript - the XSLScript to evaluate
context - the current DOM Node that is the context of this evaluation.
Returns:
the result of the XSLScript evaluation
 o eval
 public abstract Object eval(XSLScript xslScript,
                             Node context,
                             String namespace)
Evaluates the given XSLScript element using the given namespace

Parameters:
xslScript - the XSLScript to evaluate
context - the current DOM Node that is the context of this evaluation.
namespace - the Namespace to use for evaluation
Returns:
the result of the XSLScript evaluation
 o evalAsFunction
 public abstract Object evalAsFunction(XSLScript xslScript,
                                       Node context)
Evaluates the given XSLScript element as a function using the default namespace.

Parameters:
xslScript - the XSLScript to evaluate
context - the current DOM Node that is the context of this evaluation.
Returns:
the result of the XSLScript evaluation
 o evalAsFunction
 public abstract Object evalAsFunction(XSLScript xslScript,
                                       Node context,
                                       String namespace)
Evaluates the given XSLScript element as a function using the given namespace.

Parameters:
xslScript - the XSLScript to evaluate
context - the current DOM Node that is the context of this evaluation.
namespace - the Namespace to use for evaluation
Returns:
the result of the XSLScript evaluation
 o getLanguage
 public abstract String getLanguage()
Returns the name of the language that this ScriptHandler handles

Returns:
the name of the language that this ScriptHandler handles
 o hasDefinedFunction
 public abstract boolean hasDefinedFunction(String name,
                                            String namespace)
 o initialize
 public abstract void initialize(ProcessorCallback pc)
Initializes the scripting environment

Parameters:
pc - the ProcessorCallback for supporting access to the RuleProcessor.

All Packages  Class Hierarchy  This Package  Previous  Next  Index