Examples of declareGlobalVariable()


Examples of net.sf.saxon.query.StaticQueryContext.declareGlobalVariable()

        for (DerivedColumn derivedColumn : passing) {
          if (derivedColumn.getAlias() == null) {
            continue;
          }
          try {
        context.declareGlobalVariable(StructuredQName.fromClarkName(derivedColumn.getAlias()), SequenceType.ANY_SEQUENCE, null, true);
      } catch (XPathException e) {
        //this is always expected to work
        throw new TeiidRuntimeException(e, "Could not define global variable"); //$NON-NLS-1$
      }
    }
View Full Code Here

Examples of org.exist.xquery.XQueryContext.declareGlobalVariable()

                                            Assert.assertEquals(1, res.getItemCount());
                                            var.setValue(res);
                                        } else {
                                            Assert.fail("unknown type '" + type + "'");
                                        }
                                        context.declareGlobalVariable(var);
                                    }
                                }
                            }
                        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.