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(Object value)
Convert a Java object to an Item, when no information is available about the required type 
 | 
Item | 
convertToItem(Object value,
             XQItemType type)
Convert a Java object to an Item, when a required type has been specified. 
 | 
Object | 
toObject(XQItemAccessor xqItemAccessor)
Convert an Item to a Java object 
 | 
Object toObject(XQItemAccessor xqItemAccessor) throws XQException
xqItemAccessor - the XQJ object representing the item to be convertedXQExceptionItem convertToItem(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(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-2014 Saxonica Limited. All rights reserved.