Package xbird.xquery.expr.var.Variable

Examples of xbird.xquery.expr.var.Variable.GlobalVariable


        Variable declareGlobalVariable(QualifiedName varName, XQExpression value)
                throws XQueryException {
            if(vars.containsKey(varName)) {
                throw new XQueryException("err:XQST0049", "Variable already defined: " + varName);
            }
            Variable v = new GlobalVariable(varName, value);
            vars.put(varName, v);
            localVars.add(varName);
            return v;
        }
View Full Code Here


        Enumeration<String> paramNames = req.getParameterNames();
        while(paramNames.hasMoreElements()) {
            String name = paramNames.nextElement();
            String value = req.getParameter(name);
            QualifiedName qname = QNameUtil.parse(name, XQSP_NSURI);
            Variable var = new GlobalVariable(qname, null);
            var.setResult(XString.valueOf(value));
            try {
                loadedModule.putVariable(qname, var);
            } catch (XQueryException e) {
                reportError("Setting parameter failed: " + qname, e, out);
                return;
View Full Code Here

TOP

Related Classes of xbird.xquery.expr.var.Variable.GlobalVariable

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.