MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.functions
Class FunctionGallery

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

public class FunctionGallery
extends java.lang.Object


Constructor Summary
FunctionGallery(XQStaticContext ctx)
           
 
Method Summary
 void add(Function function)
           
 void add(Function function, boolean checkExistence, boolean external)
           
 FunctionGallery copy(Context context)
           
static FunctionGallery createStdFunctionGallery(XQStaticContext ctx)
          Creates a standard function library.
 Function get(QName name, int arity)
           
 java.util.Hashtable get(java.lang.String namespace)
           
 java.util.Hashtable getFunctionOfNS(java.lang.String namespace)
           
static void populateFunctionGallery(XQStaticContext ctx, FunctionGallery fg, java.io.InputStream is, java.lang.String location)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionGallery

public FunctionGallery(XQStaticContext ctx)
Method Detail

add

public void add(Function function,
                boolean checkExistence,
                boolean external)
         throws MXQueryException
Throws:
MXQueryException

add

public void add(Function function)
         throws MXQueryException
Throws:
MXQueryException

get

public java.util.Hashtable get(java.lang.String namespace)

getFunctionOfNS

public java.util.Hashtable getFunctionOfNS(java.lang.String namespace)

get

public Function get(QName name,
                    int arity)
             throws MXQueryException
Throws:
MXQueryException

createStdFunctionGallery

public static FunctionGallery createStdFunctionGallery(XQStaticContext ctx)
                                                throws MXQueryException
Creates a standard function library.

Parameters:
ctx - The context is needed to resolve the namespaces.
Returns:
A new function gallery
Throws:
MXQueryException

populateFunctionGallery

public static void populateFunctionGallery(XQStaticContext ctx,
                                           FunctionGallery fg,
                                           java.io.InputStream is,
                                           java.lang.String location)
                                    throws org.xmlpull.v1.XmlPullParserException,
                                           java.io.IOException,
                                           MXQueryException
Throws:
org.xmlpull.v1.XmlPullParserException
java.io.IOException
MXQueryException

copy

public FunctionGallery copy(Context context)
                     throws MXQueryException
Throws:
MXQueryException

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich