org.oma.emml.client.EMMLUserFunction
The base class for user-defined, custom XPath functions for mashup scripts or macros. Any methods in subclasses can be exposed as XPath functions with the following limitations:
Methods for custom functions must be static class methods.
Method parameters must be simple types.
Methods for custom functions must return simple types.
This class extends net.sf.saxon.functions.SystemFunction. It contains the following methods:
public Expression preEvaluate(StaticContext env)
This method suppresses compile-time evaluation by doing nothing. This is necessary because the value of the expression depends on the runtime context.
public Item evaluateItem(XPathContext context)
The default method to perform some calculation based on the specified XPath context. The default implementation simply returns true. Custom implementations must return a simple value or a single node.
| context | The XPath context to use in this function. |
Enterprise Mashup Markup Language (EMML) Documentation is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.
