net.sf.saxon.xqj
Class SaxonXQDataFactory
java.lang.Object
net.sf.saxon.xqj.SaxonXQDataFactory
- All Implemented Interfaces:
- XQDataFactory
- Direct Known Subclasses:
- SaxonXQConnection
public abstract class SaxonXQDataFactory
- extends Object
- implements XQDataFactory
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.
Method Summary |
XQItemType |
createAtomicType(int baseType)
Create an atomic item type object representing a particular built-in atomic type |
XQItemType |
createAtomicType(int baseType,
QName typename,
URI schemaURI)
|
XQItemType |
createAttributeType(QName nodename,
int basetype)
|
XQItemType |
createAttributeType(QName nodename,
int basetype,
QName typename,
URI schemaURI)
|
XQItemType |
createCommentType()
|
XQItemType |
createDocumentElementType(XQItemType elementType)
|
XQItemType |
createDocumentSchemaElementType(XQItemType type)
|
XQItemType |
createDocumentType()
|
XQItemType |
createElementType(QName nodename,
int basetype)
|
XQItemType |
createElementType(QName nodename,
int basetype,
QName typename,
URI schemaURI,
boolean allowNill)
|
XQItem |
createItem(XQItem item)
|
XQItem |
createItemFromAtomicValue(String value,
XQItemType type)
|
XQItem |
createItemFromBoolean(boolean value,
XQItemType type)
|
XQItem |
createItemFromByte(byte value,
XQItemType type)
|
XQItem |
createItemFromDocument(InputStream value,
XQItemType type)
|
XQItem |
createItemFromDocument(Reader value,
XQItemType type)
|
XQItem |
createItemFromDocument(Source value,
XQItemType type)
|
XQItem |
createItemFromDocument(String value,
XQItemType type)
|
XQItem |
createItemFromDocument(XMLReader value,
XQItemType type)
|
XQItem |
createItemFromDocument(javax.xml.stream.XMLStreamReader value,
XQItemType type)
|
XQItem |
createItemFromDouble(double value,
XQItemType type)
|
XQItem |
createItemFromFloat(float value,
XQItemType type)
|
XQItem |
createItemFromInt(int value,
XQItemType type)
|
XQItem |
createItemFromLong(long value,
XQItemType type)
|
XQItem |
createItemFromNode(Node value,
XQItemType type)
|
XQItem |
createItemFromObject(Object value,
XQItemType type)
|
XQItem |
createItemFromShort(short value,
XQItemType type)
|
XQItem |
createItemFromString(String value,
XQItemType type)
|
XQItemType |
createItemType()
|
XQItemType |
createNodeType()
|
XQItemType |
createProcessingInstructionType(String piTarget)
|
XQItemType |
createSchemaAttributeType(QName nodename,
int basetype,
URI schemaURI)
|
XQItemType |
createSchemaElementType(QName nodename,
int basetype,
URI schemaURI)
|
XQSequence |
createSequence(Iterator i)
|
XQSequence |
createSequence(XQSequence s)
|
XQSequenceType |
createSequenceType(XQItemType item,
int occurrence)
|
XQItemType |
createTextType()
|
SaxonXQDataFactory
public SaxonXQDataFactory()
createAtomicType
public XQItemType createAtomicType(int baseType)
throws XQException
- Create an atomic item type object representing a particular built-in atomic type
- Specified by:
createAtomicType
in interface XQDataFactory
- 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
createAtomicType
public XQItemType createAtomicType(int baseType,
QName typename,
URI schemaURI)
throws XQException
- Specified by:
createAtomicType
in interface XQDataFactory
- Throws:
XQException
createAttributeType
public XQItemType createAttributeType(QName nodename,
int basetype)
throws XQException
- Specified by:
createAttributeType
in interface XQDataFactory
- Throws:
XQException
createAttributeType
public XQItemType createAttributeType(QName nodename,
int basetype,
QName typename,
URI schemaURI)
throws XQException
- Specified by:
createAttributeType
in interface XQDataFactory
- Throws:
XQException
createCommentType
public XQItemType createCommentType()
throws XQException
- Specified by:
createCommentType
in interface XQDataFactory
- Throws:
XQException
createDocumentElementType
public XQItemType createDocumentElementType(XQItemType elementType)
throws XQException
- Specified by:
createDocumentElementType
in interface XQDataFactory
- Throws:
XQException
createDocumentSchemaElementType
public XQItemType createDocumentSchemaElementType(XQItemType type)
throws XQException
- Specified by:
createDocumentSchemaElementType
in interface XQDataFactory
- Throws:
XQException
createDocumentType
public XQItemType createDocumentType()
throws XQException
- Specified by:
createDocumentType
in interface XQDataFactory
- Throws:
XQException
createElementType
public XQItemType createElementType(QName nodename,
int basetype)
throws XQException
- Specified by:
createElementType
in interface XQDataFactory
- Throws:
XQException
createElementType
public XQItemType createElementType(QName nodename,
int basetype,
QName typename,
URI schemaURI,
boolean allowNill)
throws XQException
- Specified by:
createElementType
in interface XQDataFactory
- Throws:
XQException
createItem
public XQItem createItem(XQItem item)
- Specified by:
createItem
in interface XQDataFactory
createItemFromAtomicValue
public XQItem createItemFromAtomicValue(String value,
XQItemType type)
throws XQException
- Specified by:
createItemFromAtomicValue
in interface XQDataFactory
- Throws:
XQException
createItemFromBoolean
public XQItem createItemFromBoolean(boolean value,
XQItemType type)
throws XQException
- Specified by:
createItemFromBoolean
in interface XQDataFactory
- Throws:
XQException
createItemFromByte
public XQItem createItemFromByte(byte value,
XQItemType type)
throws XQException
- Specified by:
createItemFromByte
in interface XQDataFactory
- Throws:
XQException
createItemFromDocument
public XQItem createItemFromDocument(InputStream value,
XQItemType type)
throws XQException
- Specified by:
createItemFromDocument
in interface XQDataFactory
- Throws:
XQException
createItemFromDocument
public XQItem createItemFromDocument(Reader value,
XQItemType type)
throws XQException
- Specified by:
createItemFromDocument
in interface XQDataFactory
- Throws:
XQException
createItemFromDocument
public XQItem createItemFromDocument(Source value,
XQItemType type)
throws XQException
- Specified by:
createItemFromDocument
in interface XQDataFactory
- Throws:
XQException
createItemFromDocument
public XQItem createItemFromDocument(String value,
XQItemType type)
throws XQException
- Specified by:
createItemFromDocument
in interface XQDataFactory
- Throws:
XQException
createItemFromDocument
public XQItem createItemFromDocument(XMLReader value,
XQItemType type)
throws XQException
- Specified by:
createItemFromDocument
in interface XQDataFactory
- Throws:
XQException
createItemFromDocument
public XQItem createItemFromDocument(javax.xml.stream.XMLStreamReader value,
XQItemType type)
throws XQException
- Specified by:
createItemFromDocument
in interface XQDataFactory
- Throws:
XQException
createItemFromDouble
public XQItem createItemFromDouble(double value,
XQItemType type)
throws XQException
- Specified by:
createItemFromDouble
in interface XQDataFactory
- Throws:
XQException
createItemFromFloat
public XQItem createItemFromFloat(float value,
XQItemType type)
throws XQException
- Specified by:
createItemFromFloat
in interface XQDataFactory
- Throws:
XQException
createItemFromInt
public XQItem createItemFromInt(int value,
XQItemType type)
throws XQException
- Specified by:
createItemFromInt
in interface XQDataFactory
- Throws:
XQException
createItemFromLong
public XQItem createItemFromLong(long value,
XQItemType type)
throws XQException
- Specified by:
createItemFromLong
in interface XQDataFactory
- Throws:
XQException
createItemFromNode
public XQItem createItemFromNode(Node value,
XQItemType type)
throws XQException
- Specified by:
createItemFromNode
in interface XQDataFactory
- Throws:
XQException
createItemFromObject
public XQItem createItemFromObject(Object value,
XQItemType type)
throws XQException
- Specified by:
createItemFromObject
in interface XQDataFactory
- Throws:
XQException
createItemFromString
public XQItem createItemFromString(String value,
XQItemType type)
throws XQException
- Specified by:
createItemFromString
in interface XQDataFactory
- Throws:
XQException
createItemType
public XQItemType createItemType()
throws XQException
- Specified by:
createItemType
in interface XQDataFactory
- Throws:
XQException
createItemFromShort
public XQItem createItemFromShort(short value,
XQItemType type)
throws XQException
- Specified by:
createItemFromShort
in interface XQDataFactory
- Throws:
XQException
createNodeType
public XQItemType createNodeType()
throws XQException
- Specified by:
createNodeType
in interface XQDataFactory
- Throws:
XQException
createProcessingInstructionType
public XQItemType createProcessingInstructionType(String piTarget)
throws XQException
- Specified by:
createProcessingInstructionType
in interface XQDataFactory
- Throws:
XQException
createSchemaAttributeType
public XQItemType createSchemaAttributeType(QName nodename,
int basetype,
URI schemaURI)
throws XQException
- Specified by:
createSchemaAttributeType
in interface XQDataFactory
- Throws:
XQException
createSchemaElementType
public XQItemType createSchemaElementType(QName nodename,
int basetype,
URI schemaURI)
throws XQException
- Specified by:
createSchemaElementType
in interface XQDataFactory
- Throws:
XQException
createSequence
public XQSequence createSequence(Iterator i)
throws XQException
- Specified by:
createSequence
in interface XQDataFactory
- Throws:
XQException
createSequence
public XQSequence createSequence(XQSequence s)
throws XQException
- Specified by:
createSequence
in interface XQDataFactory
- Throws:
XQException
createSequenceType
public XQSequenceType createSequenceType(XQItemType item,
int occurrence)
throws XQException
- Specified by:
createSequenceType
in interface XQDataFactory
- Throws:
XQException
createTextType
public XQItemType createTextType()
throws XQException
- Specified by:
createTextType
in interface XQDataFactory
- Throws:
XQException
Copyright (C) Michael H. Kay. All rights reserved.