MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.functions
Class Function

java.lang.Object
  extended by ch.ethz.mxquery.functions.Function

public class Function
extends java.lang.Object

Holds information on the function metadata and methods to retrieve the implementation, either by an explicit iterator or by the name of a class to load


Constructor Summary
Function(java.lang.String className, FunctionSignature signature, XDMIterator iter)
           
 
Method Summary
 Function copy(Context context, java.util.Vector nestedPredCtxStack)
          Create a copy of this function
 Function getAsExternalFunction(java.lang.String prefix)
          Adapts the signature of the function to become an external class
 XDMIterator getFunctionImplementation(Context targetContext)
          Returns an implementation of this function as an iterator.
 FunctionSignature getFunctionSignature()
          Get the signature of this function
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Function

public Function(java.lang.String className,
                FunctionSignature signature,
                XDMIterator iter)
Method Detail

getAsExternalFunction

public Function getAsExternalFunction(java.lang.String prefix)
Adapts the signature of the function to become an external class

Parameters:
prefix - The namespace prefix in which the function should appear
Returns:
a copy of the function with an adapted signature

getFunctionImplementation

public XDMIterator getFunctionImplementation(Context targetContext)
                                      throws MXQueryException
Returns an implementation of this function as an iterator.

Returns:
an XDM iterator representing this function
Throws:
MXQueryException

getFunctionSignature

public FunctionSignature getFunctionSignature()
                                       throws MXQueryException
Get the signature of this function

Returns:
a copy of the signature
Throws:
MXQueryException

copy

public Function copy(Context context,
                     java.util.Vector nestedPredCtxStack)
              throws MXQueryException
Create a copy of this function

Parameters:
context -
nestedPredCtxStack -
Returns:
a deep copy of this function object
Throws:
MXQueryException

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich