org.basex.query.xquery
Class XQueryProcessor
java.lang.Object
org.basex.core.Progress
org.basex.query.QueryProcessor
org.basex.query.xquery.XQueryProcessor
public final class XQueryProcessor
- extends QueryProcessor
This is the main class of the XQuery Processor. The parse() method
evaluates the query and returns the parsed expression.
- Author:
- Workgroup DBIS, University of Konstanz 2005-07, ISC License, Christian Gruen
|
Constructor Summary |
XQueryProcessor(java.lang.String qu)
XPath Query Constructor. |
|
Method Summary |
void |
module(java.lang.String ns,
java.lang.String file)
Adds a module reference. |
QueryContext |
parse()
Parses and compiles the specified query. |
void |
parse(byte[] in)
Parses the specified input. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ctx
public XQContext ctx
- XQuery context reference.
XQueryProcessor
public XQueryProcessor(java.lang.String qu)
- XPath Query Constructor.
- Parameters:
qu - query
module
public void module(java.lang.String ns,
java.lang.String file)
- Adds a module reference.
- Parameters:
ns - module namespacefile - file name
parse
public QueryContext parse()
throws QueryException
- Description copied from class:
QueryProcessor
- Parses and compiles the specified query.
- Returns:
- query expression
- Throws:
QueryException - query exception
parse
public void parse(byte[] in)
throws QueryException
- Parses the specified input.
- Parameters:
in - input to be parsed
- Throws:
QueryException - query exception