org.basex.query.xquery
Class XQueryProcessor

java.lang.Object
  extended by org.basex.core.Progress
      extended by org.basex.query.QueryProcessor
          extended by 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

Field Summary
 XQContext ctx
          XQuery context reference.
 
Fields inherited from class org.basex.query.QueryProcessor
query
 
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 org.basex.query.QueryProcessor
compile, det, getInfo, head, prog, query, queryNodes
 
Methods inherited from class org.basex.core.Progress
detail, header, progress, progress, stop, stopped
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ctx

public XQContext ctx
XQuery context reference.

Constructor Detail

XQueryProcessor

public XQueryProcessor(java.lang.String qu)
XPath Query Constructor.

Parameters:
qu - query
Method Detail

module

public void module(java.lang.String ns,
                   java.lang.String file)
Adds a module reference.

Parameters:
ns - module namespace
file - 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