public class StandardObjectConverter extends 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(Object value)
Convert a Java object to a Saxon Item
|
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
|
public StandardObjectConverter(SaxonXQDataFactory factory)
factory - the factory objectpublic Object toObject(XQItemAccessor xqItemAccessor) throws XQException
ObjectConvertertoObject in interface ObjectConverterxqItemAccessor - the XQJ object representing the item to be convertedXQExceptionpublic Item convertToItem(Object value) throws XQException
convertToItem in interface ObjectConvertervalue - the Java object. If null is supplied, null is returned.XQExceptionpublic Item convertToItem(Object value, XQItemType type) throws XQException
convertToItem in interface ObjectConvertervalue - 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-2013 Saxonica Limited. All rights reserved.