Package net.sf.saxon.xqj
Class SaxonXQDataFactory
java.lang.Object
net.sf.saxon.xqj.SaxonXQDataFactory
- All Implemented Interfaces:
XQDataFactory
- Direct Known Subclasses:
SaxonXQConnection,SaxonXQDataSource
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAtomicItemType(int baseType) Create an atomic item type object representing a particular built-in atomic typecreateItem(XQItem item) createItemFromAtomicValue(String value, XQItemType type) createItemFromBoolean(boolean value, XQItemType type) createItemFromByte(byte value, XQItemType type) createItemFromDocument(InputSource source) createItemFromDouble(double value, XQItemType type) createItemFromFloat(float value, XQItemType type) createItemFromInt(int value, XQItemType type) createItemFromLong(long value, XQItemType type) createItemFromNode(Node value, XQItemType type) createItemFromObject(Object value, XQItemType type) createItemFromShort(short value, XQItemType type) createItemType(int itemkind, int basetype, QName nodename) createItemType(int itemkind, int basetype, QName nodename, QName typename, URI schemaURI, boolean nillable) createSequenceType(XQItemType item, int occurrence) (package private) abstract XQCommonHandler(package private) abstract Configuration(package private) static intmapSaxonTypeToXQJ(int type) Get the XQJ type code corresponding to a given Saxon type code
-
Constructor Details
-
SaxonXQDataFactory
public SaxonXQDataFactory()
-
-
Method Details
-
getConfiguration
-
getCommonHandler
-
mapSaxonTypeToXQJ
static int mapSaxonTypeToXQJ(int type) Get the XQJ type code corresponding to a given Saxon type code- Parameters:
type- the Saxon type code- Returns:
- the corresponding XQJ type code
-
createAtomicItemType
Create an atomic item type object representing a particular built-in atomic type- Specified by:
createAtomicItemTypein interfaceXQDataFactory- Parameters:
baseType- the built-in atomic type, typically a constant such as XQItemType.XQBASETYPE_BOOLEAN- Returns:
- the corresponding XQItemType
- Throws:
XQException- if the supplied baseType parameter is not an atomic type
-
createItem
- Specified by:
createItemin interfaceXQDataFactory
-
createItemFromAtomicValue
- Specified by:
createItemFromAtomicValuein interfaceXQDataFactory- Throws:
XQException
-
createItemFromBoolean
- Specified by:
createItemFromBooleanin interfaceXQDataFactory- Throws:
XQException
-
createItemFromByte
- Specified by:
createItemFromBytein interfaceXQDataFactory- Throws:
XQException
-
createItemFromDocument
- Specified by:
createItemFromDocumentin interfaceXQDataFactory- Throws:
XQExceptionIOException
-
createItemFromDouble
- Specified by:
createItemFromDoublein interfaceXQDataFactory- Throws:
XQException
-
createItemFromFloat
- Specified by:
createItemFromFloatin interfaceXQDataFactory- Throws:
XQException
-
createItemFromInt
- Specified by:
createItemFromIntin interfaceXQDataFactory- Throws:
XQException
-
createItemFromLong
- Specified by:
createItemFromLongin interfaceXQDataFactory- Throws:
XQException
-
createItemFromNode
- Specified by:
createItemFromNodein interfaceXQDataFactory- Throws:
XQException
-
createItemFromObject
- Specified by:
createItemFromObjectin interfaceXQDataFactory- Throws:
XQException
-
createItemFromShort
- Specified by:
createItemFromShortin interfaceXQDataFactory- Throws:
XQException
-
createItemType
- Specified by:
createItemTypein interfaceXQDataFactory- Throws:
XQException
-
createItemType
public XQItemType createItemType(int itemkind, int basetype, QName nodename, QName typename, URI schemaURI, boolean nillable) throws XQException - Specified by:
createItemTypein interfaceXQDataFactory- Throws:
XQException
-
createSequence
- Specified by:
createSequencein interfaceXQDataFactory- Throws:
XQException
-
createSequence
- Specified by:
createSequencein interfaceXQDataFactory- Throws:
XQException
-
createSequenceType
- Specified by:
createSequenceTypein interfaceXQDataFactory- Throws:
XQException
-