Hi list,

I would like to be able to generate an enum from JiBX using codegen that
looks like this -

   public static enum AccountStatus {



    ACTIVE("01"),

    LOCKED("02"),

    SUSPENDED("03"),

    REINSTATED("04"),

    TERMINATED("05");


        private final String value;



        .....

}



The key thing is, I want to be able to set custom values 01, 02, 03 ..
instead of the usual values ACTIVE, LOCKED, SUSPENDED ... that Codegen keeps
generating (due to XSD limitation). Is there a way I can override this
behavior ?



Thanks,

Kunle
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to