ch.ethz.mxquery.functions
Class FunctionGallery
java.lang.Object
ch.ethz.mxquery.functions.FunctionGallery
public class FunctionGallery
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FunctionGallery
public FunctionGallery(XQStaticContext ctx)
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