Interface ScriptHandler
-
Method Summary
Modifier and TypeMethodDescriptionCalls the method with the given name, and set of argumentsCalls the method with the given name, and set of argumentsbooleancreateNamespace(String name) Creates a new namespace with the given nameEvaluates the given XSLScript element using the default namespaceEvaluates the given XSLScript element using the given namespaceevalAsFunction(XSLScript xslScript, Node context) Evaluates the given XSLScript element as a function using the default namespace.evalAsFunction(XSLScript xslScript, Node context, String namespace) Evaluates the given XSLScript element as a function using the given namespace.Returns the name of the language that this ScriptHandler handlesbooleanhasDefinedFunction(String name, String namespace) voidInitializes the scripting environment
-
Method Details
-
call
-
call
-
createNamespace
Creates a new namespace with the given name -
eval
-
eval
Evaluates the given XSLScript element using the given namespace- Parameters:
xslScript- the XSLScript to evaluatecontext- 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
-
evalAsFunction
Evaluates the given XSLScript element as a function using the default namespace.- Parameters:
xslScript- the XSLScript to evaluatecontext- the current DOM Node that is the context of this evaluation.- Returns:
- the result of the XSLScript evaluation
-
evalAsFunction
Evaluates the given XSLScript element as a function using the given namespace.- Parameters:
xslScript- the XSLScript to evaluatecontext- 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
-
getLanguage
String getLanguage()Returns the name of the language that this ScriptHandler handles- Returns:
- the name of the language that this ScriptHandler handles
-
hasDefinedFunction
-
initialize
Initializes the scripting environment- Parameters:
pc- the ProcessorCallback for supporting access to the RuleProcessor.
-