|
|||||||||
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(List<XdmSequence> arguments,
DynamicXQueryContext context)
Does the actual function call by delivering an XdmSequence for the given arguments and context |
QName |
getName()
Specifies name of the function |
SequenceType[] |
getParameterDefinitions()
Returns the functions formal parameters. |
SequenceType |
getResultType(List<SequenceType> parameter)
Returns the function's result type (relative to a parameter type= |
Method Detail |
---|
QName getName()
boolean acceptsArity(int arity, float xpathVersion)
arity
- the arity for the functionxpathVersion
- the used XPath version
SequenceType[] getParameterDefinitions()
SequenceType getResultType(List<SequenceType> parameter)
parameter
- may be null
XdmSequence call(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 |