|
|||||||||
| 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.SaxonXQDataFactory
public abstract class SaxonXQDataFactory
Saxon implementation of the XQJ interface XQDataFactory. This is an abstract superclass for SaxonXQDataSource and SaxonXQConnection, both of which provide the factory methods in this interface.
For Javadoc specifications of the public methods in this class, see the XQJ documentation.
| Constructor Summary | |
|---|---|
SaxonXQDataFactory()
|
|
| Method Summary | |
|---|---|
javax.xml.xquery.XQItemType |
createAtomicType(int baseType)
Create an atomic item type object representing a particular built-in atomic type |
javax.xml.xquery.XQItemType |
createAtomicType(int baseType,
javax.xml.namespace.QName typename,
java.net.URI schemaURI)
See interface definition, and description of Saxon extensions below. |
javax.xml.xquery.XQItemType |
createAttributeType(javax.xml.namespace.QName nodename,
int basetype)
|
javax.xml.xquery.XQItemType |
createAttributeType(javax.xml.namespace.QName nodename,
int basetype,
javax.xml.namespace.QName typename,
java.net.URI schemaURI)
|
javax.xml.xquery.XQItemType |
createCommentType()
|
javax.xml.xquery.XQItemType |
createDocumentElementType(javax.xml.xquery.XQItemType elementType)
|
javax.xml.xquery.XQItemType |
createDocumentSchemaElementType(javax.xml.xquery.XQItemType type)
|
javax.xml.xquery.XQItemType |
createDocumentType()
|
javax.xml.xquery.XQItemType |
createElementType(javax.xml.namespace.QName nodename,
int basetype)
|
javax.xml.xquery.XQItemType |
createElementType(javax.xml.namespace.QName nodename,
int basetype,
javax.xml.namespace.QName typename,
java.net.URI schemaURI,
boolean allowNill)
|
javax.xml.xquery.XQItem |
createItem(javax.xml.xquery.XQItem item)
|
javax.xml.xquery.XQItem |
createItemFromAtomicValue(java.lang.String value,
javax.xml.xquery.XQItemType type)
|
javax.xml.xquery.XQItem |
createItemFromBoolean(boolean value,
javax.xml.xquery.XQItemType type)
|
javax.xml.xquery.XQItem |
createItemFromByte(byte value,
javax.xml.xquery.XQItemType type)
|
javax.xml.xquery.XQItem |
createItemFromDocument(java.io.InputStream value,
java.lang.String baseURI,
javax.xml.xquery.XQItemType type)
|
javax.xml.xquery.XQItem |
createItemFromDocument(java.io.Reader value,
java.lang.String baseURI,
javax.xml.xquery.XQItemType type)
|
javax.xml.xquery.XQItem |
createItemFromDocument(javax.xml.transform.Source value,
javax.xml.xquery.XQItemType type)
|
javax.xml.xquery.XQItem |
createItemFromDocument(java.lang.String value,
java.lang.String baseURI,
javax.xml.xquery.XQItemType type)
|
javax.xml.xquery.XQItem |
createItemFromDocument(org.xml.sax.XMLReader value,
javax.xml.xquery.XQItemType type)
|
javax.xml.xquery.XQItem |
createItemFromDocument(javax.xml.stream.XMLStreamReader value,
javax.xml.xquery.XQItemType type)
|
javax.xml.xquery.XQItem |
createItemFromDouble(double value,
javax.xml.xquery.XQItemType type)
|
javax.xml.xquery.XQItem |
createItemFromFloat(float value,
javax.xml.xquery.XQItemType type)
|
javax.xml.xquery.XQItem |
createItemFromInt(int value,
javax.xml.xquery.XQItemType type)
|
javax.xml.xquery.XQItem |
createItemFromLong(long value,
javax.xml.xquery.XQItemType type)
|
javax.xml.xquery.XQItem |
createItemFromNode(org.w3c.dom.Node value,
javax.xml.xquery.XQItemType type)
|
javax.xml.xquery.XQItem |
createItemFromObject(java.lang.Object value,
javax.xml.xquery.XQItemType type)
|
javax.xml.xquery.XQItem |
createItemFromShort(short value,
javax.xml.xquery.XQItemType type)
|
javax.xml.xquery.XQItem |
createItemFromString(java.lang.String value,
javax.xml.xquery.XQItemType type)
|
javax.xml.xquery.XQItemType |
createItemType()
|
javax.xml.xquery.XQItemType |
createNodeType()
|
javax.xml.xquery.XQItemType |
createProcessingInstructionType(java.lang.String piTarget)
|
javax.xml.xquery.XQItemType |
createSchemaAttributeType(javax.xml.namespace.QName nodename,
int basetype,
java.net.URI schemaURI)
|
javax.xml.xquery.XQItemType |
createSchemaElementType(javax.xml.namespace.QName nodename,
int basetype,
java.net.URI schemaURI)
|
javax.xml.xquery.XQSequence |
createSequence(java.util.Iterator i)
|
javax.xml.xquery.XQSequence |
createSequence(javax.xml.xquery.XQSequence s)
|
javax.xml.xquery.XQSequenceType |
createSequenceType(javax.xml.xquery.XQItemType item,
int occurrence)
|
javax.xml.xquery.XQItemType |
createTextType()
|
(package private) abstract Configuration |
getConfiguration()
|
ObjectConverter |
getObjectConverter()
Get the ObjectConverter in use. |
protected void |
init()
|
(package private) static int |
mapSaxonTypeToXQJ(int type)
Get the XQJ type code corresponding to a given Saxon type code |
void |
setObjectConverter(ObjectConverter converter)
Set the ObjectConverter to be used. |
| Methods inherited from class net.sf.saxon.xqj.Closable |
|---|
checkNotClosed, close, isClosed, setClosableContainer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SaxonXQDataFactory()
| Method Detail |
|---|
abstract Configuration getConfiguration()
static int mapSaxonTypeToXQJ(int type)
type - the Saxon type code
protected void init()
public void setObjectConverter(ObjectConverter converter)
converter - the user-supplied ObjectConverterpublic ObjectConverter getObjectConverter()
public javax.xml.xquery.XQItemType createAtomicType(int baseType)
throws javax.xml.xquery.XQException
createAtomicType in interface javax.xml.xquery.XQDataFactorybaseType - the built-in atomic type, typically a constant such as
XQItemType.XQBASETYPE_BOOLEAN
javax.xml.xquery.XQException - if the supplied baseType parameter is not an atomic type
public javax.xml.xquery.XQItemType createAtomicType(int baseType,
javax.xml.namespace.QName typename,
java.net.URI schemaURI)
throws javax.xml.xquery.XQException
In addition to the actions described in the XQJ interface definitions, Saxon allows the
typename to be a name representing a Java external type. In this case the URI part of the QName
must be NamespaceConstant.JAVA_TYPE, and the local part of the name must be the Java class
name (qualified with its package name)
createAtomicType in interface javax.xml.xquery.XQDataFactorybaseType - the "baseType" (in XQJ terminology)typename - the qualified name of the typeschemaURI - the location of a schema document in which the type is defined (may be null)
javax.xml.xquery.XQException
public javax.xml.xquery.XQItemType createAttributeType(javax.xml.namespace.QName nodename,
int basetype)
throws javax.xml.xquery.XQException
createAttributeType in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItemType createAttributeType(javax.xml.namespace.QName nodename,
int basetype,
javax.xml.namespace.QName typename,
java.net.URI schemaURI)
throws javax.xml.xquery.XQException
createAttributeType in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItemType createCommentType()
throws javax.xml.xquery.XQException
createCommentType in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItemType createDocumentElementType(javax.xml.xquery.XQItemType elementType)
throws javax.xml.xquery.XQException
createDocumentElementType in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItemType createDocumentSchemaElementType(javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
createDocumentSchemaElementType in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItemType createDocumentType()
throws javax.xml.xquery.XQException
createDocumentType in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItemType createElementType(javax.xml.namespace.QName nodename,
int basetype)
throws javax.xml.xquery.XQException
createElementType in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItemType createElementType(javax.xml.namespace.QName nodename,
int basetype,
javax.xml.namespace.QName typename,
java.net.URI schemaURI,
boolean allowNill)
throws javax.xml.xquery.XQException
createElementType in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItem createItem(javax.xml.xquery.XQItem item)
throws javax.xml.xquery.XQException
createItem in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItem createItemFromAtomicValue(java.lang.String value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
createItemFromAtomicValue in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItem createItemFromBoolean(boolean value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
createItemFromBoolean in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItem createItemFromByte(byte value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
createItemFromByte in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItem createItemFromDocument(java.io.InputStream value,
java.lang.String baseURI,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
createItemFromDocument in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItem createItemFromDocument(java.io.Reader value,
java.lang.String baseURI,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
createItemFromDocument in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItem createItemFromDocument(javax.xml.transform.Source value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
createItemFromDocument in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItem createItemFromDocument(java.lang.String value,
java.lang.String baseURI,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
createItemFromDocument in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItem createItemFromDocument(org.xml.sax.XMLReader value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQException
public javax.xml.xquery.XQItem createItemFromDocument(javax.xml.stream.XMLStreamReader value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
createItemFromDocument in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItem createItemFromDouble(double value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
createItemFromDouble in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItem createItemFromFloat(float value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
createItemFromFloat in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItem createItemFromInt(int value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
createItemFromInt in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItem createItemFromLong(long value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
createItemFromLong in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItem createItemFromNode(org.w3c.dom.Node value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
createItemFromNode in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItem createItemFromObject(java.lang.Object value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
createItemFromObject in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItem createItemFromString(java.lang.String value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
createItemFromString in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItemType createItemType()
throws javax.xml.xquery.XQException
createItemType in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItem createItemFromShort(short value,
javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
createItemFromShort in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItemType createNodeType()
throws javax.xml.xquery.XQException
createNodeType in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItemType createProcessingInstructionType(java.lang.String piTarget)
throws javax.xml.xquery.XQException
createProcessingInstructionType in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItemType createSchemaAttributeType(javax.xml.namespace.QName nodename,
int basetype,
java.net.URI schemaURI)
throws javax.xml.xquery.XQException
createSchemaAttributeType in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItemType createSchemaElementType(javax.xml.namespace.QName nodename,
int basetype,
java.net.URI schemaURI)
throws javax.xml.xquery.XQException
createSchemaElementType in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQSequence createSequence(java.util.Iterator i)
throws javax.xml.xquery.XQException
createSequence in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQSequence createSequence(javax.xml.xquery.XQSequence s)
throws javax.xml.xquery.XQException
createSequence in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQSequenceType createSequenceType(javax.xml.xquery.XQItemType item,
int occurrence)
throws javax.xml.xquery.XQException
createSequenceType in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
public javax.xml.xquery.XQItemType createTextType()
throws javax.xml.xquery.XQException
createTextType in interface javax.xml.xquery.XQDataFactoryjavax.xml.xquery.XQException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||