Package xbird.xquery

Examples of xbird.xquery.Module


                error("err:XQST0073");
            }
        }
        declarePrefix(nsPrefix, targetNamespace);
        // load library module
        final Module module;
        if(locationHints != null) {
            // TODO [Limitation] multiple location hints does not mean.
            module = staticContext.getModuleManager().loadModule(targetNamespace, locationHints.get(0));
        } else {
            module = staticContext.getModuleManager().loadModule(targetNamespace);
View Full Code Here


    private static XQExpression resolveExpression(Reader reader, StaticContext staticEnv)
            throws XQueryException {
        XQueryParser parser = new XQueryParser(reader);
        parser.setStaticContext(staticEnv);
        Module mod = parser.parse();
        XQExpression body = mod.getExpression();
        return body;
    }
View Full Code Here

        assert (dynEnv != null);
        // parse query
        XQueryParser parser = new XQueryParser(reader);
        StaticContext sc = dynEnv.getStaticContext();
        parser.setStaticContext(sc);
        Module mod = parser.parse();
        // static analysis
        mod.staticAnalysis(sc);
        // evaluate
        XQExpression body = mod.getExpression();
        Sequence res = body.eval(ValueSequence.EMPTY_SEQUENCE, dynEnv);
        return res;
    }
View Full Code Here

                error("err:XQST0073");
            }
        }
        declarePrefix(nsPrefix, targetNamespace);
        // load library module
        final Module module;
        if(locationHints != null) {
            // TODO [Limitation] multiple location hints does not mean.
            module = staticContext.getModuleManager().loadModule(targetNamespace, locationHints.get(0));
        } else {
            module = staticContext.getModuleManager().loadModule(targetNamespace);
View Full Code Here

TOP

Related Classes of xbird.xquery.Module

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.