public interface ObjectConverter
StandardObjectConverter
, but it is possible
to supply an alternative implementation using the method SaxonXQDataFactory.setObjectConverter(com.saxonica.xqj.ObjectConverter)
Modifier and Type | Method and Description |
---|---|
Item |
convertToItem(java.lang.Object value)
Convert a Java object to an Item, when no information is available about the required type
|
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
|
java.lang.Object toObject(XQItemAccessor xqItemAccessor) throws XQException
xqItemAccessor
- the XQJ object representing the item to be convertedXQException
Item convertToItem(java.lang.Object value) throws XQException
value
- the supplied Java object. If null is supplied, null is returned.XQException
- if the Java object cannot be converted to an XQItemItem convertToItem(java.lang.Object value, XQItemType type) throws XQException
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-2020 Saxonica Limited. All rights reserved.