|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.sf.saxon.xqj.Closable
net.sf.saxon.xqj.SaxonXQDynamicContext
public abstract class SaxonXQDynamicContext
Saxon implementation of the XQJ DynamicContext interface
| Field Summary | |
|---|---|
protected SaxonXQConnection |
connection
|
| Constructor Summary | |
|---|---|
SaxonXQDynamicContext()
|
|
| Method Summary | |
|---|---|
void |
bindAtomicValue(javax.xml.namespace.QName varname,
java.lang.String value,
javax.xml.xquery.XQItemType type)
Binds a value to the given external variable or the context item. |
void |
bindBoolean(javax.xml.namespace.QName varname,
boolean value,
javax.xml.xquery.XQItemType type)
Binds a value to the given external variable or the context item. |
void |
bindByte(javax.xml.namespace.QName varname,
byte value,
javax.xml.xquery.XQItemType type)
Binds a value to the given external variable or the context item. |
void |
bindDocument(javax.xml.namespace.QName varname,
java.io.InputStream value,
java.lang.String baseURI,
javax.xml.xquery.XQItemType type)
Binds a value to the given external variable or the context item. |
void |
bindDocument(javax.xml.namespace.QName varname,
java.io.Reader value,
java.lang.String baseURI,
javax.xml.xquery.XQItemType type)
Binds a value to the given external variable or the context item. |
void |
bindDocument(javax.xml.namespace.QName varname,
javax.xml.transform.Source value,
javax.xml.xquery.XQItemType type)
Binds a value to the given external variable or the context item from the given Source. |
void |
bindDocument(javax.xml.namespace.QName varname,
java.lang.String value,
java.lang.String baseURI,
javax.xml.xquery.XQItemType type)
Binds a value to the given external variable or the context item. |
void |
bindDocument(javax.xml.namespace.QName varname,
org.xml.sax.XMLReader value,
javax.xml.xquery.XQItemType type)
Binds a value to the given external variable. |
void |
bindDocument(javax.xml.namespace.QName varname,
javax.xml.stream.XMLStreamReader value,
javax.xml.xquery.XQItemType type)
Binds a value to the given external variable or the context item. |
void |
bindDouble(javax.xml.namespace.QName varname,
double value,
javax.xml.xquery.XQItemType type)
Binds a value to the given external variable or the context item. |
void |
bindFloat(javax.xml.namespace.QName varname,
float value,
javax.xml.xquery.XQItemType type)
Binds a value to the given external variable or the context item. |
void |
bindInt(javax.xml.namespace.QName varname,
int value,
javax.xml.xquery.XQItemType type)
Binds a value to the given external variable or the context item. |
void |
bindItem(javax.xml.namespace.QName varname,
javax.xml.xquery.XQItem value)
Binds a value to the given external variable. |
void |
bindLong(javax.xml.namespace.QName varname,
long value,
javax.xml.xquery.XQItemType type)
Binds a value to the given external variable or the context item. |
void |
bindNode(javax.xml.namespace.QName varname,
org.w3c.dom.Node value,
javax.xml.xquery.XQItemType type)
Binds a value to the given external variable or the context item. |
void |
bindObject(javax.xml.namespace.QName varname,
java.lang.Object value,
javax.xml.xquery.XQItemType type)
Binds a value to the given external variable or the context item. |
void |
bindSequence(javax.xml.namespace.QName varname,
javax.xml.xquery.XQSequence value)
Binds a value to the given external variable or the context item. |
void |
bindShort(javax.xml.namespace.QName varname,
short value,
javax.xml.xquery.XQItemType type)
Binds a value to the given external variable or the context item. |
void |
bindString(javax.xml.namespace.QName varname,
java.lang.String value,
javax.xml.xquery.XQItemType type)
Binds a value to the given external variable or the context item. |
protected abstract boolean |
externalVariableExists(javax.xml.namespace.QName name)
|
protected Configuration |
getConfiguration()
|
protected abstract SaxonXQDataFactory |
getDataFactory()
|
protected abstract DynamicQueryContext |
getDynamicContext()
|
java.util.TimeZone |
getImplicitTimeZone()
Gets the implicit timezone |
void |
setImplicitTimeZone(java.util.TimeZone implicitTimeZone)
Sets the implicit timezone |
| Methods inherited from class net.sf.saxon.xqj.Closable |
|---|
close, isClosed, setClosableContainer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SaxonXQConnection connection
| Constructor Detail |
|---|
public SaxonXQDynamicContext()
| Method Detail |
|---|
protected abstract DynamicQueryContext getDynamicContext()
protected final Configuration getConfiguration()
protected abstract SaxonXQDataFactory getDataFactory()
throws javax.xml.xquery.XQException
javax.xml.xquery.XQExceptionprotected abstract boolean externalVariableExists(javax.xml.namespace.QName name)
public void bindAtomicValue(javax.xml.namespace.QName varname,
java.lang.String value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContextxs:string rules outlined in
17.1.1 Casting from xs:string and xs:untypedAtomic, XQuery 1.0 and
XPath 2.0 Functions and Operators.
If the cast fails, or if there is a mismatch between the static and
dynamic types, an XQException is thrown either by this
method or during query evaluation.
bindAtomicValue in interface javax.xml.xquery.XQDynamicContextvarname - the name of the external variable to bind tovalue - the lexical string value of the typetype - the item type of the bind
javax.xml.xquery.XQException - if (1) any of the arguments are null,
(2) given type is not an atomic type,
(3) the conversion of the value to an XDM instance failed,
(4) in case of an XQPreparedExpression,
the dynamic type of the bound value is not compatible
with the static type of the variable,
(5) in case of an XQPreparedExpression,
the variable is not defined in the prolog of the expression,
or (6) the expression is in a closed state
public void bindBoolean(javax.xml.namespace.QName varname,
boolean value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContextXQException is raised either by this method, or during
query evaluation.
bindBoolean in interface javax.xml.xquery.XQDynamicContextvarname - the name of the external variable to bind to, cannot be
nullvalue - the value to be convertedtype - the type of the value to be bound to the external variable.
The default type of the value is used in case null
is specified
javax.xml.xquery.XQException - if (1) the varName argument
is null, (2) the conversion of the value to an
XDM instance failed, (3) in case of an
XQPreparedExpression, the dynamic type of the bound
value is not compatible with the static type of the variable,
(4) in case of an XQPreparedExpression,
the variable is not defined in the prolog of the expression,
or (5) if the expression is in a closed state
public void bindByte(javax.xml.namespace.QName varname,
byte value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContextXQException is raised either by this method, or
during query evaluation.
bindByte in interface javax.xml.xquery.XQDynamicContextvarname - the name of the external variable to bind to, cannot be
nullvalue - the value to be convertedtype - the type of the value to be bound to the external variable.
The default type of the value is used in case null
is specified
javax.xml.xquery.XQException - if (1) the varName argument
is null, (2) the conversion of the value to an
XDM instance failed, (3) in case of an
XQPreparedExpression, the dynamic type of the bound
value is not compatible with the static type of the variable,
(4) in case of an XQPreparedExpression,
the variable is not defined in the prolog of the expression,
or (5) if the expression is in a closed state
public void bindDocument(javax.xml.namespace.QName varname,
java.io.InputStream value,
java.lang.String baseURI,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContextnull,
XQITEMKIND_DOCUMENT_ELEMENT, or
XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT.
XQException 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.
bindDocument in interface javax.xml.xquery.XQDynamicContextvarname - the name of the external variable to bind to,
cannot be nullvalue - the value to be converted, cannot be
nullbaseURI - an optional base URI, can be null. It can
be used, for example, to resolve relative URIs and to
include in error messages.type - the type of the value for the created
document node. If null is specified,
it behaves as if
XQDataFactory.createDocumentElementType(
XQDataFactory.createElementType(null,
XQItemType.XQBASETYPE_XS_UNTYPED)) were passed in
as the type parameter. That is, the type represents the
XQuery sequence type document-node(element(*, xs:untyped))
javax.xml.xquery.XQException - if (1) the varName or value
argument is null, (2) the
conversion of the value to an XDM instance failed,
(3) in case of an XQPreparedExpression,
the dynamic type of the bound value is not compatible
with the static type of the variable, (4) in case of an
XQPreparedExpression, the variable is not
defined in the prolog of the expression,
or (5) if the expression is in a closed state
public void bindDocument(javax.xml.namespace.QName varname,
java.io.Reader value,
java.lang.String baseURI,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContextnull,
XQITEMKIND_DOCUMENT_ELEMENT, or
XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT.
XQException 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.
bindDocument in interface javax.xml.xquery.XQDynamicContextvarname - the name of the external variable to bind to,
cannot be nullvalue - the value to be converted, cannot be
nullbaseURI - an optional base URI, can be null. It can
be used, for example, to resolve relative URIs and to
include in error messages.type - the type of the value for the created
document node. If null is specified,
it behaves as if
XQDataFactory.createDocumentElementType(
XQDataFactory.createElementType(null,
XQItemType.XQBASETYPE_XS_UNTYPED)) were passed in
as the type parameter. That is, the type represents the
XQuery sequence type document-node(element(*, xs:untyped))
javax.xml.xquery.XQException - if (1) the varName or value
argument is null, (2) the
conversion of the value to an XDM instance failed,
(3) in case of an XQPreparedExpression,
the dynamic type of the bound value is not compatible
with the static type of the variable, (4) in case of an
XQPreparedExpression, the variable is not
defined in the prolog of the expression,
or (5) if the expression is in a closed state
public void bindDocument(javax.xml.namespace.QName varname,
javax.xml.transform.Source value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContextSource. An XQJ
implementation must at least support the following implementations:
javax.xml.transform.dom.DOMSourcejavax.xml.transform.sax.SAXSourcejavax.xml.transform.stream.StreamSourcenull,
XQITEMKIND_DOCUMENT_ELEMENT, or
XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT.
XQException
is raised either by this method, or during query evaluation.
bindDocument in interface javax.xml.xquery.XQDynamicContextvarname - the name of the external variable to bind to, cannot
be nullvalue - the value to be converted, cannot be nulltype - the type of the value for the created
document node. If null is specified,
it behaves as if
XQDataFactory.createDocumentElementType(
XQDataFactory.createElementType(null,
XQItemType.XQBASETYPE_XS_UNTYPED)) were passed in
as the type parameter. That is, the type represents the
XQuery sequence type document-node(element(*, xs:untyped))
javax.xml.xquery.XQException - if (1) the varName or value
argument is null, (2) the
conversion of the value to an XDM instance failed,
(3) in case of an XQPreparedExpression,
the dynamic type of the bound value is not compatible
with the static type of the variable, (4) in case of an
XQPreparedExpression, the variable is not
defined in the prolog of the expression,
or (5) if the expression is in a closed state
public void bindDocument(javax.xml.namespace.QName varname,
java.lang.String value,
java.lang.String baseURI,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContextnull,
XQITEMKIND_DOCUMENT_ELEMENT, or
XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT.
XQException 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.
bindDocument in interface javax.xml.xquery.XQDynamicContextvarname - the name of the external variable to bind to,
cannot be nullvalue - the value to be converted, cannot be
nullbaseURI - an optional base URI, can be null. It can
be used, for example, to resolve relative URIs and to
include in error messages.type - the type of the value for the created
document node. If null is specified,
it behaves as if
XQDataFactory.createDocumentElementType(
XQDataFactory.createElementType(null,
XQItemType.XQBASETYPE_XS_UNTYPED)) were passed in
as the type parameter. That is, the type represents the
XQuery sequence type document-node(element(*, xs:untyped))
javax.xml.xquery.XQException - if (1) the varName or value
argument is null, (2) the
conversion of the value to an XDM instance failed,
(3) in case of an XQPreparedExpression,
the dynamic type of the bound value is not compatible
with the static type of the variable, (4) in case of an
XQPreparedExpression, the variable is not
defined in the prolog of the expression,
or (5) if the expression is in a closed state
public void bindDocument(javax.xml.namespace.QName varname,
org.xml.sax.XMLReader value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContextXMLReader produces a well-formed XML document, it results in a
document node. The kind of the input type must be null,
XQITEMKIND_DOCUMENT_ELEMENT or XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT.
ContentHandler is passed to the XML
XMLReader; and optionally an implementation can specify additional
handlers like a LexicalHandler. Subsequently
parse(String systemId) will be invoked; and as such the
XMLReader will pass the SAX event representing the document
to bind. The systemId argument identifies the external
variable, a QName formatted into a String using
the James Clark representation.
XQConnection connection...
...
// Create an XMLReader, which will pass the SAX events to the XQJ
// implementation
XMLFilter xmlReader = new XMLFilterImpl() {
public void parse(String systemId) throws IOException,
SAXException {
// foo.xml is the XML document to bind
super.parse("foo.xml");
}
};
// The parent XML Reader is a SAX parser, which will do the
// actual work of parsing the XML document
xmlReader.setParent(org.xml.sax.helpers.XMLReaderFactory.createXMLReader());
// Create an XQPreparedExpression
XQPreparedExpression e = connection.prepareExpression("declare variable $doc as
document-node(element(*, xs:untyped)) external; $doc//foo));
e.bindDocument(new QName("doc"), xmlReader);
XQResultSequence result = preparedExpression.executeQuery();
result.writeSequence(System.out);
...
bindDocument in interface javax.xml.xquery.XQDynamicContextvarname - the name of the external variable to bind to,
cannot be nullvalue - the XMLReader producing SAX events
representing the document to bindtype - the type of the value for the created
document node. If null is specified,
it behaves as if
XQDataFactory.createDocumentElementType(
XQDataFactory.createElementType(null,
XQItemType.XQBASETYPE_XS_UNTYPED)) were passed in
as the type parameter. That is, the type represents the
XQuery sequence type document-node(element(*, xs:untyped))
javax.xml.xquery.XQException - if (1) the varName or value argument
is null, (2) the conversion of the
value to an XDM instance failed, (3) in case of an
XQPreparedExpression, the dynamic type
of the bound value is not compatible with the static
type of the variable, (4) in case of an
XQPreparedExpression, the variable is
not defined in the prolog of the expression, (5)
if the expression is in a closed state, or (6) the
XMLReader reports an error during
parse()
public void bindDocument(javax.xml.namespace.QName varname,
javax.xml.stream.XMLStreamReader value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContextnull,
XQITEMKIND_DOCUMENT_ELEMENT or XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT.
XQException is raised either by this method, or during
query evaluation.
bindDocument in interface javax.xml.xquery.XQDynamicContextvarname - the name of the external variable to bind to, cannot
be nullvalue - the value to be converted, cannot be nulltype - the type of the value for the created
document node. If null is specified,
it behaves as if
XQDataFactory.createDocumentElementType(
XQDataFactory.createElementType(null,
XQItemType.XQBASETYPE_XS_UNTYPED)) were passed in
as the type parameter. That is, the type represents the
XQuery sequence type document-node(element(*, xs:untyped))
javax.xml.xquery.XQException - if (1) the varName or value
argument is null, (2) the
conversion of the value to an XDM instance failed,
(3) in case of an XQPreparedExpression,
the dynamic type of the bound value is not compatible
with the static type of the variable, (4) in case of an
XQPreparedExpression, the variable is not
defined in the prolog of the expression,
or (5) if the expression is in a closed state
public void bindDouble(javax.xml.namespace.QName varname,
double value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContextXQException is raised either by this method, or
during query evaluations.
bindDouble in interface javax.xml.xquery.XQDynamicContextvarname - the name of the external variable to bind to, cannot be
nullvalue - the value to be convertedtype - the type of the value to be bound to the external variable.
The default type of the value is used in case null
is specified
javax.xml.xquery.XQException - if (1) the varName argument
is null, (2) the conversion of the value to an
XDM instance failed, (3) in case of an
XQPreparedExpression, the dynamic type of the bound
value is not compatible with the static type of the variable,
(4) in case of an XQPreparedExpression,
the variable is not defined in the prolog of the expression,
or (5) if the expression is in a closed state
public void bindFloat(javax.xml.namespace.QName varname,
float value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContextXQException is raised either by this method, or
during query evaluations.
bindFloat in interface javax.xml.xquery.XQDynamicContextvarname - the name of the external variable to bind to, cannot be
nullvalue - the value to be convertedtype - the type of the value to be bound to the external variable.
The default type of the value is used in case null
is specified
javax.xml.xquery.XQException - if (1) the varName argument
is null, (2) the conversion of the value to an
XDM instance failed, (3) in case of an
XQPreparedExpression, the dynamic type of the bound
value is not compatible with the static type of the variable,
(4) in case of an XQPreparedExpression,
the variable is not defined in the prolog of the expression,
or (5) if the expression is in a closed state
public void bindInt(javax.xml.namespace.QName varname,
int value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContextXQException is raised either by this method, or
during query evaluations.
bindInt in interface javax.xml.xquery.XQDynamicContextvarname - the name of the external variable to bind to, cannot be
nullvalue - the value to be convertedtype - the type of the value to be bound to the external variable.
The default type of the value is used in case null
is specified
javax.xml.xquery.XQException - if (1) the varName argument
is null, (2) the conversion of the value to an
XDM instance failed, (3) in case of an
XQPreparedExpression, the dynamic type of the bound
value is not compatible with the static type of the variable,
(4) in case of an XQPreparedExpression,
the variable is not defined in the prolog of the expression,
or (5) if the expression is in a closed state
public void bindItem(javax.xml.namespace.QName varname,
javax.xml.xquery.XQItem value)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContextXQItem. In case of a mismatch
between the static and dynamic types, an XQException is
raised either by this method, or during query evaluation.
bindItem in interface javax.xml.xquery.XQDynamicContextvarname - the name of the external variable to bind to,
cannot be nullvalue - the value to be bound, cannot be null
javax.xml.xquery.XQException - if (1) any of the arguments are null,
(2) in case of an XQPreparedExpression,
the dynamic type of the bound value is not compatible
with the static type of the variable,
(3) in case of an XQPreparedExpression,
the variable is not defined in the prolog of the
expression, or (4) the expression is in a closed state
public void bindLong(javax.xml.namespace.QName varname,
long value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContextXQException is raised either by this method, or
during query evaluation.
bindLong in interface javax.xml.xquery.XQDynamicContextvarname - the name of the external variable to bind to, cannot be
nullvalue - the value to be convertedtype - the type of the value to be bound to the external variable.
The default type of the value is used in case null
is specified
javax.xml.xquery.XQException - if (1) the varName argument
is null, (2) the conversion of the value to an
XDM instance failed, (3) in case of an
XQPreparedExpression, the dynamic type of the bound
value is not compatible with the static type of the variable,
(4) in case of an XQPreparedExpression,
the variable is not defined in the prolog of the expression,
or (5) if the expression is in a closed state
public void bindNode(javax.xml.namespace.QName varname,
org.w3c.dom.Node value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContextXQException is raised either by this method, or
during query evaluation.
bindNode in interface javax.xml.xquery.XQDynamicContextvarname - the name of the external variable to bind to, cannot be
nullvalue - the value to be converted, cannot be nulltype - the type of the value to be bound to the external variable.
The default type of the value is used in case null
is specified
javax.xml.xquery.XQException - if (1) the varName or value argument
is null, (2) the conversion of the value to an
XDM instance failed, (3) in case of an
XQPreparedExpression, the dynamic type of the bound
value is not compatible with the static type of the variable,
(4) in case of an XQPreparedExpression,
the variable is not defined in the prolog of the expression,
or (5) if the expression is in a closed state
public void bindObject(javax.xml.namespace.QName varname,
java.lang.Object value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContextXQException is raised either by this method, or during
query evaluation.
bindObject in interface javax.xml.xquery.XQDynamicContextvarname - the name of the external variable to bind to, cannot be
nullvalue - the value to be converted, cannot be nulltype - the type of the value to be bound to the external variable.
The default type of the value is used in case null
is specified
javax.xml.xquery.XQException - if (1) the varName or value argument
is null, (2) the conversion of the value to an
XDM instance failed, (3) in case of an
XQPreparedExpression, the dynamic type of the bound
value is not compatible with the static type of the variable,
(4) in case of an XQPreparedExpression,
the variable is not defined in the prolog of the expression,
or (5) if the expression is in a closed state
public void bindSequence(javax.xml.namespace.QName varname,
javax.xml.xquery.XQSequence value)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContextXQException is be raised either by this method, or
during query evaluation.
bindSequence in interface javax.xml.xquery.XQDynamicContextvarname - the name of the external variable to bind to, cannot be
nullvalue - the value to be bound, cannot be null
javax.xml.xquery.XQException - if (1) any of the arguments are null,
(2) in case of an XQPreparedExpression,
the dynamic type of the bound value is not compatible
with the static type of the variable,
(3) in case of an XQPreparedExpression,
the variable is not defined in the prolog of
the expression, or (4) the expression is in a closed
state
public void bindShort(javax.xml.namespace.QName varname,
short value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContextXQException is raised either by this method, or
during query evaluation.
bindShort in interface javax.xml.xquery.XQDynamicContextvarname - the name of the external variable to bind to, cannot be
nullvalue - the value to be convertedtype - the type of the value to be bound to the external variable.
The default type of the value is used in case null
is specified
javax.xml.xquery.XQException - if (1) the varName argument
is null, (2) the conversion of the value to an
XDM instance failed, (3) in case of an
XQPreparedExpression, the dynamic type of the bound
value is not compatible with the static type of the variable,
(4) in case of an XQPreparedExpression,
the variable is not defined in the prolog of the expression,
or (5) if the expression is in a closed state
public void bindString(javax.xml.namespace.QName varname,
java.lang.String value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContextxs:string or a type derived by restriction
from xs:string. If the specified type is null,
it defaults to xs:string.XQException is raised either by this
method, or during query evaluation.
bindString in interface javax.xml.xquery.XQDynamicContextvarname - the name of the external variable to bind to,
cannot be nullvalue - the value to be converted, cannot be
nulltype - the type of the value to be bound to the
external variable. The default type,
xs:string, is used in case
null is specified
javax.xml.xquery.XQException - if (1) the varName or
value argument is null,
(2) the conversion of the value to an XDM
instance failed, (3) in case of an
XQPreparedExpression, the dynamic
type of the bound value is not compatible with the
static type of the variable, (4) in case of an
XQPreparedExpression, the variable
is not defined in the prolog of the expression,
or (5) if the expression is in a closed state
public java.util.TimeZone getImplicitTimeZone()
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContext
getImplicitTimeZone in interface javax.xml.xquery.XQDynamicContextsetImplicitTimeZone method
or provided by the implementation
javax.xml.xquery.XQException - if the expression is in a closed state
public void setImplicitTimeZone(java.util.TimeZone implicitTimeZone)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQDynamicContext
setImplicitTimeZone in interface javax.xml.xquery.XQDynamicContextimplicitTimeZone - time zone to be set
javax.xml.xquery.XQException - if the expression is in a closed state
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||