public class SaxonXQMetaData extends Object implements XQMetaData
| Constructor and Description |
|---|
SaxonXQMetaData(SaxonXQConnection connection)
Create the metadata for a given Saxon configuration
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxExpressionLength()
Gets the maximum number of characters allowed in an expression in this
data source.
|
int |
getMaxUserNameLength()
Gets the maximum number of characters allowed in a user name.
|
int |
getProductMajorVersion()
Gets the major version of this product.
|
int |
getProductMinorVersion()
Gets the minor version of this product.
|
String |
getProductName()
Gets the name of this product.
|
String |
getProductVersion()
Gets the full version of this product.
|
Set |
getSupportedXQueryEncodings()
Returns a set of
java.lang.String, each of which
specifies a character encoding method the XQJ implmentation supports to
parse the XQuery query text. |
String |
getUserName()
Gets the user name associated with this connection.
|
int |
getXQJMajorVersion()
Gets the major version number of XQJ specification supported by
this implementation.
|
int |
getXQJMinorVersion()
Gets the minor version number of XQJ specification supported by
this implementation.
|
String |
getXQJVersion()
Gets the full version of XQJ specification supported by this implementation.
|
boolean |
isFullAxisFeatureSupported()
Query if XQuery full axis feature is supported in this connection.
|
boolean |
isModuleFeatureSupported()
Query if XQuery module feature is supported in this connection.
|
boolean |
isReadOnly()
Query if the associated conection is restricted for read only use.
|
boolean |
isSchemaImportFeatureSupported()
Query if XQuery schema import feature is supported in this connection.
|
boolean |
isSchemaValidationFeatureSupported()
Query if XQuery schema validation feature is supported in this connection.
|
boolean |
isSerializationFeatureSupported()
Query if XQuery serialization feature is supported in this connection.
|
boolean |
isStaticTypingExtensionsSupported()
Query if XQuery static typing extensions are supported in
this connection.
|
boolean |
isStaticTypingFeatureSupported()
Query if XQuery static typing feature is supported in this data source.
|
boolean |
isTransactionSupported()
Query if transaction is supported in this data source.
|
boolean |
isUserDefinedXMLSchemaTypeSupported()
Check if the user defined XML schema type is supported in this connection.
|
boolean |
isXQueryEncodingDeclSupported()
Query if the XQuery encoding declaration is supported by the XQJ implementation.
|
boolean |
isXQueryEncodingSupported(String encoding)
Query if a character encoding method of the XQuery query text
is supported by the XQJ implmentation.
|
boolean |
isXQueryXSupported()
Query if XQueryX format is supported in this data source.
|
boolean |
wasCreatedFromJDBCConnection()
Query if this connection was created from a JDBC connection.
|
public SaxonXQMetaData(SaxonXQConnection connection)
connection - the Saxon connectionpublic int getMaxExpressionLength()
throws XQException
XQMetaDatagetMaxExpressionLength in interface XQMetaDataXQException - if the connection is no longer validpublic int getMaxUserNameLength()
throws XQException
XQMetaDatagetMaxUserNameLength in interface XQMetaDataXQException - if the connection is no longer validpublic int getProductMajorVersion()
throws XQException
XQMetaDatagetProductMajorVersion in interface XQMetaDataXQException - if the connection is no longer validpublic int getProductMinorVersion()
throws XQException
XQMetaDatagetProductMinorVersion in interface XQMetaDataXQException - if the connection is no longer validpublic String getProductName() throws XQException
XQMetaDatagetProductName in interface XQMetaDataXQException - if the connection is no longer validpublic String getProductVersion() throws XQException
XQMetaDatagetProductVersion in interface XQMetaDataXQException - if the connection is no longer validpublic Set getSupportedXQueryEncodings() throws XQException
XQMetaDatajava.lang.String, each of which
specifies a character encoding method the XQJ implmentation supports to
parse the XQuery query text. java.util.Set of "UTF-8" and "UTF-16".
If the implemetation is not able to generate a list of encodings supported,
an empty set is returned. If a non-empty set is returned, the encodings
returned in this set are guaranteed to be supported. Note that encodings not in the
returned set might also be supported. For example, if the set has two
encoding methods: 'UTF-8' and 'UTF-16', they are supported by the implementation.
However, this does not mean 'Shift-Js' is not supported. It might be supported.getSupportedXQueryEncodings in interface XQMetaDatajava.util.Set of
java.lang.String, each of which
is an XQuery query text encoding methodXQException - if the connection is no longer validpublic String getUserName() throws XQException
XQMetaDatagetUserName in interface XQMetaDataXQException - if the connection is no longer validpublic int getXQJMajorVersion()
throws XQException
XQMetaDatagetXQJMajorVersion in interface XQMetaDataXQException - if the connection is no longer validpublic int getXQJMinorVersion()
throws XQException
XQMetaDatagetXQJMinorVersion in interface XQMetaDataXQException - if the connection is no longer validpublic String getXQJVersion() throws XQException
XQMetaDatagetXQJVersion in interface XQMetaDataXQException - if the connection is no longer validpublic boolean isFullAxisFeatureSupported()
throws XQException
XQMetaDataisFullAxisFeatureSupported in interface XQMetaDatatrue if so; otherwise falseXQException - if the connection is no longer validpublic boolean isModuleFeatureSupported()
throws XQException
XQMetaDataisModuleFeatureSupported in interface XQMetaDatatrue if so; otherwise falseXQException - if the connection is no longer validpublic boolean isReadOnly()
throws XQException
XQMetaDataisReadOnly in interface XQMetaDatatrue if the associated connection is
for read-only; false otherwiseXQException - if the connection is no longer validpublic boolean isSchemaImportFeatureSupported()
throws XQException
XQMetaDataisSchemaImportFeatureSupported in interface XQMetaDatatrue if so; otherwise falseXQException - if the connection is no longer validpublic boolean isSchemaValidationFeatureSupported()
throws XQException
XQMetaDataisSchemaValidationFeatureSupported in interface XQMetaDatatrue if so; otherwise falseXQException - if the connection is no longer validpublic boolean isSerializationFeatureSupported()
throws XQException
XQMetaDataisSerializationFeatureSupported in interface XQMetaDatatrue if so; otherwise falseXQException - if the connection is no longer validpublic boolean isStaticTypingExtensionsSupported()
throws XQException
XQMetaDataisStaticTypingExtensionsSupported in interface XQMetaDatatrue if so; otherwise falseXQException - if the connection is no longer validpublic boolean isStaticTypingFeatureSupported()
throws XQException
XQMetaDataisStaticTypingFeatureSupported in interface XQMetaDatatrue if so; otherwise falseXQException - if the connection is no longer validpublic boolean isTransactionSupported()
throws XQException
XQMetaDataisTransactionSupported in interface XQMetaDatatrue if so; otherwise falseXQException - if the connection is no longer validpublic boolean isUserDefinedXMLSchemaTypeSupported()
throws XQException
XQMetaDatatrue, then
XQItemAccessor.instanceOf(XQItemType) must
be able to determine if the type of an XQItemAccessor is an
instance of the XQItemType even if either of them is a user
defined XML schema type which is defined by the non-predefined XML schema.
The pre-defined XML Schema refers to the XML schema whose schema URL is
"http://www.w3.org/2001/XMLSchema"isUserDefinedXMLSchemaTypeSupported in interface XQMetaDatatrue if the user defined XML schema
type is supported in this connection, false
otherwise.XQException - if the connection is no longer validpublic boolean isXQueryEncodingDeclSupported()
throws XQException
XQMetaDataisXQueryEncodingDeclSupported in interface XQMetaDatatrue if the XQuery encoding declaration
is supported; false otherwiseXQException - if the connection is no longer validpublic boolean isXQueryEncodingSupported(String encoding) throws XQException
XQMetaDataisXQueryEncodingSupported in interface XQMetaDataencoding - String representing the character
encoding method of the XQuery query text.true if an XQuery query character encoding
method is supported, false otherwiseXQException - if (1) the connection is no longer valid,
or (2) the specified encoding
parameter is nullpublic boolean isXQueryXSupported()
throws XQException
XQMetaDataisXQueryXSupported in interface XQMetaDatatrue if so; otherwise falseXQException - if the connection is no longer validpublic boolean wasCreatedFromJDBCConnection()
throws XQException
XQMetaDatawasCreatedFromJDBCConnection in interface XQMetaDatatrue, if this connection was created
from a JDBC connection, false otherwise.XQException - if the connection is no longer validCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.