> I have another doubt, I want to binding an Enum Type, and > since Enum can't have a public constructor.. how can I bind it? > > I got the error: > > jibx-binding: > [echo] Running JiBX binding compiler > [bind] Error: Need no-argument constructor or factory > method for class br.com.petrobras.itp.util.enums.AcaoEnum; on > mapping element at (line 67, col 63, in > ITPO/classes/bindingCabecalhoTestAval.xml) > [bind] Error: Need no-argument constructor or factory > method for class > br.com.petrobras.itp.util.enums.EstadoTesteEnum; on mapping > element at (line 72, col 70, in > ITPO/classes/bindingCabecalhoTestAval.xml)
Please read the jibx manual! The error says it all: You need to provide a factory, see the factory attribute of the corresponding element. In case of the value element you have a similar attribute "deserializer", which allows you to perform the conversion between the xml string and your actual property, if the default conversion is not appropriate. Greetings from Bremen, Daniel Krügler Bruker Daltonik GmbH ------------------------------ Fahrenheitstrasse 4 28359 Bremen, Germany Permoserstrasse 15 04318 Leipzig, Germany Geschäftsführer: Frank Laukien, Ph. D., Gerd Hülso, Sebastian Meyer-Plath, Stefan Ruge, Ian Sanders, Ph. D., Dr. Michael Schubert Sitz der Gesellschaft: Bremen Handelsregister Amtsgericht Bremen: HRB 8150 www.bdal.de ------------------------------------------------------------ Haftungsausschluss: Die Bruker Daltonik GmbH ist nicht verantwortlich für die ordnungsgemäße, vollständige und verzögerungsfreie Übertragung der Nachricht. Der Inhalt der E-Mail ist nur rechtsverbindlich, wenn er unsererseits durch einen Brief oder ein Fax entsprechend bestätigt wird. Exclusion from liability: Any liability of Bruker Daltonik GmbH referring to the correct, complete and immediate transmission of the message shall be excluded. The content of the e-mail including its attachments is only legally binding if confirmed by Bruker Daltonik GmbH by letter or fax. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users