Package net.sf.saxon.xqj
Class StandardDOMHandler
java.lang.Object
net.sf.saxon.xqj.StandardDOMHandler
- All Implemented Interfaces:
XQCommonHandler
Implementation of XQCommonHandler that performs the mappings between Java and XPath
as defined in the XQJ specification. This is the handler that is used by default.
This handler implements the mappings defined in the XQJ specification. In addition, it defines the following mappings, which are applied after those defined in XQJ:
For fromObject:
- If the supplied object is an instance of javax.xml.transform.Source, a document node is constructed from the source and the resulting node is returned as the Item
- If the supplied object is an instance of javax.xml.stream.XMLStreamReader, a document node is constructed from the XMLStreamReader and the resulting node is returned as the Item *
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToItem
(Object value) fromObject
(Object obj) toObject
(XQItemAccessor item)
-
Field Details
-
config
Configuration config
-
-
Constructor Details
-
StandardDOMHandler
-
-
Method Details
-
fromObject
- Specified by:
fromObject
in interfaceXQCommonHandler
- Throws:
XQException
-
toObject
- Specified by:
toObject
in interfaceXQCommonHandler
- Throws:
XQException
-
convertToItem
- Throws:
XQException
-