users@jaxb.java.net

Mapping binding objects to interface

From: Mihir B Joshi <mihir.joshi_at_iflexsolutions.com>
Date: Tue, 13 May 2003 14:24:20 +0530

Can complex types in XML be mapped to a specified interface in Java? I am trying the following in my bindings file
            <jxb:javaType name="test.MyInterface"
                    parseMethod="test.DatatypeConverter.parse"
                    printMethod="test.DatatypeConverter.print"/>
 
The DataTypeConverter has the signatures for parse and print as follows
public static Object parse(Object value)
public static String print(Object value)
 
Currently the xjc compiler is giving me the following error
Unable to load "test.MyInterface" Is this class available in the classpath?
 
I think the classpath settings are correct.


DISCLAIMER:
This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.