yeah Filippos, my problem is that I am using an Enum with parameter, and the
JIBX wants one without parameters:
public enum ActionEnum {
INCLUDE("I"), ALTER("A"), SINC("S"), EXCLUDE("E");
private String value;
private AcaoEnum(String valor) {
this.value = value;
}
}
On Thu, Mar 13, 2008 at 12:24 PM, Filippos Papadopoulos <[EMAIL PROTECTED]>
wrote:
> I am using an enum in my Java code and i havent done anything special in
> my binding.
>
>
>
> On Thu, Mar 13, 2008 at 4:42 PM, Alberto Ivo <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > I use JIBX 1.1.5 (the newest). Is there a solution without doing a
> > Factory method?
> >
> > On Thu, Mar 13, 2008 at 11:28 AM, Filippos Papadopoulos <
> > [EMAIL PROTECTED]> wrote:
> >
> > > Which version of JiBX do you use?
> > >
> > >
> > >
> > > On Thu, Mar 13, 2008 at 2:27 PM, Alberto Ivo <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > > > Hello,
> > > >
> > > > 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)
> > > >
> > > >
> > > >
> > > > -------------------------------------------------------------------------
> > > > 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
> > > > [email protected]
> > > > https://lists.sourceforge.net/lists/listinfo/jibx-users
> > > >
> > > >
> > >
> > >
> > > -------------------------------------------------------------------------
> > > 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
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/jibx-users
> > >
> > >
> >
> >
> > -------------------------------------------------------------------------
> > 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
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/jibx-users
> >
> >
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users