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 int
mapSaxonTypeToXQJ
(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:
createAtomicItemType
in 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:
createItem
in interfaceXQDataFactory
-
createItemFromAtomicValue
- Specified by:
createItemFromAtomicValue
in interfaceXQDataFactory
- Throws:
XQException
-
createItemFromBoolean
- Specified by:
createItemFromBoolean
in interfaceXQDataFactory
- Throws:
XQException
-
createItemFromByte
- Specified by:
createItemFromByte
in interfaceXQDataFactory
- Throws:
XQException
-
createItemFromDocument
- Specified by:
createItemFromDocument
in interfaceXQDataFactory
- Throws:
XQException
IOException
-
createItemFromDouble
- Specified by:
createItemFromDouble
in interfaceXQDataFactory
- Throws:
XQException
-
createItemFromFloat
- Specified by:
createItemFromFloat
in interfaceXQDataFactory
- Throws:
XQException
-
createItemFromInt
- Specified by:
createItemFromInt
in interfaceXQDataFactory
- Throws:
XQException
-
createItemFromLong
- Specified by:
createItemFromLong
in interfaceXQDataFactory
- Throws:
XQException
-
createItemFromNode
- Specified by:
createItemFromNode
in interfaceXQDataFactory
- Throws:
XQException
-
createItemFromObject
- Specified by:
createItemFromObject
in interfaceXQDataFactory
- Throws:
XQException
-
createItemFromShort
- Specified by:
createItemFromShort
in interfaceXQDataFactory
- Throws:
XQException
-
createItemType
- Specified by:
createItemType
in interfaceXQDataFactory
- Throws:
XQException
-
createItemType
public XQItemType createItemType(int itemkind, int basetype, QName nodename, QName typename, URI schemaURI, boolean nillable) throws XQException - Specified by:
createItemType
in interfaceXQDataFactory
- Throws:
XQException
-
createSequence
- Specified by:
createSequence
in interfaceXQDataFactory
- Throws:
XQException
-
createSequence
- Specified by:
createSequence
in interfaceXQDataFactory
- Throws:
XQException
-
createSequenceType
- Specified by:
createSequenceType
in interfaceXQDataFactory
- Throws:
XQException
-