|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.xqj.StandardObjectConverter
public class StandardObjectConverter
This class provides all the conversion methods used to convert data between XDM values and Java values in the XQJ API. At one time the XQJ specification defined such a class, and it has been retained in the Saxon implementation.
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 Summary | |
---|---|
StandardObjectConverter(SaxonXQDataFactory factory)
CreateCharacter an instance of the class |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardObjectConverter(SaxonXQDataFactory factory)
factory
- the factory objectMethod Detail |
---|
public Object toObject(XQItemAccessor xqItemAccessor) throws XQException
ObjectConverter
toObject
in interface ObjectConverter
xqItemAccessor
- the XQJ object representing the item to be converted
XQException
public Item convertToItem(Object value) throws XQException
convertToItem
in interface ObjectConverter
value
- the Java object
XQException
public Item convertToItem(Object value, XQItemType type) throws XQException
convertToItem
in interface ObjectConverter
value
- the supplied Java objecttype
- the required XPath data type
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 |