|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectConverter
This interface is based on the "CommonHandler" concept defined in early drafts of XQJ. It defines the data
conversion routines used by the Saxon XQJ implementation to convert between native Java objects and XDM values.
Most applications will use the Saxon-supplied implementation StandardObjectConverter
, but it is possible
to supply an alternative implementation using the method SaxonXQDataFactory.setObjectConverter(net.sf.saxon.xqj.ObjectConverter)
Method Summary | |
---|---|
Item |
convertToItem(Object value)
Convert a Java object to an Item, when no information is available about the required type |
Item |
convertToItem(Object value,
javax.xml.xquery.XQItemType type)
Convert a Java object to an Item, when a required type has been specified. |
Object |
toObject(javax.xml.xquery.XQItemAccessor xqItemAccessor)
Convert an Item to a Java object |
Method Detail |
---|
Object toObject(javax.xml.xquery.XQItemAccessor xqItemAccessor) throws javax.xml.xquery.XQException
xqItemAccessor
- the XQJ object representing the item to be converted
javax.xml.xquery.XQException
Item convertToItem(Object value) throws javax.xml.xquery.XQException
value
- the supplied Java object
javax.xml.xquery.XQException
- if the Java object cannot be converted to an XQItemItem convertToItem(Object value, javax.xml.xquery.XQItemType type) throws javax.xml.xquery.XQException
value
- the supplied Java objecttype
- the required XPath data type
javax.xml.xquery.XQException
- if the Java object cannot be converted to an XQItem
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |