<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_18) on Fri Dec 09 20:48:45 GMT 2011 --> <TITLE> SaxonXQDynamicContext </TITLE> <META NAME="date" CONTENT="2011-12-09"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="SaxonXQDynamicContext"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../net/sf/saxon/xqj/SaxonXQDataSource.html" title="class in net.sf.saxon.xqj"><B>PREV CLASS</B></A> <A HREF="../../../../net/sf/saxon/xqj/SaxonXQExpression.html" title="class in net.sf.saxon.xqj"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?net/sf/saxon/xqj/SaxonXQDynamicContext.html" target="_top"><B>FRAMES</B></A> <A HREF="SaxonXQDynamicContext.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> net.sf.saxon.xqj</FONT> <BR> Class SaxonXQDynamicContext</H2> <PRE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../net/sf/saxon/xqj/Closable.html" title="class in net.sf.saxon.xqj">net.sf.saxon.xqj.Closable</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>net.sf.saxon.xqj.SaxonXQDynamicContext</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></DD> </DL> <DL> <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../net/sf/saxon/xqj/SaxonXQExpression.html" title="class in net.sf.saxon.xqj">SaxonXQExpression</A>, <A HREF="../../../../net/sf/saxon/xqj/SaxonXQPreparedExpression.html" title="class in net.sf.saxon.xqj">SaxonXQPreparedExpression</A></DD> </DL> <HR> <DL> <DT><PRE>public abstract class <B>SaxonXQDynamicContext</B><DT>extends <A HREF="../../../../net/sf/saxon/xqj/Closable.html" title="class in net.sf.saxon.xqj">Closable</A><DT>implements <A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></DL> </PRE> <P> Saxon implementation of the XQJ DynamicContext interface <P> <P> <HR> <P> <!-- =========== FIELD SUMMARY =========== --> <A NAME="field_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Field Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="../../../../net/sf/saxon/xqj/SaxonXQConnection.html" title="class in net.sf.saxon.xqj">SaxonXQConnection</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#connection">connection</A></B></CODE> <BR> </TD> </TR> </TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#SaxonXQDynamicContext()">SaxonXQDynamicContext</A></B>()</CODE> <BR> </TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#bindAtomicValue(javax.xml.namespace.QName, java.lang.String, javax.xml.xquery.XQItemType)">bindAtomicValue</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type)</CODE> <BR> Binds a value to the given external variable or the context item.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#bindBoolean(javax.xml.namespace.QName, boolean, javax.xml.xquery.XQItemType)">bindBoolean</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, boolean value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type)</CODE> <BR> Binds a value to the given external variable or the context item.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#bindByte(javax.xml.namespace.QName, byte, javax.xml.xquery.XQItemType)">bindByte</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, byte value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type)</CODE> <BR> Binds a value to the given external variable or the context item.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#bindDocument(javax.xml.namespace.QName, java.io.InputStream, java.lang.String, javax.xml.xquery.XQItemType)">bindDocument</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> value, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> baseURI, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type)</CODE> <BR> Binds a value to the given external variable or the context item.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#bindDocument(javax.xml.namespace.QName, java.io.Reader, java.lang.String, javax.xml.xquery.XQItemType)">bindDocument</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A> value, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> baseURI, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type)</CODE> <BR> Binds a value to the given external variable or the context item.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#bindDocument(javax.xml.namespace.QName, javax.xml.transform.Source, javax.xml.xquery.XQItemType)">bindDocument</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/transform/Source.html?is-external=true" title="class or interface in javax.xml.transform">Source</A> value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type)</CODE> <BR> Binds a value to the given external variable or the context item from the given <code>Source</code>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#bindDocument(javax.xml.namespace.QName, java.lang.String, java.lang.String, javax.xml.xquery.XQItemType)">bindDocument</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> value, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> baseURI, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type)</CODE> <BR> Binds a value to the given external variable or the context item.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#bindDocument(javax.xml.namespace.QName, javax.xml.stream.XMLStreamReader, javax.xml.xquery.XQItemType)">bindDocument</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/stream/XMLStreamReader.html?is-external=true" title="class or interface in javax.xml.stream">XMLStreamReader</A> value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type)</CODE> <BR> Binds a value to the given external variable or the context item.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#bindDouble(javax.xml.namespace.QName, double, javax.xml.xquery.XQItemType)">bindDouble</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, double value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type)</CODE> <BR> Binds a value to the given external variable or the context item.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#bindFloat(javax.xml.namespace.QName, float, javax.xml.xquery.XQItemType)">bindFloat</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, float value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type)</CODE> <BR> Binds a value to the given external variable or the context item.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#bindInt(javax.xml.namespace.QName, int, javax.xml.xquery.XQItemType)">bindInt</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, int value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type)</CODE> <BR> Binds a value to the given external variable or the context item.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#bindItem(javax.xml.namespace.QName, javax.xml.xquery.XQItem)">bindItem</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="../../../../javax/xml/xquery/XQItem.html" title="interface in javax.xml.xquery">XQItem</A> value)</CODE> <BR> Binds a value to the given external variable.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#bindLong(javax.xml.namespace.QName, long, javax.xml.xquery.XQItemType)">bindLong</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, long value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type)</CODE> <BR> Binds a value to the given external variable or the context item.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#bindNode(javax.xml.namespace.QName, org.w3c.dom.Node, javax.xml.xquery.XQItemType)">bindNode</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="http://download.oracle.com/javase/6/docs/api/org/w3c/dom/Node.html?is-external=true" title="class or interface in org.w3c.dom">Node</A> value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type)</CODE> <BR> Binds a value to the given external variable or the context item.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#bindObject(javax.xml.namespace.QName, java.lang.Object, javax.xml.xquery.XQItemType)">bindObject</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type)</CODE> <BR> Binds a value to the given external variable or the context item.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#bindSequence(javax.xml.namespace.QName, javax.xml.xquery.XQSequence)">bindSequence</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="../../../../javax/xml/xquery/XQSequence.html" title="interface in javax.xml.xquery">XQSequence</A> value)</CODE> <BR> Binds a value to the given external variable or the context item.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#bindShort(javax.xml.namespace.QName, short, javax.xml.xquery.XQItemType)">bindShort</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, short value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type)</CODE> <BR> Binds a value to the given external variable or the context item.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#bindString(javax.xml.namespace.QName, java.lang.String, javax.xml.xquery.XQItemType)">bindString</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type)</CODE> <BR> Binds a value to the given external variable or the context item.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected abstract boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#externalVariableExists(javax.xml.namespace.QName)">externalVariableExists</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> name)</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="../../../../net/sf/saxon/Configuration.html" title="class in net.sf.saxon">Configuration</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#getConfiguration()">getConfiguration</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected abstract <A HREF="../../../../net/sf/saxon/xqj/SaxonXQDataFactory.html" title="class in net.sf.saxon.xqj">SaxonXQDataFactory</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#getDataFactory()">getDataFactory</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected abstract <A HREF="../../../../net/sf/saxon/query/DynamicQueryContext.html" title="class in net.sf.saxon.query">DynamicQueryContext</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#getDynamicContext()">getDynamicContext</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/TimeZone.html?is-external=true" title="class or interface in java.util">TimeZone</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#getImplicitTimeZone()">getImplicitTimeZone</A></B>()</CODE> <BR> Gets the implicit timezone</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonXQDynamicContext.html#setImplicitTimeZone(java.util.TimeZone)">setImplicitTimeZone</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/TimeZone.html?is-external=true" title="class or interface in java.util">TimeZone</A> implicitTimeZone)</CODE> <BR> Sets the implicit timezone</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_net.sf.saxon.xqj.Closable"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class net.sf.saxon.xqj.<A HREF="../../../../net/sf/saxon/xqj/Closable.html" title="class in net.sf.saxon.xqj">Closable</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../net/sf/saxon/xqj/Closable.html#close()">close</A>, <A HREF="../../../../net/sf/saxon/xqj/Closable.html#isClosed()">isClosed</A>, <A HREF="../../../../net/sf/saxon/xqj/Closable.html#setClosableContainer(net.sf.saxon.xqj.Closable)">setClosableContainer</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> </TR> </TABLE> <P> <!-- ============ FIELD DETAIL =========== --> <A NAME="field_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Field Detail</B></FONT></TH> </TR> </TABLE> <A NAME="connection"><!-- --></A><H3> connection</H3> <PRE> protected <A HREF="../../../../net/sf/saxon/xqj/SaxonXQConnection.html" title="class in net.sf.saxon.xqj">SaxonXQConnection</A> <B>connection</B></PRE> <DL> <DL> </DL> </DL> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TH> </TR> </TABLE> <A NAME="SaxonXQDynamicContext()"><!-- --></A><H3> SaxonXQDynamicContext</H3> <PRE> public <B>SaxonXQDynamicContext</B>()</PRE> <DL> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="getDynamicContext()"><!-- --></A><H3> getDynamicContext</H3> <PRE> protected abstract <A HREF="../../../../net/sf/saxon/query/DynamicQueryContext.html" title="class in net.sf.saxon.query">DynamicQueryContext</A> <B>getDynamicContext</B>()</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getConfiguration()"><!-- --></A><H3> getConfiguration</H3> <PRE> protected final <A HREF="../../../../net/sf/saxon/Configuration.html" title="class in net.sf.saxon">Configuration</A> <B>getConfiguration</B>()</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getDataFactory()"><!-- --></A><H3> getDataFactory</H3> <PRE> protected abstract <A HREF="../../../../net/sf/saxon/xqj/SaxonXQDataFactory.html" title="class in net.sf.saxon.xqj">SaxonXQDataFactory</A> <B>getDataFactory</B>() throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE></DL> </DD> </DL> <HR> <A NAME="externalVariableExists(javax.xml.namespace.QName)"><!-- --></A><H3> externalVariableExists</H3> <PRE> protected abstract boolean <B>externalVariableExists</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> name)</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="bindAtomicValue(javax.xml.namespace.QName, java.lang.String, javax.xml.xquery.XQItemType)"><!-- --></A><H3> bindAtomicValue</H3> <PRE> public void <B>bindAtomicValue</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type) throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindAtomicValue(javax.xml.namespace.QName, java.lang.String, javax.xml.xquery.XQItemType)">XQDynamicContext</A></CODE></B></DD> <DD>Binds a value to the given external variable or the context item. The value is converted into an instance of the specified type according to the casting from <code>xs:string</code> rules outlined in <a href="http://www.w3.org/TR/xpath-functions/#casting-from-strings"> <i>17.1.1 Casting from xs:string and xs:untypedAtomic, XQuery 1.0 and XPath 2.0 Functions and Operators</i></a>. If the cast fails, or if there is a mismatch between the static and dynamic types, an <code>XQException</code> is thrown either by this method or during query evaluation. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindAtomicValue(javax.xml.namespace.QName, java.lang.String, javax.xml.xquery.XQItemType)">bindAtomicValue</A></CODE> in interface <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>varname</CODE> - the name of the external variable to bind to<DD><CODE>value</CODE> - the lexical string value of the type<DD><CODE>type</CODE> - the item type of the bind <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE> - if (1) any of the arguments are <code>null</code>, (2) given type is not an atomic type, (3) the conversion of the value to an XDM instance failed, (4) in case of an <code>XQPreparedExpression</code>, the dynamic type of the bound value is not compatible with the static type of the variable, (5) in case of an <code>XQPreparedExpression</code>, the variable is not defined in the prolog of the expression, or (6) the expression is in a closed state</DL> </DD> </DL> <HR> <A NAME="bindBoolean(javax.xml.namespace.QName, boolean, javax.xml.xquery.XQItemType)"><!-- --></A><H3> bindBoolean</H3> <PRE> public void <B>bindBoolean</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, boolean value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type) throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindBoolean(javax.xml.namespace.QName, boolean, javax.xml.xquery.XQItemType)">XQDynamicContext</A></CODE></B></DD> <DD>Binds a value to the given external variable or the context item. The value is converted into an instance of the specified type according to the rule defined in <i>14.2 Mapping a Java Data Type to an XQuery Data Type, XQuery API for Java (XQJ) 1.0</i>. If the conversion fails, or if there is a mismatch between the static and dynamic types, an <code>XQException</code> is raised either by this method, or during query evaluation. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindBoolean(javax.xml.namespace.QName, boolean, javax.xml.xquery.XQItemType)">bindBoolean</A></CODE> in interface <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>varname</CODE> - the name of the external variable to bind to, cannot be <code>null</code><DD><CODE>value</CODE> - the value to be converted<DD><CODE>type</CODE> - the type of the value to be bound to the external variable. The default type of the value is used in case <code>null</code> is specified <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE> - if (1) the <code>varName</code> argument is <code>null</code>, (2) the conversion of the value to an XDM instance failed, (3) in case of an <code>XQPreparedExpression</code>, the dynamic type of the bound value is not compatible with the static type of the variable, (4) in case of an <code>XQPreparedExpression</code>, the variable is not defined in the prolog of the expression, or (5) if the expression is in a closed state</DL> </DD> </DL> <HR> <A NAME="bindByte(javax.xml.namespace.QName, byte, javax.xml.xquery.XQItemType)"><!-- --></A><H3> bindByte</H3> <PRE> public void <B>bindByte</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, byte value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type) throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindByte(javax.xml.namespace.QName, byte, javax.xml.xquery.XQItemType)">XQDynamicContext</A></CODE></B></DD> <DD>Binds a value to the given external variable or the context item. The value is converted into an instance of the specified type according to the rule defined in <i>14.2 Mapping a Java Data Type to an XQuery Data Type, XQuery API for Java (XQJ) 1.0</i>. If the conversion fails, or if there is a mismatch between the static and dynamic types, an <code>XQException</code> is raised either by this method, or during query evaluation. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindByte(javax.xml.namespace.QName, byte, javax.xml.xquery.XQItemType)">bindByte</A></CODE> in interface <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>varname</CODE> - the name of the external variable to bind to, cannot be <code>null</code><DD><CODE>value</CODE> - the value to be converted<DD><CODE>type</CODE> - the type of the value to be bound to the external variable. The default type of the value is used in case <code>null</code> is specified <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE> - if (1) the <code>varName</code> argument is <code>null</code>, (2) the conversion of the value to an XDM instance failed, (3) in case of an <code>XQPreparedExpression</code>, the dynamic type of the bound value is not compatible with the static type of the variable, (4) in case of an <code>XQPreparedExpression</code>, the variable is not defined in the prolog of the expression, or (5) if the expression is in a closed state</DL> </DD> </DL> <HR> <A NAME="bindDocument(javax.xml.namespace.QName, java.io.InputStream, java.lang.String, javax.xml.xquery.XQItemType)"><!-- --></A><H3> bindDocument</H3> <PRE> public void <B>bindDocument</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> value, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> baseURI, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type) throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindDocument(javax.xml.namespace.QName, java.io.InputStream, java.lang.String, javax.xml.xquery.XQItemType)">XQDynamicContext</A></CODE></B></DD> <DD>Binds a value to the given external variable or the context item. <br> <br> If the value represents a well-formed XML document, it will be parsed and results in a document node. The kind of the input type must be <code>null</code>, <code>XQITEMKIND_DOCUMENT_ELEMENT</code>, or <code>XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT</code>. <br> <br> The value is converted into an instance of the specified type according to the rules defined in <i>14.3 Mapping a Java XML document to an XQuery document node, XQuery API for Java (XQJ) 1.0</i>. <br> <br> If the conversion fails, or if there is a mismatch between the static and dynamic types, an <code>XQException</code> is raised either by this method, or during query evaluation. If the value is not well formed, or if a kind of the input type other than the values list above is specified, behavior is implementation defined and may raise an exception. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindDocument(javax.xml.namespace.QName, java.io.InputStream, java.lang.String, javax.xml.xquery.XQItemType)">bindDocument</A></CODE> in interface <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>varname</CODE> - the name of the external variable to bind to, cannot be <code>null</code><DD><CODE>value</CODE> - the value to be converted, cannot be <code>null</code><DD><CODE>baseURI</CODE> - an optional base URI, can be <code>null</code>. It can be used, for example, to resolve relative URIs and to include in error messages.<DD><CODE>type</CODE> - the type of the value for the created document node. If <code>null</code> is specified, it behaves as if <code>XQDataFactory.createDocumentElementType( XQDataFactory.createElementType(null, XQItemType.XQBASETYPE_XS_UNTYPED))</code> were passed in as the type parameter. That is, the type represents the XQuery sequence type <code>document-node(element(*, xs:untyped))</code> <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE> - if (1) the <code>varName</code> or <code>value</code> argument is <code>null</code>, (2) the conversion of the value to an XDM instance failed, (3) in case of an <code>XQPreparedExpression</code>, the dynamic type of the bound value is not compatible with the static type of the variable, (4) in case of an <code>XQPreparedExpression</code>, the variable is not defined in the prolog of the expression, or (5) if the expression is in a closed state</DL> </DD> </DL> <HR> <A NAME="bindDocument(javax.xml.namespace.QName, java.io.Reader, java.lang.String, javax.xml.xquery.XQItemType)"><!-- --></A><H3> bindDocument</H3> <PRE> public void <B>bindDocument</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A> value, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> baseURI, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type) throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindDocument(javax.xml.namespace.QName, java.io.Reader, java.lang.String, javax.xml.xquery.XQItemType)">XQDynamicContext</A></CODE></B></DD> <DD>Binds a value to the given external variable or the context item. <br> <br> If the value represents a well-formed XML document, it will be parsed and results in a document node. The kind of the input type must be <code>null</code>, <code>XQITEMKIND_DOCUMENT_ELEMENT</code>, or <code>XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT</code>. <br> <br> The value is converted into an instance of the specified type according to the rules defined in <i>14.3 Mapping a Java XML document to an XQuery document node, XQuery API for Java (XQJ) 1.0</i>. <br> <br> If the conversion fails, or if there is a mismatch between the static and dynamic types, an <code>XQException</code> is raised either by this method, or during query evaluation. If the value is not well formed, or if a kind of the input type other than the values list above is specified, behavior is implementation defined and may raise an exception. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindDocument(javax.xml.namespace.QName, java.io.Reader, java.lang.String, javax.xml.xquery.XQItemType)">bindDocument</A></CODE> in interface <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>varname</CODE> - the name of the external variable to bind to, cannot be <code>null</code><DD><CODE>value</CODE> - the value to be converted, cannot be <code>null</code><DD><CODE>baseURI</CODE> - an optional base URI, can be <code>null</code>. It can be used, for example, to resolve relative URIs and to include in error messages.<DD><CODE>type</CODE> - the type of the value for the created document node. If <code>null</code> is specified, it behaves as if <code>XQDataFactory.createDocumentElementType( XQDataFactory.createElementType(null, XQItemType.XQBASETYPE_XS_UNTYPED))</code> were passed in as the type parameter. That is, the type represents the XQuery sequence type <code>document-node(element(*, xs:untyped))</code> <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE> - if (1) the <code>varName</code> or <code>value</code> argument is <code>null</code>, (2) the conversion of the value to an XDM instance failed, (3) in case of an <code>XQPreparedExpression</code>, the dynamic type of the bound value is not compatible with the static type of the variable, (4) in case of an <code>XQPreparedExpression</code>, the variable is not defined in the prolog of the expression, or (5) if the expression is in a closed state</DL> </DD> </DL> <HR> <A NAME="bindDocument(javax.xml.namespace.QName, javax.xml.transform.Source, javax.xml.xquery.XQItemType)"><!-- --></A><H3> bindDocument</H3> <PRE> public void <B>bindDocument</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/transform/Source.html?is-external=true" title="class or interface in javax.xml.transform">Source</A> value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type) throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindDocument(javax.xml.namespace.QName, javax.xml.transform.Source, javax.xml.xquery.XQItemType)">XQDynamicContext</A></CODE></B></DD> <DD>Binds a value to the given external variable or the context item from the given <code>Source</code>. An XQJ implementation must at least support the following implementations: <ul> <li><code>javax.xml.transform.dom.DOMSource</code></li> <li><code>javax.xml.transform.sax.SAXSource</code></li> <li><code>javax.xml.transform.stream.StreamSource</code></li> </ul> <br> <br> If the value represents a well-formed XML document, it will result in a document node. The kind of the input type must be <code>null</code>, <code>XQITEMKIND_DOCUMENT_ELEMENT</code>, or <code>XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT</code>. <br> <br> The value is converted into an instance of the specified type according to the rules defined in <i>14.3 Mapping a Java XML document to an XQuery document node, XQuery API for Java (XQJ) 1.0</i>. <br> <br> If the value is not well formed, or if a kind of the input type other than the values list above is specified, behavior is implementation defined and may raise an exception. If the conversion fails, or if there is a mismatch between the static and dynamic types, an <code>XQException</code> is raised either by this method, or during query evaluation. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindDocument(javax.xml.namespace.QName, javax.xml.transform.Source, javax.xml.xquery.XQItemType)">bindDocument</A></CODE> in interface <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>varname</CODE> - the name of the external variable to bind to, cannot be <code>null</code><DD><CODE>value</CODE> - the value to be converted, cannot be <code>null</code><DD><CODE>type</CODE> - the type of the value for the created document node. If <code>null</code> is specified, it behaves as if <code>XQDataFactory.createDocumentElementType( XQDataFactory.createElementType(null, XQItemType.XQBASETYPE_XS_UNTYPED))</code> were passed in as the type parameter. That is, the type represents the XQuery sequence type <code>document-node(element(*, xs:untyped))</code> <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE> - if (1) the <code>varName</code> or <code>value</code> argument is <code>null</code>, (2) the conversion of the value to an XDM instance failed, (3) in case of an <code>XQPreparedExpression</code>, the dynamic type of the bound value is not compatible with the static type of the variable, (4) in case of an <code>XQPreparedExpression</code>, the variable is not defined in the prolog of the expression, or (5) if the expression is in a closed state</DL> </DD> </DL> <HR> <A NAME="bindDocument(javax.xml.namespace.QName, java.lang.String, java.lang.String, javax.xml.xquery.XQItemType)"><!-- --></A><H3> bindDocument</H3> <PRE> public void <B>bindDocument</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> value, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> baseURI, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type) throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindDocument(javax.xml.namespace.QName, java.lang.String, java.lang.String, javax.xml.xquery.XQItemType)">XQDynamicContext</A></CODE></B></DD> <DD>Binds a value to the given external variable or the context item. <br> <br> If the value represents a well-formed XML document, it will be parsed and results in a document node. The kind of the input type must be <code>null</code>, <code>XQITEMKIND_DOCUMENT_ELEMENT</code>, or <code>XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT</code>. <br> <br> The value is converted into an instance of the specified type according to the rules defined in <i>14.3 Mapping a Java XML document to an XQuery document node, XQuery API for Java (XQJ) 1.0</i>. <br> <br> If the conversion fails, or if there is a mismatch between the static and dynamic types, an <code>XQException</code> is raised either by this method, or during query evaluation. If the value is not well formed, or if a kind of the input type other than the values list above is specified, behavior is implementation defined and may raise an exception. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindDocument(javax.xml.namespace.QName, java.lang.String, java.lang.String, javax.xml.xquery.XQItemType)">bindDocument</A></CODE> in interface <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>varname</CODE> - the name of the external variable to bind to, cannot be <code>null</code><DD><CODE>value</CODE> - the value to be converted, cannot be <code>null</code><DD><CODE>baseURI</CODE> - an optional base URI, can be <code>null</code>. It can be used, for example, to resolve relative URIs and to include in error messages.<DD><CODE>type</CODE> - the type of the value for the created document node. If <code>null</code> is specified, it behaves as if <code>XQDataFactory.createDocumentElementType( XQDataFactory.createElementType(null, XQItemType.XQBASETYPE_XS_UNTYPED))</code> were passed in as the type parameter. That is, the type represents the XQuery sequence type <code>document-node(element(*, xs:untyped))</code> <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE> - if (1) the <code>varName</code> or <code>value</code> argument is <code>null</code>, (2) the conversion of the value to an XDM instance failed, (3) in case of an <code>XQPreparedExpression</code>, the dynamic type of the bound value is not compatible with the static type of the variable, (4) in case of an <code>XQPreparedExpression</code>, the variable is not defined in the prolog of the expression, or (5) if the expression is in a closed state</DL> </DD> </DL> <HR> <A NAME="bindDocument(javax.xml.namespace.QName, javax.xml.stream.XMLStreamReader, javax.xml.xquery.XQItemType)"><!-- --></A><H3> bindDocument</H3> <PRE> public void <B>bindDocument</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/stream/XMLStreamReader.html?is-external=true" title="class or interface in javax.xml.stream">XMLStreamReader</A> value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type) throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindDocument(javax.xml.namespace.QName, javax.xml.stream.XMLStreamReader, javax.xml.xquery.XQItemType)">XQDynamicContext</A></CODE></B></DD> <DD>Binds a value to the given external variable or the context item. <br> <br> If the value represents a well-formed XML document, it results in a document node. The kind of the input type must be <code>null</code>, <code>XQITEMKIND_DOCUMENT_ELEMENT</code> or <code>XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT</code>. <br> <br> The value is converted into an instance of the specified type according to the rules defined in <i>14.3 Mapping a Java XML document to an XQuery document node, XQuery API for Java (XQJ) 1.0</i>. <br> <br> If the value is not well formed, or if a kind of the input type other than the values list above is specified, behavior is implementation defined and may raise an exception. If the conversion fails, or if there is a mismatch between the static and dynamic types, an <code>XQException</code> is raised either by this method, or during query evaluation. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindDocument(javax.xml.namespace.QName, javax.xml.stream.XMLStreamReader, javax.xml.xquery.XQItemType)">bindDocument</A></CODE> in interface <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>varname</CODE> - the name of the external variable to bind to, cannot be <code>null</code><DD><CODE>value</CODE> - the value to be converted, cannot be <code>null</code><DD><CODE>type</CODE> - the type of the value for the created document node. If <code>null</code> is specified, it behaves as if <code>XQDataFactory.createDocumentElementType( XQDataFactory.createElementType(null, XQItemType.XQBASETYPE_XS_UNTYPED))</code> were passed in as the type parameter. That is, the type represents the XQuery sequence type <code>document-node(element(*, xs:untyped))</code> <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE> - if (1) the <code>varName</code> or <code>value</code> argument is <code>null</code>, (2) the conversion of the value to an XDM instance failed, (3) in case of an <code>XQPreparedExpression</code>, the dynamic type of the bound value is not compatible with the static type of the variable, (4) in case of an <code>XQPreparedExpression</code>, the variable is not defined in the prolog of the expression, or (5) if the expression is in a closed state</DL> </DD> </DL> <HR> <A NAME="bindDouble(javax.xml.namespace.QName, double, javax.xml.xquery.XQItemType)"><!-- --></A><H3> bindDouble</H3> <PRE> public void <B>bindDouble</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, double value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type) throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindDouble(javax.xml.namespace.QName, double, javax.xml.xquery.XQItemType)">XQDynamicContext</A></CODE></B></DD> <DD>Binds a value to the given external variable or the context item. The value is converted into an instance of the specified type according to the rule defined in <i>14.2 Mapping a Java Data Type to an XQuery Data Type, XQuery API for Java (XQJ) 1.0</i>. If the conversion fails, or if there is a mismatch between the static and dynamic types, an <code>XQException</code> is raised either by this method, or during query evaluations. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindDouble(javax.xml.namespace.QName, double, javax.xml.xquery.XQItemType)">bindDouble</A></CODE> in interface <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>varname</CODE> - the name of the external variable to bind to, cannot be <code>null</code><DD><CODE>value</CODE> - the value to be converted<DD><CODE>type</CODE> - the type of the value to be bound to the external variable. The default type of the value is used in case <code>null</code> is specified <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE> - if (1) the <code>varName</code> argument is <code>null</code>, (2) the conversion of the value to an XDM instance failed, (3) in case of an <code>XQPreparedExpression</code>, the dynamic type of the bound value is not compatible with the static type of the variable, (4) in case of an <code>XQPreparedExpression</code>, the variable is not defined in the prolog of the expression, or (5) if the expression is in a closed state</DL> </DD> </DL> <HR> <A NAME="bindFloat(javax.xml.namespace.QName, float, javax.xml.xquery.XQItemType)"><!-- --></A><H3> bindFloat</H3> <PRE> public void <B>bindFloat</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, float value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type) throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindFloat(javax.xml.namespace.QName, float, javax.xml.xquery.XQItemType)">XQDynamicContext</A></CODE></B></DD> <DD>Binds a value to the given external variable or the context item. The value is converted into an instance of the specified type according to the rule defined in <i>14.2 Mapping a Java Data Type to an XQuery Data Type, XQuery API for Java (XQJ) 1.0</i>. If the conversion fails, or if there is a mismatch between the static and dynamic types, an <code>XQException</code> is raised either by this method, or during query evaluations. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindFloat(javax.xml.namespace.QName, float, javax.xml.xquery.XQItemType)">bindFloat</A></CODE> in interface <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>varname</CODE> - the name of the external variable to bind to, cannot be <code>null</code><DD><CODE>value</CODE> - the value to be converted<DD><CODE>type</CODE> - the type of the value to be bound to the external variable. The default type of the value is used in case <code>null</code> is specified <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE> - if (1) the <code>varName</code> argument is <code>null</code>, (2) the conversion of the value to an XDM instance failed, (3) in case of an <code>XQPreparedExpression</code>, the dynamic type of the bound value is not compatible with the static type of the variable, (4) in case of an <code>XQPreparedExpression</code>, the variable is not defined in the prolog of the expression, or (5) if the expression is in a closed state</DL> </DD> </DL> <HR> <A NAME="bindInt(javax.xml.namespace.QName, int, javax.xml.xquery.XQItemType)"><!-- --></A><H3> bindInt</H3> <PRE> public void <B>bindInt</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, int value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type) throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindInt(javax.xml.namespace.QName, int, javax.xml.xquery.XQItemType)">XQDynamicContext</A></CODE></B></DD> <DD>Binds a value to the given external variable or the context item. The value is converted into an instance of the specified type according to the rule defined in <i>14.2 Mapping a Java Data Type to an XQuery Data Type, XQuery API for Java (XQJ) 1.0</i>. If the conversion fails, or if there is a mismatch between the static and dynamic types, an <code>XQException</code> is raised either by this method, or during query evaluations. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindInt(javax.xml.namespace.QName, int, javax.xml.xquery.XQItemType)">bindInt</A></CODE> in interface <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>varname</CODE> - the name of the external variable to bind to, cannot be <code>null</code><DD><CODE>value</CODE> - the value to be converted<DD><CODE>type</CODE> - the type of the value to be bound to the external variable. The default type of the value is used in case <code>null</code> is specified <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE> - if (1) the <code>varName</code> argument is <code>null</code>, (2) the conversion of the value to an XDM instance failed, (3) in case of an <code>XQPreparedExpression</code>, the dynamic type of the bound value is not compatible with the static type of the variable, (4) in case of an <code>XQPreparedExpression</code>, the variable is not defined in the prolog of the expression, or (5) if the expression is in a closed state</DL> </DD> </DL> <HR> <A NAME="bindItem(javax.xml.namespace.QName, javax.xml.xquery.XQItem)"><!-- --></A><H3> bindItem</H3> <PRE> public void <B>bindItem</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="../../../../javax/xml/xquery/XQItem.html" title="interface in javax.xml.xquery">XQItem</A> value) throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindItem(javax.xml.namespace.QName, javax.xml.xquery.XQItem)">XQDynamicContext</A></CODE></B></DD> <DD>Binds a value to the given external variable. The dynamic type of the value is derived from the <code>XQItem</code>. In case of a mismatch between the static and dynamic types, an <code>XQException</code> is raised either by this method, or during query evaluation. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindItem(javax.xml.namespace.QName, javax.xml.xquery.XQItem)">bindItem</A></CODE> in interface <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>varname</CODE> - the name of the external variable to bind to, cannot be <code>null</code><DD><CODE>value</CODE> - the value to be bound, cannot be <code>null</code> <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE> - if (1) any of the arguments are <code>null</code>, (2) in case of an <code>XQPreparedExpression</code>, the dynamic type of the bound value is not compatible with the static type of the variable, (3) in case of an <code>XQPreparedExpression</code>, the variable is not defined in the prolog of the expression, (4) the expression is in a closed state, or (5) the specified item is closed</DL> </DD> </DL> <HR> <A NAME="bindLong(javax.xml.namespace.QName, long, javax.xml.xquery.XQItemType)"><!-- --></A><H3> bindLong</H3> <PRE> public void <B>bindLong</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, long value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type) throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindLong(javax.xml.namespace.QName, long, javax.xml.xquery.XQItemType)">XQDynamicContext</A></CODE></B></DD> <DD>Binds a value to the given external variable or the context item. The value is converted into an instance of the specified type according to the rule defined in <i>14.2 Mapping a Java Data Type to an XQuery Data Type, XQuery API for Java (XQJ) 1.0</i>. If the conversion fails, or if there is a mismatch between the static and dynamic types, an <code>XQException</code> is raised either by this method, or during query evaluation. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindLong(javax.xml.namespace.QName, long, javax.xml.xquery.XQItemType)">bindLong</A></CODE> in interface <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>varname</CODE> - the name of the external variable to bind to, cannot be <code>null</code><DD><CODE>value</CODE> - the value to be converted<DD><CODE>type</CODE> - the type of the value to be bound to the external variable. The default type of the value is used in case <code>null</code> is specified <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE> - if (1) the <code>varName</code> argument is <code>null</code>, (2) the conversion of the value to an XDM instance failed, (3) in case of an <code>XQPreparedExpression</code>, the dynamic type of the bound value is not compatible with the static type of the variable, (4) in case of an <code>XQPreparedExpression</code>, the variable is not defined in the prolog of the expression, or (5) if the expression is in a closed state</DL> </DD> </DL> <HR> <A NAME="bindNode(javax.xml.namespace.QName, org.w3c.dom.Node, javax.xml.xquery.XQItemType)"><!-- --></A><H3> bindNode</H3> <PRE> public void <B>bindNode</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="http://download.oracle.com/javase/6/docs/api/org/w3c/dom/Node.html?is-external=true" title="class or interface in org.w3c.dom">Node</A> value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type) throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindNode(javax.xml.namespace.QName, org.w3c.dom.Node, javax.xml.xquery.XQItemType)">XQDynamicContext</A></CODE></B></DD> <DD>Binds a value to the given external variable or the context item. The value is converted into an instance of the specified type according to the rule defined in <i>14.2 Mapping a Java Data Type to an XQuery Data Type, XQuery API for Java (XQJ) 1.0</i>. If the conversion fails, or if there is a mismatch between the static and dynamic types, an <code>XQException</code> is raised either by this method, or during query evaluation. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindNode(javax.xml.namespace.QName, org.w3c.dom.Node, javax.xml.xquery.XQItemType)">bindNode</A></CODE> in interface <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>varname</CODE> - the name of the external variable to bind to, cannot be <code>null</code><DD><CODE>value</CODE> - the value to be converted, cannot be <code>null</code><DD><CODE>type</CODE> - the type of the value to be bound to the external variable. The default type of the value is used in case <code>null</code> is specified <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE> - if (1) the <code>varName</code> or <code>value</code> argument is <code>null</code>, (2) the conversion of the value to an XDM instance failed, (3) in case of an <code>XQPreparedExpression</code>, the dynamic type of the bound value is not compatible with the static type of the variable, (4) in case of an <code>XQPreparedExpression</code>, the variable is not defined in the prolog of the expression, or (5) if the expression is in a closed state</DL> </DD> </DL> <HR> <A NAME="bindObject(javax.xml.namespace.QName, java.lang.Object, javax.xml.xquery.XQItemType)"><!-- --></A><H3> bindObject</H3> <PRE> public void <B>bindObject</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type) throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindObject(javax.xml.namespace.QName, java.lang.Object, javax.xml.xquery.XQItemType)">XQDynamicContext</A></CODE></B></DD> <DD>Binds a value to the given external variable or the context item. The value is converted into an instance of the specified type according to the rule defined in <i>14.2 Mapping a Java Data Type to an XQuery Data Type, XQuery API for Java (XQJ) 1.0</i>. If the conversion fails, or if there is a mismatch between the static and dynamic types, an <code>XQException</code> is raised either by this method, or during query evaluation. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindObject(javax.xml.namespace.QName, java.lang.Object, javax.xml.xquery.XQItemType)">bindObject</A></CODE> in interface <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>varname</CODE> - the name of the external variable to bind to, cannot be <code>null</code><DD><CODE>value</CODE> - the value to be converted, cannot be <code>null</code><DD><CODE>type</CODE> - the type of the value to be bound to the external variable. The default type of the value is used in case <code>null</code> is specified <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE> - if (1) the <code>varName</code> or <code>value</code> argument is <code>null</code>, (2) the conversion of the value to an XDM instance failed, (3) in case of an <code>XQPreparedExpression</code>, the dynamic type of the bound value is not compatible with the static type of the variable, (4) in case of an <code>XQPreparedExpression</code>, the variable is not defined in the prolog of the expression, or (5) if the expression is in a closed state</DL> </DD> </DL> <HR> <A NAME="bindSequence(javax.xml.namespace.QName, javax.xml.xquery.XQSequence)"><!-- --></A><H3> bindSequence</H3> <PRE> public void <B>bindSequence</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="../../../../javax/xml/xquery/XQSequence.html" title="interface in javax.xml.xquery">XQSequence</A> value) throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindSequence(javax.xml.namespace.QName, javax.xml.xquery.XQSequence)">XQDynamicContext</A></CODE></B></DD> <DD>Binds a value to the given external variable or the context item. The input sequence is consumed from its current position to the end, after which the input sequence's position will be set to point after the last item. The dynamic type of the value is derived from the items in the sequence. In case of a mismatch between the static and dynamic types, an <code>XQException</code> is be raised either by this method, or during query evaluation. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindSequence(javax.xml.namespace.QName, javax.xml.xquery.XQSequence)">bindSequence</A></CODE> in interface <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>varname</CODE> - the name of the external variable to bind to, cannot be <code>null</code><DD><CODE>value</CODE> - the value to be bound, cannot be <code>null</code> <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE> - if (1) any of the arguments are <code>null</code>, (2) in case of an <code>XQPreparedExpression</code>, the dynamic type of the bound value is not compatible with the static type of the variable, (3) in case of an <code>XQPreparedExpression</code>, the variable is not defined in the prolog of the expression, (4) the expression is in a closed state, or (5) the specified sequence is closed</DL> </DD> </DL> <HR> <A NAME="bindShort(javax.xml.namespace.QName, short, javax.xml.xquery.XQItemType)"><!-- --></A><H3> bindShort</H3> <PRE> public void <B>bindShort</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, short value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type) throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindShort(javax.xml.namespace.QName, short, javax.xml.xquery.XQItemType)">XQDynamicContext</A></CODE></B></DD> <DD>Binds a value to the given external variable or the context item. The value is converted into an instance of the specified type according to the rule defined in <i>14.2 Mapping a Java Data Type to an XQuery Data Type, XQuery API for Java (XQJ) 1.0</i>. If the conversion fails, or if there is a mismatch between the static and dynamic types, an <code>XQException</code> is raised either by this method, or during query evaluation. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindShort(javax.xml.namespace.QName, short, javax.xml.xquery.XQItemType)">bindShort</A></CODE> in interface <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>varname</CODE> - the name of the external variable to bind to, cannot be <code>null</code><DD><CODE>value</CODE> - the value to be converted<DD><CODE>type</CODE> - the type of the value to be bound to the external variable. The default type of the value is used in case <code>null</code> is specified <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE> - if (1) the <code>varName</code> argument is <code>null</code>, (2) the conversion of the value to an XDM instance failed, (3) in case of an <code>XQPreparedExpression</code>, the dynamic type of the bound value is not compatible with the static type of the variable, (4) in case of an <code>XQPreparedExpression</code>, the variable is not defined in the prolog of the expression, or (5) if the expression is in a closed state</DL> </DD> </DL> <HR> <A NAME="bindString(javax.xml.namespace.QName, java.lang.String, javax.xml.xquery.XQItemType)"><!-- --></A><H3> bindString</H3> <PRE> public void <B>bindString</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> varname, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> value, <A HREF="../../../../javax/xml/xquery/XQItemType.html" title="interface in javax.xml.xquery">XQItemType</A> type) throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindString(javax.xml.namespace.QName, java.lang.String, javax.xml.xquery.XQItemType)">XQDynamicContext</A></CODE></B></DD> <DD>Binds a value to the given external variable or the context item. The value is converted into an instance of the specified type, which must represent an <code>xs:string</code> or a type derived by restriction from <code>xs:string</code>. If the specified type is <code>null</code>, it defaults to <code>xs:string</code>.<br> Subsequently the value is converted into an instance of the specified type according to the rule defined in <i>14.2 Mapping a Java Data Type to an XQuery Data Type, XQuery API for Java (XQJ) 1.0,</i>. If the conversion fails, or if there is a mismatch between the static and dynamic types, an <code>XQException</code> is raised either by this method, or during query evaluation. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#bindString(javax.xml.namespace.QName, java.lang.String, javax.xml.xquery.XQItemType)">bindString</A></CODE> in interface <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>varname</CODE> - the name of the external variable to bind to, cannot be <code>null</code><DD><CODE>value</CODE> - the value to be converted, cannot be <code>null</code><DD><CODE>type</CODE> - the type of the value to be bound to the external variable. The default type, <code>xs:string</code>, is used in case <code>null</code> is specified <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE> - if (1) the <code>varName</code> or <code>value</code> argument is <code>null</code>, (2) the conversion of the value to an XDM instance failed, (3) in case of an <code>XQPreparedExpression</code>, the dynamic type of the bound value is not compatible with the static type of the variable, (4) in case of an <code>XQPreparedExpression</code>, the variable is not defined in the prolog of the expression, or (5) if the expression is in a closed state</DL> </DD> </DL> <HR> <A NAME="getImplicitTimeZone()"><!-- --></A><H3> getImplicitTimeZone</H3> <PRE> public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/TimeZone.html?is-external=true" title="class or interface in java.util">TimeZone</A> <B>getImplicitTimeZone</B>() throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#getImplicitTimeZone()">XQDynamicContext</A></CODE></B></DD> <DD>Gets the implicit timezone <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#getImplicitTimeZone()">getImplicitTimeZone</A></CODE> in interface <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the implicit timezone. This may have been set by an application using the <code>setImplicitTimeZone</code> method or provided by the implementation <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE> - if the expression is in a closed state</DL> </DD> </DL> <HR> <A NAME="setImplicitTimeZone(java.util.TimeZone)"><!-- --></A><H3> setImplicitTimeZone</H3> <PRE> public void <B>setImplicitTimeZone</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/TimeZone.html?is-external=true" title="class or interface in java.util">TimeZone</A> implicitTimeZone) throws <A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#setImplicitTimeZone(java.util.TimeZone)">XQDynamicContext</A></CODE></B></DD> <DD>Sets the implicit timezone <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html#setImplicitTimeZone(java.util.TimeZone)">setImplicitTimeZone</A></CODE> in interface <CODE><A HREF="../../../../javax/xml/xquery/XQDynamicContext.html" title="interface in javax.xml.xquery">XQDynamicContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>implicitTimeZone</CODE> - time zone to be set <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../javax/xml/xquery/XQException.html" title="class in javax.xml.xquery">XQException</A></CODE> - if the expression is in a closed state</DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../net/sf/saxon/xqj/SaxonXQDataSource.html" title="class in net.sf.saxon.xqj"><B>PREV CLASS</B></A> <A HREF="../../../../net/sf/saxon/xqj/SaxonXQExpression.html" title="class in net.sf.saxon.xqj"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?net/sf/saxon/xqj/SaxonXQDynamicContext.html" target="_top"><B>FRAMES</B></A> <A HREF="SaxonXQDynamicContext.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> Copyright (c) 2004-2011 Saxonica Limited. All rights reserved. </BODY> </HTML>