|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XPathFunction
Serves as an interface for XPath functions (default and user written)
| Method Summary | |
|---|---|
boolean |
acceptsArity(int arity,
float xpathVersion)
Check whether function has the right arity |
XdmSequence |
call(java.util.List<XdmSequence> arguments,
DynamicXQueryContext context)
Does the actual function call by delivering an XdmSequence for the given arguments and context |
boolean |
dependsOnContextItem(int arity,
float xpathVersion)
Marks a function depending on the context item |
javax.xml.namespace.QName |
getName()
Specifies name of the function |
SequenceType[] |
getParameterDefinitions()
Returns the functions formal parameters. |
SequenceType |
getResultType(java.util.List<SequenceType> parameter)
Returns the function's result type (relative to a parameter type= |
| Method Detail |
|---|
javax.xml.namespace.QName getName()
boolean acceptsArity(int arity,
float xpathVersion)
arity - the arity for the functionxpathVersion - the used XPath version
boolean dependsOnContextItem(int arity,
float xpathVersion)
arity - the arity for the functionxpathVersion - the used XPath version
SequenceType[] getParameterDefinitions()
SequenceType getResultType(java.util.List<SequenceType> parameter)
parameter - may be null
XdmSequence call(java.util.List<XdmSequence> arguments,
DynamicXQueryContext context)
throws XPathException
arguments - a list of XdmSequences with the actual parameterscontext - the functions dynamic context
XPathException - thrown, when an error occured.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||