public class StandardObjectConverter extends java.lang.Object implements ObjectConverter
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:
Constructor and Description |
---|
StandardObjectConverter(SaxonXQDataFactory factory)
CreateCharacter an instance of the class
|
Modifier and Type | Method and Description |
---|---|
Item |
convertToItem(java.lang.Object value)
Convert a Java object to a Saxon Item
|
Item |
convertToItem(java.lang.Object value,
XQItemType type)
Convert a Java object to an Item, when a required type has been specified.
|
java.lang.Object |
toObject(XQItemAccessor xqItemAccessor)
Convert an Item to a Java object
|
public StandardObjectConverter(SaxonXQDataFactory factory)
factory
- the factory objectpublic java.lang.Object toObject(XQItemAccessor xqItemAccessor) throws XQException
ObjectConverter
toObject
in interface ObjectConverter
xqItemAccessor
- the XQJ object representing the item to be convertedXQException
public Item convertToItem(java.lang.Object value) throws XQException
convertToItem
in interface ObjectConverter
value
- the Java object. If null is supplied, null is returned.XQException
public Item convertToItem(java.lang.Object value, XQItemType type) throws XQException
convertToItem
in interface ObjectConverter
value
- the supplied Java object. If null is supplied, null is returned.type
- the required XPath data typeXQException
- if the Java object cannot be converted to an XQItemCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.